Class ProductTailoringSetExternalImagesActionBuilder
java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringSetExternalImagesActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringSetExternalImagesAction>
public class ProductTailoringSetExternalImagesActionBuilder
extends Object
implements Builder<ProductTailoringSetExternalImagesAction>
ProductTailoringSetExternalImagesActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringSetExternalImagesAction productTailoringSetExternalImagesAction = ProductTailoringSetExternalImagesAction.builder()
.plusImages(imagesBuilder -> imagesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddImages
(Function<ImageBuilder, Image> builder) Value to set toimages
.build()
builds ProductTailoringSetExternalImagesAction with checking for non-null required valuesbuilds ProductTailoringSetExternalImagesAction without checking for non-null required valuesValue to set toimages
.getSku()
Thesku
of the tailored ProductVariant to update.Iftrue
, only the stagedimages
is updated.Theid
of the tailored ProductVariant to update.Value to set toimages
.Value to set toimages
.of()
factory method for an instance of ProductTailoringSetExternalImagesActionBuilderof
(ProductTailoringSetExternalImagesAction template) create builder for ProductTailoringSetExternalImagesAction instanceplusImages
(Image... images) Value to set toimages
.plusImages
(Function<ImageBuilder, ImageBuilder> builder) Value to set toimages
.setImages
(Function<ImageBuilder, Image> builder) Value to set toimages
.Thesku
of the tailored ProductVariant to update.Iftrue
, only the stagedimages
is updated.Theid
of the tailored ProductVariant to update.withImages
(Function<ImageBuilder, ImageBuilder> builder) Value to set toimages
.
-
Constructor Details
-
ProductTailoringSetExternalImagesActionBuilder
public ProductTailoringSetExternalImagesActionBuilder()
-
-
Method Details
-
variantId
The
id
of the tailored ProductVariant to update.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
sku
The
sku
of the tailored ProductVariant to update.- Parameters:
sku
- value to be set- Returns:
- Builder
-
images
Value to set to
images
.- Parameters:
images
- value to be set- Returns:
- Builder
-
images
Value to set to
images
.- Parameters:
images
- value to be set- Returns:
- Builder
-
plusImages
Value to set to
images
.- Parameters:
images
- value to be set- Returns:
- Builder
-
plusImages
public ProductTailoringSetExternalImagesActionBuilder plusImages(Function<ImageBuilder, ImageBuilder> builder) Value to set to
images
.- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
withImages
public ProductTailoringSetExternalImagesActionBuilder withImages(Function<ImageBuilder, ImageBuilder> builder) Value to set to
images
.- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
addImages
public ProductTailoringSetExternalImagesActionBuilder addImages(Function<ImageBuilder, Image> builder) Value to set to
images
.- Parameters:
builder
- function to build the images value- Returns:
- Builder
-
setImages
public ProductTailoringSetExternalImagesActionBuilder setImages(Function<ImageBuilder, Image> builder) Value to set to
images
.- Parameters:
builder
- function to build the images value- 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 tailored ProductVariant to update.- Returns:
- variantId
-
getSku
The
sku
of the tailored ProductVariant to update.- Returns:
- sku
-
getImages
Value to set to
images
.- Returns:
- images
-
getStaged
If
true
, only the stagedimages
is updated. Iffalse
, both the current and stagedimages
is updated.- Returns:
- staged
-
build
builds ProductTailoringSetExternalImagesAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringSetExternalImagesAction>
- Returns:
- ProductTailoringSetExternalImagesAction
-
buildUnchecked
builds ProductTailoringSetExternalImagesAction without checking for non-null required values- Returns:
- ProductTailoringSetExternalImagesAction
-
of
factory method for an instance of ProductTailoringSetExternalImagesActionBuilder- Returns:
- builder
-
of
public static ProductTailoringSetExternalImagesActionBuilder of(ProductTailoringSetExternalImagesAction template) create builder for ProductTailoringSetExternalImagesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-