Class ProductMoveImageToPositionActionBuilder
java.lang.Object
com.commercetools.api.models.product.ProductMoveImageToPositionActionBuilder
- All Implemented Interfaces:
Builder<ProductMoveImageToPositionAction>
public class ProductMoveImageToPositionActionBuilder
extends Object
implements Builder<ProductMoveImageToPositionAction>
ProductMoveImageToPositionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductMoveImageToPositionAction productMoveImageToPositionAction = ProductMoveImageToPositionAction.builder()
.imageUrl("{imageUrl}")
.position(0.3)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ProductMoveImageToPositionAction with checking for non-null required valuesbuilds ProductMoveImageToPositionAction without checking for non-null required valuesThe URL of the image to update.Position inimageswhere the image should be moved.getSku()Theskuof the ProductVariant to update.Iftrue, only the stagedimagesis updated.Theidof the ProductVariant to update.The URL of the image to update.of()factory method for an instance of ProductMoveImageToPositionActionBuilderof(ProductMoveImageToPositionAction template) create builder for ProductMoveImageToPositionAction instancePosition inimageswhere the image should be moved.Theskuof the ProductVariant to update.Iftrue, only the stagedimagesis updated.Theidof the ProductVariant to update.
-
Constructor Details
-
ProductMoveImageToPositionActionBuilder
public ProductMoveImageToPositionActionBuilder()
-
-
Method Details
-
variantId
The
idof the ProductVariant to update.- Parameters:
variantId- value to be set- Returns:
- Builder
-
sku
The
skuof the ProductVariant to update.- Parameters:
sku- value to be set- Returns:
- Builder
-
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
-
getVariantId
The
idof the ProductVariant to update.- Returns:
- variantId
-
getSku
The
skuof the ProductVariant to update.- Returns:
- sku
-
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 ProductMoveImageToPositionAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ProductMoveImageToPositionAction>- Returns:
- ProductMoveImageToPositionAction
-
buildUnchecked
builds ProductMoveImageToPositionAction without checking for non-null required values- Returns:
- ProductMoveImageToPositionAction
-
of
factory method for an instance of ProductMoveImageToPositionActionBuilder- Returns:
- builder
-
of
create builder for ProductMoveImageToPositionAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-