Class VariantMoveImageToPositionActionBuilder
java.lang.Object
com.commercetools.api.models.variant.VariantMoveImageToPositionActionBuilder
- All Implemented Interfaces:
Builder<VariantMoveImageToPositionAction>
public class VariantMoveImageToPositionActionBuilder
extends Object
implements Builder<VariantMoveImageToPositionAction>
VariantMoveImageToPositionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
VariantMoveImageToPositionAction variantMoveImageToPositionAction = VariantMoveImageToPositionAction.builder()
.imageUrl("{imageUrl}")
.position(0.3)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds VariantMoveImageToPositionAction with checking for non-null required valuesbuilds VariantMoveImageToPositionAction without checking for non-null required valuesThe URL of the image to update.Position inimageswhere the image should be moved.Iftrue, only the stagedimagesis updated.The URL of the image to update.of()factory method for an instance of VariantMoveImageToPositionActionBuilderof(VariantMoveImageToPositionAction template) create builder for VariantMoveImageToPositionAction instancePosition inimageswhere the image should be moved.Iftrue, only the stagedimagesis updated.
-
Constructor Details
-
VariantMoveImageToPositionActionBuilder
public VariantMoveImageToPositionActionBuilder()
-
-
Method Details
-
imageUrl
The URL of the image to update.
- Parameters:
imageUrl- value to be set- Returns:
- Builder
-
position
Position in
imageswhere the image should be moved. Must be between0and the total number of images minus1.- Parameters:
position- value to be set- Returns:
- Builder
-
staged
If
true, only the stagedimagesis updated. Iffalse, both the current and stagedimagesis updated.- Parameters:
staged- value to be set- Returns:
- Builder
-
getImageUrl
The URL of the image to update.
- Returns:
- imageUrl
-
getPosition
Position in
imageswhere the image should be moved. Must be between0and the total number of images minus1.- Returns:
- position
-
getStaged
If
true, only the stagedimagesis updated. Iffalse, both the current and stagedimagesis updated.- Returns:
- staged
-
build
builds VariantMoveImageToPositionAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<VariantMoveImageToPositionAction>- Returns:
- VariantMoveImageToPositionAction
-
buildUnchecked
builds VariantMoveImageToPositionAction without checking for non-null required values- Returns:
- VariantMoveImageToPositionAction
-
of
factory method for an instance of VariantMoveImageToPositionActionBuilder- Returns:
- builder
-
of
create builder for VariantMoveImageToPositionAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-