Class ProductTailoringMoveImageToPositionActionBuilder
java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringMoveImageToPositionActionBuilder
- All Implemented Interfaces:
Builder<ProductTailoringMoveImageToPositionAction>
public class ProductTailoringMoveImageToPositionActionBuilder
extends Object
implements Builder<ProductTailoringMoveImageToPositionAction>
ProductTailoringMoveImageToPositionActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductTailoringMoveImageToPositionAction productTailoringMoveImageToPositionAction = ProductTailoringMoveImageToPositionAction.builder()
.imageUrl("{imageUrl}")
.position(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProductTailoringMoveImageToPositionAction with checking for non-null required valuesbuilds ProductTailoringMoveImageToPositionAction 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 tailored ProductVariant to update.Iftrue
, only the stagedimages
is updated.Theid
of the tailored ProductVariant to update.The URL of the image to update.of()
factory method for an instance of ProductTailoringMoveImageToPositionActionBuilderof
(ProductTailoringMoveImageToPositionAction template) create builder for ProductTailoringMoveImageToPositionAction instancePosition inimages
where the image should be moved.Thesku
of the tailored ProductVariant to update.Iftrue
, only the stagedimages
is updated.Theid
of the tailored ProductVariant to update.
-
Constructor Details
-
ProductTailoringMoveImageToPositionActionBuilder
public ProductTailoringMoveImageToPositionActionBuilder()
-
-
Method Details
-
variantId
The
id
of the tailored ProductVariant to update.- Parameters:
variantId
- value to be set- Returns:
- Builder
-
sku
The
sku
of the tailored 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 tailored ProductVariant to update.- Returns:
- variantId
-
getSku
The
sku
of the tailored 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 ProductTailoringMoveImageToPositionAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductTailoringMoveImageToPositionAction>
- Returns:
- ProductTailoringMoveImageToPositionAction
-
buildUnchecked
builds ProductTailoringMoveImageToPositionAction without checking for non-null required values- Returns:
- ProductTailoringMoveImageToPositionAction
-
of
factory method for an instance of ProductTailoringMoveImageToPositionActionBuilder- Returns:
- builder
-
of
public static ProductTailoringMoveImageToPositionActionBuilder of(ProductTailoringMoveImageToPositionAction template) create builder for ProductTailoringMoveImageToPositionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-