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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductAddExternalImageAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductAddExternalImageActionbuilder(ProductAddExternalImageAction template) create builder for ProductAddExternalImageAction instancecopyDeep()deepCopy(ProductAddExternalImageAction template) factory method to create a deep copy of ProductAddExternalImageAction@NotNull @Valid ImagegetImage()Value to add toimages.getSku()Theskuof the ProductVariant to update.Iftrue, only the stagedimagesis updated.Theidof the ProductVariant to update.of()factory methodof(ProductAddExternalImageAction template) factory method to create a shallow copy ProductAddExternalImageActionvoidValue to add toimages.voidTheskuof the ProductVariant to update.voidIftrue, only the stagedimagesis updated.voidsetVariantId(Long variantId) Theidof the ProductVariant to update.static com.fasterxml.jackson.core.type.TypeReference<ProductAddExternalImageAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
getAction, withProductUpdateActionMethods 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
idof the ProductVariant to update.- Returns:
- variantId
-
getSku
String getSku()The
skuof the ProductVariant to update.- Returns:
- sku
-
getImage
Value to add to
images.- Returns:
- image
-
getStaged
Boolean getStaged()If
true, only the stagedimagesis updated. Iffalse, both the current and stagedimagesis updated.- Returns:
- staged
-
setVariantId
The
idof the ProductVariant to update.- Parameters:
variantId- value to be set
-
setSku
The
skuof 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 stagedimagesis updated. Iffalse, both the current and stagedimagesis 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
-
copyDeep
ProductAddExternalImageAction copyDeep()- Specified by:
copyDeepin interfaceProductUpdateAction
-
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
-