Interface ProductTailoringMoveImageToPositionAction
- All Superinterfaces:
ProductTailoringUpdateAction
Either variantId or sku is required to reference a ProductVariant that exists.
Example to create an instance using the builder pattern
ProductTailoringMoveImageToPositionAction productTailoringMoveImageToPositionAction = ProductTailoringMoveImageToPositionAction.builder()
.imageUrl("{imageUrl}")
.position(0.3)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductTailoringMoveImageToPositionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductTailoringMoveImageToPositionActioncreate builder for ProductTailoringMoveImageToPositionAction instancecopyDeep()factory method to create a deep copy of ProductTailoringMoveImageToPositionAction@NotNull StringThe URL of the image to update.@NotNull LongPosition inimageswhere the image should be moved.getSku()Theskuof the tailored ProductVariant to update.Iftrue, only the stagedimagesis updated.Theidof the tailored ProductVariant to update.of()factory methodof(ProductTailoringMoveImageToPositionAction template) factory method to create a shallow copy ProductTailoringMoveImageToPositionActionvoidsetImageUrl(String imageUrl) The URL of the image to update.voidsetPosition(Long position) Position inimageswhere the image should be moved.voidTheskuof the tailored ProductVariant to update.voidIftrue, only the stagedimagesis updated.voidsetVariantId(Long variantId) Theidof the tailored ProductVariant to update.static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringMoveImageToPositionAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProductTailoringMoveImageToPositionAction(Function<ProductTailoringMoveImageToPositionAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product_tailoring.ProductTailoringUpdateAction
getAction, withProductTailoringUpdateAction
-
Field Details
-
MOVE_IMAGE_TO_POSITION
discriminator value for ProductTailoringMoveImageToPositionAction- See Also:
-
-
Method Details
-
getVariantId
Long getVariantId()The
idof the tailored ProductVariant to update.- Returns:
- variantId
-
getSku
String getSku()The
skuof the tailored 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
Boolean getStaged()If
true, only the stagedimagesis updated. Iffalse, both the current and stagedimagesis updated.- Returns:
- staged
-
setVariantId
The
idof the tailored ProductVariant to update.- Parameters:
variantId- value to be set
-
setSku
The
skuof the tailored ProductVariant to update.- Parameters:
sku- value to be set
-
setImageUrl
The URL of the image to update.
- Parameters:
imageUrl- value to be set
-
setPosition
Position in
imageswhere the image should be moved. Must be between0and the total number of images minus1.- Parameters:
position- value to be set
-
setStaged
If
true, only the stagedimagesis updated. Iffalse, both the current and stagedimagesis updated.- Parameters:
staged- value to be set
-
of
factory method- Returns:
- instance of ProductTailoringMoveImageToPositionAction
-
of
static ProductTailoringMoveImageToPositionAction of(ProductTailoringMoveImageToPositionAction template) factory method to create a shallow copy ProductTailoringMoveImageToPositionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductTailoringMoveImageToPositionAction copyDeep()- Specified by:
copyDeepin interfaceProductTailoringUpdateAction
-
deepCopy
@Nullable static ProductTailoringMoveImageToPositionAction deepCopy(@Nullable ProductTailoringMoveImageToPositionAction template) factory method to create a deep copy of ProductTailoringMoveImageToPositionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringMoveImageToPositionAction- Returns:
- builder
-
builder
static ProductTailoringMoveImageToPositionActionBuilder builder(ProductTailoringMoveImageToPositionAction template) create builder for ProductTailoringMoveImageToPositionAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringMoveImageToPositionAction
default <T> T withProductTailoringMoveImageToPositionAction(Function<ProductTailoringMoveImageToPositionAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringMoveImageToPositionAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-