Interface ProductTailoringSetExternalImagesAction
- All Superinterfaces:
ProductTailoringUpdateAction
Either variantId or sku is required to reference a ProductVariant that exists. Produces the ProductTailoringImagesSet Message.
Example to create an instance using the builder pattern
ProductTailoringSetExternalImagesAction productTailoringSetExternalImagesAction = ProductTailoringSetExternalImagesAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductTailoringSetExternalImagesAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductTailoringSetExternalImagesActioncreate builder for ProductTailoringSetExternalImagesAction instancecopyDeep()factory method to create a deep copy of ProductTailoringSetExternalImagesActionImages of the tailored ProductVariant.getSku()Theskuof the tailored ProductVariant to update.Iftrue, only the stagedimagesis updated.Theidof the tailored ProductVariant to update.of()factory methodof(ProductTailoringSetExternalImagesAction template) factory method to create a shallow copy ProductTailoringSetExternalImagesActionvoidImages of the tailored ProductVariant.voidImages of the tailored ProductVariant.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<ProductTailoringSetExternalImagesAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithProductTailoringSetExternalImagesAction(Function<ProductTailoringSetExternalImagesAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product_tailoring.ProductTailoringUpdateAction
getAction, withProductTailoringUpdateAction
-
Field Details
-
SET_IMAGES
discriminator value for ProductTailoringSetExternalImagesAction- 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
-
getImages
Images of the tailored ProductVariant.
Don't provide this field if you want to remove all images from the tailored Product Variant. Set to
[](empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.- Returns:
- images
-
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
-
setImages
Images of the tailored ProductVariant.
Don't provide this field if you want to remove all images from the tailored Product Variant. Set to
[](empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.- Parameters:
images- values to be set
-
setImages
Images of the tailored ProductVariant.
Don't provide this field if you want to remove all images from the tailored Product Variant. Set to
[](empty) if you want to hide all images of the original ProductVariant on the tailored ProductVariant.- Parameters:
images- values 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 ProductTailoringSetExternalImagesAction
-
of
factory method to create a shallow copy ProductTailoringSetExternalImagesAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductTailoringSetExternalImagesAction copyDeep()- Specified by:
copyDeepin interfaceProductTailoringUpdateAction
-
deepCopy
@Nullable static ProductTailoringSetExternalImagesAction deepCopy(@Nullable ProductTailoringSetExternalImagesAction template) factory method to create a deep copy of ProductTailoringSetExternalImagesAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringSetExternalImagesAction- Returns:
- builder
-
builder
static ProductTailoringSetExternalImagesActionBuilder builder(ProductTailoringSetExternalImagesAction template) create builder for ProductTailoringSetExternalImagesAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringSetExternalImagesAction
default <T> T withProductTailoringSetExternalImagesAction(Function<ProductTailoringSetExternalImagesAction, 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<ProductTailoringSetExternalImagesAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-