Interface ProductAddExternalImageAction
- All Superinterfaces:
ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
Either variantId
or sku
is required. Produces the ProductImageAdded Message.
Example to create an instance using the builder pattern
ProductAddExternalImageAction productAddExternalImageAction = ProductAddExternalImageAction.builder()
.image(imageBuilder -> imageBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductAddExternalImageAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductAddExternalImageActionbuilder
(ProductAddExternalImageAction template) create builder for ProductAddExternalImageAction instancedeepCopy
(ProductAddExternalImageAction template) factory method to create a deep copy of ProductAddExternalImageAction@NotNull @Valid Image
getImage()
Value to add toimages
.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the stagedimages
is updated.Theid
of the ProductVariant to update.of()
factory methodof
(ProductAddExternalImageAction template) factory method to create a shallow copy ProductAddExternalImageActionvoid
Value to add toimages
.void
Thesku
of the ProductVariant to update.void
Iftrue
, only the stagedimages
is updated.void
setVariantId
(Long variantId) Theid
of the ProductVariant to update.static com.fasterxml.jackson.core.type.TypeReference<ProductAddExternalImageAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_EXTERNAL_IMAGE
discriminator value for ProductAddExternalImageAction- See Also:
-
-
Method Details
-
getVariantId
Long getVariantId()The
id
of the ProductVariant to update.- Returns:
- variantId
-
getSku
String getSku()The
sku
of the 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 ProductVariant to update.- Parameters:
variantId
- value to be set
-
setSku
The
sku
of the 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 ProductAddExternalImageAction
-
of
factory method to create a shallow copy ProductAddExternalImageAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProductAddExternalImageAction deepCopy(@Nullable ProductAddExternalImageAction template) factory method to create a deep copy of ProductAddExternalImageAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductAddExternalImageAction- Returns:
- builder
-
builder
create builder for ProductAddExternalImageAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProductAddExternalImageAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-