Interface VariantRemoveImageAction
- All Superinterfaces:
VariantUpdateAction
Removes a Variant's image.
Example to create an instance using the builder pattern
VariantRemoveImageAction variantRemoveImageAction = VariantRemoveImageAction.builder()
.imageUrl("{imageUrl}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for VariantRemoveImageAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for VariantRemoveImageActionbuilder(VariantRemoveImageAction template) create builder for VariantRemoveImageAction instancecopyDeep()static VariantRemoveImageActiondeepCopy(VariantRemoveImageAction template) factory method to create a deep copy of VariantRemoveImageAction@NotNull StringThe URL of the image to remove.Iftrue, only the staged image is removed.static VariantRemoveImageActionof()factory methodstatic VariantRemoveImageActionof(VariantRemoveImageAction template) factory method to create a shallow copy VariantRemoveImageActionvoidsetImageUrl(String imageUrl) The URL of the image to remove.voidIftrue, only the staged image is removed.static tools.jackson.core.type.TypeReference<VariantRemoveImageAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.variant.VariantUpdateAction
getAction, withVariantUpdateAction
-
Field Details
-
REMOVE_IMAGE
discriminator value for VariantRemoveImageAction- See Also:
-
-
Method Details
-
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
-
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 VariantRemoveImageAction
-
of
factory method to create a shallow copy VariantRemoveImageAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
VariantRemoveImageAction copyDeep()- Specified by:
copyDeepin interfaceVariantUpdateAction
-
deepCopy
factory method to create a deep copy of VariantRemoveImageAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for VariantRemoveImageAction- Returns:
- builder
-
builder
create builder for VariantRemoveImageAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withVariantRemoveImageAction
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
-