Class ProductAddExternalImageActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductAddExternalImageActionBuilder
- All Implemented Interfaces:
Builder<ProductAddExternalImageAction>
public class ProductAddExternalImageActionBuilder
extends Object
implements Builder<ProductAddExternalImageAction>
ProductAddExternalImageActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductAddExternalImageAction productAddExternalImageAction = ProductAddExternalImageAction.builder()
.image(imageBuilder -> imageBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductAddExternalImageAction with checking for non-null required valuesbuilds ProductAddExternalImageAction without checking for non-null required valuesgetImage()
Value to add toimages
.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the stagedimages
is updated.Theid
of the ProductVariant to update.Value to add toimages
.image
(Function<ImageBuilder, ImageBuilder> builder) Value to add toimages
.of()
factory method for an instance of ProductAddExternalImageActionBuilderof
(ProductAddExternalImageAction template) create builder for ProductAddExternalImageAction instanceThesku
of the ProductVariant to update.Iftrue
, only the stagedimages
is updated.Theid
of the ProductVariant to update.withImage
(Function<ImageBuilder, Image> builder) Value to add toimages
.
-
Constructor Details
-
ProductAddExternalImageActionBuilder
public ProductAddExternalImageActionBuilder()
-
-
Method Details
-
variantId
The
id
of the ProductVariant to update.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
sku
The
sku
of the ProductVariant to update.- Parameters:
sku
- value to be set- Returns:
- Builder
-
image
Value to add to
images
.- Parameters:
builder
- function to build the image value- Returns:
- Builder
-
withImage
Value to add to
images
.- Parameters:
builder
- function to build the image value- Returns:
- Builder
-
image
Value to add to
images
.- Parameters:
image
- value to be set- Returns:
- Builder
-
staged
If
true
, only the stagedimages
is updated. Iffalse
, both the current and stagedimages
is updated.- Parameters:
staged
- value to be set- Returns:
- Builder
-
getVariantId
The
id
of the ProductVariant to update.- Returns:
- variantId
-
getSku
The
sku
of the ProductVariant to update.- Returns:
- sku
-
getImage
Value to add to
images
.- Returns:
- image
-
getStaged
If
true
, only the stagedimages
is updated. Iffalse
, both the current and stagedimages
is updated.- Returns:
- staged
-
build
builds ProductAddExternalImageAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductAddExternalImageAction>
- Returns:
- ProductAddExternalImageAction
-
buildUnchecked
builds ProductAddExternalImageAction without checking for non-null required values- Returns:
- ProductAddExternalImageAction
-
of
factory method for an instance of ProductAddExternalImageActionBuilder- Returns:
- builder
-
of
create builder for ProductAddExternalImageAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-