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()
.plusImages(imagesBuilder -> imagesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTailoringSetExternalImagesAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTailoringSetExternalImagesActioncreate builder for ProductTailoringSetExternalImagesAction instancefactory method to create a deep copy of ProductTailoringSetExternalImagesActionValue to set toimages
.getSku()
Thesku
of the tailored ProductVariant to update.Iftrue
, only the stagedimages
is updated.Theid
of the tailored ProductVariant to update.of()
factory methodof
(ProductTailoringSetExternalImagesAction template) factory method to create a shallow copy ProductTailoringSetExternalImagesActionvoid
Value to set toimages
.void
Value to set toimages
.void
Thesku
of the tailored ProductVariant to update.void
Iftrue
, only the stagedimages
is updated.void
setVariantId
(Long variantId) Theid
of the tailored ProductVariant to update.static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringSetExternalImagesAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductTailoringSetExternalImagesAction
(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
id
of the tailored ProductVariant to update.- Returns:
- variantId
-
getSku
String getSku()The
sku
of the tailored ProductVariant to update.- Returns:
- sku
-
getImages
Value to set to
images
.- Returns:
- images
-
getStaged
Boolean getStaged()If
true
, only the stagedimages
is updated. Iffalse
, both the current and stagedimages
is updated.- Returns:
- staged
-
setVariantId
The
id
of the tailored ProductVariant to update.- Parameters:
variantId
- value to be set
-
setSku
The
sku
of the tailored ProductVariant to update.- Parameters:
sku
- value to be set
-
setImages
Value to set to
images
.- Parameters:
images
- values to be set
-
setImages
Value to set to
images
.- Parameters:
images
- values to be set
-
setStaged
If
true
, only the stagedimages
is updated. Iffalse
, both the current and stagedimages
is 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
-
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
-