Class ProductRemoveVariantActionImpl
java.lang.Object
com.commercetools.api.models.product.ProductRemoveVariantActionImpl
- All Implemented Interfaces:
ProductRemoveVariantAction
,ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class ProductRemoveVariantActionImpl
extends Object
implements ProductRemoveVariantAction, io.vrap.rmf.base.client.ModelBase
Either id
or sku
is required. Produces the ProductVariantDeleted Message. If the Product Variant to remove is part of a ProductSelectionAssignment its SKU will be automatically removed from the respective ProductVariantSelection.
-
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.ProductRemoveVariantAction
REMOVE_VARIANT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
Theid
of the ProductVariant to remove.getSku()
Thesku
of the ProductVariant to remove.Iftrue
, only the staged ProductVariant is removed.int
hashCode()
void
Theid
of the ProductVariant to remove.void
Thesku
of the ProductVariant to remove.void
Iftrue
, only the staged ProductVariant is removed.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.ProductRemoveVariantAction
withProductRemoveVariantAction
Methods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductRemoveVariantActionImpl
public ProductRemoveVariantActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceProductUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<ProductUpdateAction>
- Returns:
- action
-
getId
The
id
of the ProductVariant to remove.- Specified by:
getId
in interfaceProductRemoveVariantAction
- Returns:
- id
-
getSku
The
sku
of the ProductVariant to remove.- Specified by:
getSku
in interfaceProductRemoveVariantAction
- Returns:
- sku
-
getStaged
If
true
, only the staged ProductVariant is removed. Iffalse
, both the current and staged ProductVariant is removed.- Specified by:
getStaged
in interfaceProductRemoveVariantAction
- Returns:
- staged
-
setId
Description copied from interface:ProductRemoveVariantAction
The
id
of the ProductVariant to remove.- Specified by:
setId
in interfaceProductRemoveVariantAction
- Parameters:
id
- value to be set
-
setSku
Description copied from interface:ProductRemoveVariantAction
The
sku
of the ProductVariant to remove.- Specified by:
setSku
in interfaceProductRemoveVariantAction
- Parameters:
sku
- value to be set
-
setStaged
Description copied from interface:ProductRemoveVariantAction
If
true
, only the staged ProductVariant is removed. Iffalse
, both the current and staged ProductVariant is removed.- Specified by:
setStaged
in interfaceProductRemoveVariantAction
- Parameters:
staged
- value to be set
-
equals
-
hashCode
public int hashCode()
-