Interface ProductTailoringRemoveImageAction
- All Superinterfaces:
ProductTailoringUpdateAction
Either variantId
or sku
is required to reference a ProductVariant that exists.
Example to create an instance using the builder pattern
ProductTailoringRemoveImageAction productTailoringRemoveImageAction = ProductTailoringRemoveImageAction.builder()
.imageUrl("{imageUrl}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProductTailoringRemoveImageAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProductTailoringRemoveImageActionbuilder
(ProductTailoringRemoveImageAction template) create builder for ProductTailoringRemoveImageAction instancedeepCopy
(ProductTailoringRemoveImageAction template) factory method to create a deep copy of ProductTailoringRemoveImageAction@NotNull String
The URL of the image to remove.getSku()
Thesku
of the tailored ProductVariant to update.Iftrue
, only the staged image is removed.Theid
of the tailored ProductVariant to update.of()
factory methodof
(ProductTailoringRemoveImageAction template) factory method to create a shallow copy ProductTailoringRemoveImageActionvoid
setImageUrl
(String imageUrl) The URL of the image to remove.void
Thesku
of the tailored ProductVariant to update.void
Iftrue
, only the staged image is removed.void
setVariantId
(Long variantId) Theid
of the tailored ProductVariant to update.static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringRemoveImageAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor 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
id
of the tailored ProductVariant to update.- Returns:
- variantId
-
getSku
String getSku()The
sku
of the tailored ProductVariant to update.- Returns:
- sku
-
getImageUrl
The URL of the image to remove.
- Returns:
- imageUrl
-
getStaged
Boolean getStaged()If
true
, only the staged image is removed. Iffalse
, both the current and staged image is removed.- 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
-
setImageUrl
The URL of the image to remove.
- Parameters:
imageUrl
- value to be set
-
setStaged
If
true
, only the staged image is removed. Iffalse
, 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
-
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
static com.fasterxml.jackson.core.type.TypeReference<ProductTailoringRemoveImageAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-