Class ProductSetImageLabelActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductSetImageLabelActionBuilder
- All Implemented Interfaces:
Builder<ProductSetImageLabelAction>
public class ProductSetImageLabelActionBuilder
extends Object
implements Builder<ProductSetImageLabelAction>
ProductSetImageLabelActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductSetImageLabelAction productSetImageLabelAction = ProductSetImageLabelAction.builder()
.imageUrl("{imageUrl}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductSetImageLabelAction with checking for non-null required valuesbuilds ProductSetImageLabelAction without checking for non-null required valuesThe URL of the image to set the label.getLabel()
Value to set.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the staged image is updated.Theid
of the ProductVariant to update.The URL of the image to set the label.Value to set.of()
factory method for an instance of ProductSetImageLabelActionBuilderof
(ProductSetImageLabelAction template) create builder for ProductSetImageLabelAction instanceThesku
of the ProductVariant to update.Iftrue
, only the staged image is updated.Theid
of the ProductVariant to update.
-
Constructor Details
-
ProductSetImageLabelActionBuilder
public ProductSetImageLabelActionBuilder()
-
-
Method Details
-
sku
The
sku
of the ProductVariant to update.- Parameters:
sku
- value to be set- Returns:
- Builder
-
variantId
The
id
of the 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 ProductVariant to update.- Returns:
- sku
-
getVariantId
The
id
of the 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 ProductSetImageLabelAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductSetImageLabelAction>
- Returns:
- ProductSetImageLabelAction
-
buildUnchecked
builds ProductSetImageLabelAction without checking for non-null required values- Returns:
- ProductSetImageLabelAction
-
of
factory method for an instance of ProductSetImageLabelActionBuilder- Returns:
- builder
-
of
create builder for ProductSetImageLabelAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-