Class ProductRemoveImageActionImpl
java.lang.Object
com.commercetools.api.models.product.ProductRemoveImageActionImpl
- All Implemented Interfaces:
ProductRemoveImageAction
,ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class ProductRemoveImageActionImpl
extends Object
implements ProductRemoveImageAction, io.vrap.rmf.base.client.ModelBase
Removes a Product image and deletes it from the Content Delivery Network (external images are not deleted). Deletion from the CDN is not instant, which means the image file itself will stay available for some time after the deletion. Either variantId
or sku
is required.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.product.ProductRemoveImageAction
REMOVE_IMAGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The URL of the image to remove.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the staged image is removed.Theid
of the ProductVariant to update.int
hashCode()
void
setImageUrl
(String imageUrl) The URL of the image to remove.void
Thesku
of the ProductVariant to update.void
Iftrue
, only the staged image is removed.void
setVariantId
(Long variantId) Theid
of the ProductVariant to update.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product.ProductRemoveImageAction
withProductRemoveImageAction
Methods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductRemoveImageActionImpl
public ProductRemoveImageActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceProductUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<ProductUpdateAction>
- Returns:
- action
-
getVariantId
The
id
of the ProductVariant to update.- Specified by:
getVariantId
in interfaceProductRemoveImageAction
- Returns:
- variantId
-
getSku
The
sku
of the ProductVariant to update.- Specified by:
getSku
in interfaceProductRemoveImageAction
- Returns:
- sku
-
getImageUrl
The URL of the image to remove.
- Specified by:
getImageUrl
in interfaceProductRemoveImageAction
- Returns:
- imageUrl
-
getStaged
If
true
, only the staged image is removed. Iffalse
, both the current and staged image is removed.- Specified by:
getStaged
in interfaceProductRemoveImageAction
- Returns:
- staged
-
setVariantId
Description copied from interface:ProductRemoveImageAction
The
id
of the ProductVariant to update.- Specified by:
setVariantId
in interfaceProductRemoveImageAction
- Parameters:
variantId
- value to be set
-
setSku
Description copied from interface:ProductRemoveImageAction
The
sku
of the ProductVariant to update.- Specified by:
setSku
in interfaceProductRemoveImageAction
- Parameters:
sku
- value to be set
-
setImageUrl
Description copied from interface:ProductRemoveImageAction
The URL of the image to remove.
- Specified by:
setImageUrl
in interfaceProductRemoveImageAction
- Parameters:
imageUrl
- value to be set
-
setStaged
Description copied from interface:ProductRemoveImageAction
If
true
, only the staged image is removed. Iffalse
, both the current and staged image is removed.- Specified by:
setStaged
in interfaceProductRemoveImageAction
- Parameters:
staged
- value to be set
-
equals
-
hashCode
-