Class ProductSetSkuActionImpl
java.lang.Object
com.commercetools.api.models.product.ProductSetSkuActionImpl
- All Implemented Interfaces:
ProductSetSkuAction
,ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class ProductSetSkuActionImpl
extends Object
implements ProductSetSkuAction, io.vrap.rmf.base.client.ModelBase
SKU cannot be changed or removed if it is associated with an InventoryEntry. If the SKU to set or unset is part of a ProductSelectionAssignment it will be automatically added or 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.ProductSetSkuAction
SET_SKU
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getSku()
Value to set.Iftrue
, only the stagedsku
is updated.Theid
of the ProductVariant to update.int
hashCode()
void
Value to set.void
Iftrue
, only the stagedsku
is updated.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.ProductSetSkuAction
withProductSetSkuAction
Methods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductSetSkuActionImpl
public ProductSetSkuActionImpl()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 interfaceProductSetSkuAction
- Returns:
- variantId
-
getSku
Value to set. Must be unique. If empty, any existing value will be removed.
- Specified by:
getSku
in interfaceProductSetSkuAction
- Returns:
- sku
-
getStaged
If
true
, only the stagedsku
is updated. Iffalse
, both the current and stagedsku
are updated.- Specified by:
getStaged
in interfaceProductSetSkuAction
- Returns:
- staged
-
setVariantId
Description copied from interface:ProductSetSkuAction
The
id
of the ProductVariant to update.- Specified by:
setVariantId
in interfaceProductSetSkuAction
- Parameters:
variantId
- value to be set
-
setSku
Description copied from interface:ProductSetSkuAction
Value to set. Must be unique. If empty, any existing value will be removed.
- Specified by:
setSku
in interfaceProductSetSkuAction
- Parameters:
sku
- value to be set
-
setStaged
Description copied from interface:ProductSetSkuAction
If
true
, only the stagedsku
is updated. Iffalse
, both the current and stagedsku
are updated.- Specified by:
setStaged
in interfaceProductSetSkuAction
- Parameters:
staged
- value to be set
-
equals
-
hashCode
-