Interface ProductTailoringAddExternalImageAction
- All Superinterfaces:
ProductTailoringUpdateAction
Either variantId
or sku
is required to reference a ProductVariant that exists. Produces the ProductTailoringImageAdded Message.
Example to create an instance using the builder pattern
ProductTailoringAddExternalImageAction productTailoringAddExternalImageAction = ProductTailoringAddExternalImageAction.builder()
.image(imageBuilder -> imageBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTailoringAddExternalImageAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTailoringAddExternalImageActioncreate builder for ProductTailoringAddExternalImageAction instancefactory method to create a deep copy of ProductTailoringAddExternalImageAction@NotNull @Valid Image
getImage()
Value to add 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
(ProductTailoringAddExternalImageAction template) factory method to create a shallow copy ProductTailoringAddExternalImageActionvoid
Value to add 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<ProductTailoringAddExternalImageAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withProductTailoringAddExternalImageAction
(Function<ProductTailoringAddExternalImageAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.product_tailoring.ProductTailoringUpdateAction
getAction, withProductTailoringUpdateAction
-
Field Details
-
ADD_EXTERNAL_IMAGE
discriminator value for ProductTailoringAddExternalImageAction- 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
-
getImage
Value to add to
images
.- Returns:
- image
-
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
-
setImage
Value to add to
images
.- Parameters:
image
- value 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 ProductTailoringAddExternalImageAction
-
of
factory method to create a shallow copy ProductTailoringAddExternalImageAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductTailoringAddExternalImageAction deepCopy(@Nullable ProductTailoringAddExternalImageAction template) factory method to create a deep copy of ProductTailoringAddExternalImageAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringAddExternalImageAction- Returns:
- builder
-
builder
static ProductTailoringAddExternalImageActionBuilder builder(ProductTailoringAddExternalImageAction template) create builder for ProductTailoringAddExternalImageAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringAddExternalImageAction
default <T> T withProductTailoringAddExternalImageAction(Function<ProductTailoringAddExternalImageAction, 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<ProductTailoringAddExternalImageAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-