Interface ProductTailoringSetExternalImagesAction
- All Superinterfaces:
ProductTailoringUpdateAction
Either variantId or sku is required to reference a ProductVariant or Variant 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 or Variant.getSku()Theskuof the tailored ProductVariant or Variant to update.Whether only the stagedimagesis updated.Theidof the tailored ProductVariant or Variant to update.of()factory methodof(ProductTailoringSetExternalImagesAction template) factory method to create a shallow copy ProductTailoringSetExternalImagesActionvoidImages of the tailored ProductVariant or Variant.voidImages of the tailored ProductVariant or Variant.voidTheskuof the tailored ProductVariant or Variant to update.voidWhether only the stagedimagesis updated.voidsetVariantId(Long variantId) Theidof the tailored ProductVariant or Variant to update.static tools.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 or Variant to update.- Returns:
- variantId
-
getSku
String getSku()The
skuof the tailored ProductVariant or Variant to update.- Returns:
- sku
-
getImages
Images of the tailored ProductVariant or Variant.
Don't provide this field if you want to remove all images from the tailored ProductVariant or Variant. Set to
[](empty) if you want to hide all images of the original ProductVariant or Variant on the tailored ProductVariant or Variant.- Returns:
- images
-
getStaged
Boolean getStaged()Whether only the staged
imagesis updated. Iffalse, both the current and stagedimagesare updated.- Returns:
- staged
-
setVariantId
The
idof the tailored ProductVariant or Variant to update.- Parameters:
variantId- value to be set
-
setSku
The
skuof the tailored ProductVariant or Variant to update.- Parameters:
sku- value to be set
-
setImages
Images of the tailored ProductVariant or Variant.
Don't provide this field if you want to remove all images from the tailored ProductVariant or Variant. Set to
[](empty) if you want to hide all images of the original ProductVariant or Variant on the tailored ProductVariant or Variant.- Parameters:
images- values to be set
-
setImages
Images of the tailored ProductVariant or Variant.
Don't provide this field if you want to remove all images from the tailored ProductVariant or Variant. Set to
[](empty) if you want to hide all images of the original ProductVariant or Variant on the tailored ProductVariant or Variant.- Parameters:
images- values to be set
-
setStaged
Whether only the staged
imagesis updated. Iffalse, both the current and stagedimagesare 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 tools.jackson.core.type.TypeReference<ProductTailoringSetExternalImagesAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-