Class ProductSetAssetDescriptionActionImpl
java.lang.Object
com.commercetools.api.models.product.ProductSetAssetDescriptionActionImpl
- All Implemented Interfaces:
ProductSetAssetDescriptionAction
,ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class ProductSetAssetDescriptionActionImpl
extends Object
implements ProductSetAssetDescriptionAction, io.vrap.rmf.base.client.ModelBase
Either variantId
or sku
is required. The Asset to update must be specified using either assetId
or assetKey
.
-
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.ProductSetAssetDescriptionAction
SET_ASSET_DESCRIPTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Theid
of the Asset to update.Thekey
of the Asset to update.Value to set.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the staged Asset is updated.Theid
of the ProductVariant to update.int
hashCode()
void
setAssetId
(String assetId) Theid
of the Asset to update.void
setAssetKey
(String assetKey) Thekey
of the Asset to update.void
setDescription
(LocalizedString description) Value to set.void
Thesku
of the ProductVariant to update.void
Iftrue
, only the staged Asset 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.ProductSetAssetDescriptionAction
withProductSetAssetDescriptionAction
Methods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductSetAssetDescriptionActionImpl
public ProductSetAssetDescriptionActionImpl()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 interfaceProductSetAssetDescriptionAction
- Returns:
- variantId
-
getSku
The
sku
of the ProductVariant to update.- Specified by:
getSku
in interfaceProductSetAssetDescriptionAction
- Returns:
- sku
-
getStaged
If
true
, only the staged Asset is updated. Iffalse
, both the current and staged Asset is updated.- Specified by:
getStaged
in interfaceProductSetAssetDescriptionAction
- Returns:
- staged
-
getAssetId
The
id
of the Asset to update.- Specified by:
getAssetId
in interfaceProductSetAssetDescriptionAction
- Returns:
- assetId
-
getAssetKey
The
key
of the Asset to update.- Specified by:
getAssetKey
in interfaceProductSetAssetDescriptionAction
- Returns:
- assetKey
-
getDescription
Value to set. If empty, any existing value will be removed.
- Specified by:
getDescription
in interfaceProductSetAssetDescriptionAction
- Returns:
- description
-
setVariantId
Description copied from interface:ProductSetAssetDescriptionAction
The
id
of the ProductVariant to update.- Specified by:
setVariantId
in interfaceProductSetAssetDescriptionAction
- Parameters:
variantId
- value to be set
-
setSku
Description copied from interface:ProductSetAssetDescriptionAction
The
sku
of the ProductVariant to update.- Specified by:
setSku
in interfaceProductSetAssetDescriptionAction
- Parameters:
sku
- value to be set
-
setStaged
Description copied from interface:ProductSetAssetDescriptionAction
If
true
, only the staged Asset is updated. Iffalse
, both the current and staged Asset is updated.- Specified by:
setStaged
in interfaceProductSetAssetDescriptionAction
- Parameters:
staged
- value to be set
-
setAssetId
Description copied from interface:ProductSetAssetDescriptionAction
The
id
of the Asset to update.- Specified by:
setAssetId
in interfaceProductSetAssetDescriptionAction
- Parameters:
assetId
- value to be set
-
setAssetKey
Description copied from interface:ProductSetAssetDescriptionAction
The
key
of the Asset to update.- Specified by:
setAssetKey
in interfaceProductSetAssetDescriptionAction
- Parameters:
assetKey
- value to be set
-
setDescription
Description copied from interface:ProductSetAssetDescriptionAction
Value to set. If empty, any existing value will be removed.
- Specified by:
setDescription
in interfaceProductSetAssetDescriptionAction
- Parameters:
description
- value to be set
-
equals
-
hashCode
public int hashCode()
-