Class ProductSetProductVariantKeyActionImpl
java.lang.Object
com.commercetools.api.models.product.ProductSetProductVariantKeyActionImpl
- All Implemented Interfaces:
ProductSetProductVariantKeyAction
,ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class ProductSetProductVariantKeyActionImpl
extends Object
implements ProductSetProductVariantKeyAction, io.vrap.rmf.base.client.ModelBase
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.ProductSetProductVariantKeyAction
SET_PRODUCT_VARIANT_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getKey()
Value to set.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the stagedkey
is set.Theid
of the ProductVariant to update.int
hashCode()
void
Value to set.void
Thesku
of the ProductVariant to update.void
Iftrue
, only the stagedkey
is set.void
setVariantId
(Long variantId) Theid
of the ProductVariant to update.toString()
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product.ProductSetProductVariantKeyAction
withProductSetProductVariantKeyAction
Methods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductSetProductVariantKeyActionImpl
public ProductSetProductVariantKeyActionImpl()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 interfaceProductSetProductVariantKeyAction
- Returns:
- variantId
-
getSku
The
sku
of the ProductVariant to update.- Specified by:
getSku
in interfaceProductSetProductVariantKeyAction
- Returns:
- sku
-
getKey
Value to set. Must be unique. If empty, any existing value will be removed.
- Specified by:
getKey
in interfaceProductSetProductVariantKeyAction
- Returns:
- key
-
getStaged
If
true
, only the stagedkey
is set. Iffalse
, both the current and stagedkey
are set.- Specified by:
getStaged
in interfaceProductSetProductVariantKeyAction
- Returns:
- staged
-
setVariantId
Description copied from interface:ProductSetProductVariantKeyAction
The
id
of the ProductVariant to update.- Specified by:
setVariantId
in interfaceProductSetProductVariantKeyAction
- Parameters:
variantId
- value to be set
-
setSku
Description copied from interface:ProductSetProductVariantKeyAction
The
sku
of the ProductVariant to update.- Specified by:
setSku
in interfaceProductSetProductVariantKeyAction
- Parameters:
sku
- value to be set
-
setKey
Description copied from interface:ProductSetProductVariantKeyAction
Value to set. Must be unique. If empty, any existing value will be removed.
- Specified by:
setKey
in interfaceProductSetProductVariantKeyAction
- Parameters:
key
- value to be set
-
setStaged
Description copied from interface:ProductSetProductVariantKeyAction
If
true
, only the stagedkey
is set. Iffalse
, both the current and stagedkey
are set.- Specified by:
setStaged
in interfaceProductSetProductVariantKeyAction
- Parameters:
staged
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-