Interface ProductTailoringRemoveImageAction
- All Superinterfaces:
ProductTailoringUpdateAction
Either variantId or sku is required to reference a ProductVariant or Variant that exists.
Example to create an instance using the builder pattern
ProductTailoringRemoveImageAction productTailoringRemoveImageAction = ProductTailoringRemoveImageAction.builder()
.imageUrl("{imageUrl}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ProductTailoringRemoveImageAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ProductTailoringRemoveImageActionbuilder(ProductTailoringRemoveImageAction template) create builder for ProductTailoringRemoveImageAction instancecopyDeep()deepCopy(ProductTailoringRemoveImageAction template) factory method to create a deep copy of ProductTailoringRemoveImageAction@NotNull StringThe URL of the image to remove.getSku()Theskuof the tailored ProductVariant or Variant to update.Whether only the staged image is removed.Theidof the tailored ProductVariant or Variant to update.of()factory methodof(ProductTailoringRemoveImageAction template) factory method to create a shallow copy ProductTailoringRemoveImageActionvoidsetImageUrl(String imageUrl) The URL of the image to remove.voidTheskuof the tailored ProductVariant or Variant to update.voidWhether only the staged image is removed.voidsetVariantId(Long variantId) Theidof the tailored ProductVariant or Variant to update.static tools.jackson.core.type.TypeReference<ProductTailoringRemoveImageAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.product_tailoring.ProductTailoringUpdateAction
getAction, withProductTailoringUpdateAction
-
Field Details
-
REMOVE_IMAGE
discriminator value for ProductTailoringRemoveImageAction- 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
-
getImageUrl
The URL of the image to remove.
- Returns:
- imageUrl
-
getStaged
Boolean getStaged()Whether only the staged image is removed. If
false, both the current and staged image is removed.- 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
-
setImageUrl
The URL of the image to remove.
- Parameters:
imageUrl- value to be set
-
setStaged
Whether only the staged image is removed. If
false, both the current and staged image is removed.- Parameters:
staged- value to be set
-
of
factory method- Returns:
- instance of ProductTailoringRemoveImageAction
-
of
factory method to create a shallow copy ProductTailoringRemoveImageAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ProductTailoringRemoveImageAction copyDeep()- Specified by:
copyDeepin interfaceProductTailoringUpdateAction
-
deepCopy
@Nullable static ProductTailoringRemoveImageAction deepCopy(@Nullable ProductTailoringRemoveImageAction template) factory method to create a deep copy of ProductTailoringRemoveImageAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProductTailoringRemoveImageAction- Returns:
- builder
-
builder
create builder for ProductTailoringRemoveImageAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withProductTailoringRemoveImageAction
default <T> T withProductTailoringRemoveImageAction(Function<ProductTailoringRemoveImageAction, T> helper) 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
-