Class ProductRevertStagedVariantChangesActionImpl
java.lang.Object
com.commercetools.api.models.product.ProductRevertStagedVariantChangesActionImpl
- All Implemented Interfaces:
ProductRevertStagedVariantChangesAction
,ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class ProductRevertStagedVariantChangesActionImpl
extends Object
implements ProductRevertStagedVariantChangesAction, io.vrap.rmf.base.client.ModelBase
Reverts the staged version of a ProductVariant to the current version.
-
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.ProductRevertStagedVariantChangesAction
REVERT_STAGED_VARIANT_CHANGES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Theid
of the ProductVariant to revert.int
hashCode()
void
setVariantId
(Long variantId) Theid
of the ProductVariant to revert.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.ProductRevertStagedVariantChangesAction
withProductRevertStagedVariantChangesAction
Methods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductRevertStagedVariantChangesActionImpl
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 revert.- Specified by:
getVariantId
in interfaceProductRevertStagedVariantChangesAction
- Returns:
- variantId
-
setVariantId
Description copied from interface:ProductRevertStagedVariantChangesAction
The
id
of the ProductVariant to revert.- Specified by:
setVariantId
in interfaceProductRevertStagedVariantChangesAction
- Parameters:
variantId
- value to be set
-
equals
-
hashCode
-