Class ProductTailoringSetImageLabelActionBuilder
java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringSetImageLabelActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringSetImageLabelAction>
public class ProductTailoringSetImageLabelActionBuilder
extends Object
implements Builder<ProductTailoringSetImageLabelAction>
ProductTailoringSetImageLabelActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringSetImageLabelAction productTailoringSetImageLabelAction = ProductTailoringSetImageLabelAction.builder()
.imageUrl("{imageUrl}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductTailoringSetImageLabelAction with checking for non-null required valuesbuilds ProductTailoringSetImageLabelAction without checking for non-null required valuesThe URL of the image to set the label.getLabel()
Value to set.getSku()
Thesku
of the tailored ProductVariant to update.Iftrue
, only the staged image is updated.Theid
of the tailored ProductVariant to update.The URL of the image to set the label.Value to set.of()
factory method for an instance of ProductTailoringSetImageLabelActionBuilderof
(ProductTailoringSetImageLabelAction template) create builder for ProductTailoringSetImageLabelAction instanceThesku
of the tailored ProductVariant to update.Iftrue
, only the staged image is updated.Theid
of the tailored ProductVariant to update.
-
Constructor Details
-
ProductTailoringSetImageLabelActionBuilder
public ProductTailoringSetImageLabelActionBuilder()
-
-
Method Details
-
sku
The
sku
of the tailored ProductVariant to update.- Parameters:
sku
- value to be set- Returns:
- Builder
-
variantId
The
id
of the tailored ProductVariant to update.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
imageUrl
The URL of the image to set the label.
- Parameters:
imageUrl
- value to be set- Returns:
- Builder
-
label
Value to set. If empty, any existing value will be removed.
- Parameters:
label
- value to be set- Returns:
- Builder
-
staged
If
true
, only the staged image is updated. Iffalse
, both the current and staged image is updated.- Parameters:
staged
- value to be set- Returns:
- Builder
-
getSku
The
sku
of the tailored ProductVariant to update.- Returns:
- sku
-
getVariantId
The
id
of the tailored ProductVariant to update.- Returns:
- variantId
-
getImageUrl
The URL of the image to set the label.
- Returns:
- imageUrl
-
getLabel
Value to set. If empty, any existing value will be removed.
- Returns:
- label
-
getStaged
If
true
, only the staged image is updated. Iffalse
, both the current and staged image is updated.- Returns:
- staged
-
build
builds ProductTailoringSetImageLabelAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringSetImageLabelAction>
- Returns:
- ProductTailoringSetImageLabelAction
-
buildUnchecked
builds ProductTailoringSetImageLabelAction without checking for non-null required values- Returns:
- ProductTailoringSetImageLabelAction
-
of
factory method for an instance of ProductTailoringSetImageLabelActionBuilder- Returns:
- builder
-
of
public static ProductTailoringSetImageLabelActionBuilder of(ProductTailoringSetImageLabelAction template) create builder for ProductTailoringSetImageLabelAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-