Class VariantSetImageLabelActionBuilder
java.lang.Object
com.commercetools.api.models.variant.VariantSetImageLabelActionBuilder
- All Implemented Interfaces:
Builder<VariantSetImageLabelAction>
public class VariantSetImageLabelActionBuilder
extends Object
implements Builder<VariantSetImageLabelAction>
VariantSetImageLabelActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
VariantSetImageLabelAction variantSetImageLabelAction = VariantSetImageLabelAction.builder()
.imageUrl("{imageUrl}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds VariantSetImageLabelAction with checking for non-null required valuesbuilds VariantSetImageLabelAction without checking for non-null required valuesThe URL of the image to set the label.getLabel()Value to set.Iftrue, only the staged image is updated.The URL of the image to set the label.Value to set.of()factory method for an instance of VariantSetImageLabelActionBuilderof(VariantSetImageLabelAction template) create builder for VariantSetImageLabelAction instanceIftrue, only the staged image is updated.
-
Constructor Details
-
VariantSetImageLabelActionBuilder
public VariantSetImageLabelActionBuilder()
-
-
Method Details
-
imageUrl
The URL of the image to set the label.
- Parameters:
imageUrl- value to be set- Returns:
- Builder
-
label
Value to set. If omitted, any existing value is 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
-
getImageUrl
The URL of the image to set the label.
- Returns:
- imageUrl
-
getLabel
Value to set. If omitted, any existing value is 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 VariantSetImageLabelAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<VariantSetImageLabelAction>- Returns:
- VariantSetImageLabelAction
-
buildUnchecked
builds VariantSetImageLabelAction without checking for non-null required values- Returns:
- VariantSetImageLabelAction
-
of
factory method for an instance of VariantSetImageLabelActionBuilder- Returns:
- builder
-
of
create builder for VariantSetImageLabelAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-