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
-
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 inimages
where the image should be moved.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the stagedimages
is updated.Theid
of 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 inimages
where the image should be moved.Thesku
of the ProductVariant to update.Iftrue
, only the stagedimages
is updated.Theid
of the ProductVariant to update.
-
Constructor Details
-
ProductMoveImageToPositionActionBuilder
public ProductMoveImageToPositionActionBuilder()
-
-
Method Details
-
variantId
The
id
of the ProductVariant to update.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
sku
The
sku
of 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
images
where the image should be moved. Must be between0
and the total number of images minus1
.- Parameters:
position
- value to be set- Returns:
- Builder
-
staged
If
true
, only the stagedimages
is updated. Iffalse
, both the current and stagedimages
is updated.- Parameters:
staged
- value to be set- Returns:
- Builder
-
getVariantId
The
id
of the ProductVariant to update.- Returns:
- variantId
-
getSku
The
sku
of the ProductVariant to update.- Returns:
- sku
-
getImageUrl
The URL of the image to update.
- Returns:
- imageUrl
-
getPosition
Position in
images
where the image should be moved. Must be between0
and the total number of images minus1
.- Returns:
- position
-
getStaged
If
true
, only the stagedimages
is updated. Iffalse
, both the current and stagedimages
is updated.- Returns:
- staged
-
build
builds ProductMoveImageToPositionAction with checking for non-null required values- Specified by:
build
in 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
-