Class ProductTailoringAddExternalImageActionBuilder
java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringAddExternalImageActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringAddExternalImageAction>
public class ProductTailoringAddExternalImageActionBuilder
extends Object
implements Builder<ProductTailoringAddExternalImageAction>
ProductTailoringAddExternalImageActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringAddExternalImageAction productTailoringAddExternalImageAction = ProductTailoringAddExternalImageAction.builder()
.image(imageBuilder -> imageBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductTailoringAddExternalImageAction with checking for non-null required valuesbuilds ProductTailoringAddExternalImageAction without checking for non-null required valuesgetImage()
Value to add toimages
.getSku()
Thesku
of the tailored ProductVariant to update.Iftrue
, only the stagedimages
is updated.Theid
of the tailored ProductVariant to update.Value to add toimages
.image
(Function<ImageBuilder, ImageBuilder> builder) Value to add toimages
.of()
factory method for an instance of ProductTailoringAddExternalImageActionBuilderof
(ProductTailoringAddExternalImageAction template) create builder for ProductTailoringAddExternalImageAction instanceThesku
of the tailored ProductVariant to update.Iftrue
, only the stagedimages
is updated.Theid
of the tailored ProductVariant to update.withImage
(Function<ImageBuilder, Image> builder) Value to add toimages
.
-
Constructor Details
-
ProductTailoringAddExternalImageActionBuilder
public ProductTailoringAddExternalImageActionBuilder()
-
-
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
-
image
public ProductTailoringAddExternalImageActionBuilder image(Function<ImageBuilder, ImageBuilder> builder) Value to add to
images
.- Parameters:
builder
- function to build the image value- Returns:
- Builder
-
withImage
public ProductTailoringAddExternalImageActionBuilder withImage(Function<ImageBuilder, Image> builder) 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 tailored ProductVariant to update.- Returns:
- variantId
-
getSku
The
sku
of the tailored 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 ProductTailoringAddExternalImageAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringAddExternalImageAction>
- Returns:
- ProductTailoringAddExternalImageAction
-
buildUnchecked
builds ProductTailoringAddExternalImageAction without checking for non-null required values- Returns:
- ProductTailoringAddExternalImageAction
-
of
factory method for an instance of ProductTailoringAddExternalImageActionBuilder- Returns:
- builder
-
of
public static ProductTailoringAddExternalImageActionBuilder of(ProductTailoringAddExternalImageAction template) create builder for ProductTailoringAddExternalImageAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-