Class ProductSetAssetCustomTypeActionImpl
- All Implemented Interfaces:
ProductSetAssetCustomTypeAction
,ProductUpdateAction
,ResourceUpdateAction<ProductUpdateAction>
,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.ProductSetAssetCustomTypeAction
SET_ASSET_CUSTOM_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Theid
of the Asset to update.Thekey
of the Asset to update.Sets the Custom Fields fields for the Asset.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the staged Asset is updated.getType()
Defines the Type that extends the Asset with Custom Fields.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
setFields
(FieldContainer fields) Sets the Custom Fields fields for the Asset.void
Thesku
of the ProductVariant to update.void
Iftrue
, only the staged Asset is updated.void
Defines the Type that extends the Asset with Custom Fields.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.ProductSetAssetCustomTypeAction
withProductSetAssetCustomTypeAction
Methods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductSetAssetCustomTypeActionImpl
public ProductSetAssetCustomTypeActionImpl()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 interfaceProductSetAssetCustomTypeAction
- Returns:
- variantId
-
getSku
The
sku
of the ProductVariant to update.- Specified by:
getSku
in interfaceProductSetAssetCustomTypeAction
- Returns:
- sku
-
getStaged
If
true
, only the staged Asset is updated. Iffalse
, both the current and staged Asset is updated.- Specified by:
getStaged
in interfaceProductSetAssetCustomTypeAction
- Returns:
- staged
-
getAssetId
The
id
of the Asset to update.- Specified by:
getAssetId
in interfaceProductSetAssetCustomTypeAction
- Returns:
- assetId
-
getAssetKey
The
key
of the Asset to update.- Specified by:
getAssetKey
in interfaceProductSetAssetCustomTypeAction
- Returns:
- assetKey
-
getType
Defines the Type that extends the Asset with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Asset.
- Specified by:
getType
in interfaceProductSetAssetCustomTypeAction
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Asset.
- Specified by:
getFields
in interfaceProductSetAssetCustomTypeAction
- Returns:
- fields
-
setVariantId
Description copied from interface:ProductSetAssetCustomTypeAction
The
id
of the ProductVariant to update.- Specified by:
setVariantId
in interfaceProductSetAssetCustomTypeAction
- Parameters:
variantId
- value to be set
-
setSku
Description copied from interface:ProductSetAssetCustomTypeAction
The
sku
of the ProductVariant to update.- Specified by:
setSku
in interfaceProductSetAssetCustomTypeAction
- Parameters:
sku
- value to be set
-
setStaged
Description copied from interface:ProductSetAssetCustomTypeAction
If
true
, only the staged Asset is updated. Iffalse
, both the current and staged Asset is updated.- Specified by:
setStaged
in interfaceProductSetAssetCustomTypeAction
- Parameters:
staged
- value to be set
-
setAssetId
Description copied from interface:ProductSetAssetCustomTypeAction
The
id
of the Asset to update.- Specified by:
setAssetId
in interfaceProductSetAssetCustomTypeAction
- Parameters:
assetId
- value to be set
-
setAssetKey
Description copied from interface:ProductSetAssetCustomTypeAction
The
key
of the Asset to update.- Specified by:
setAssetKey
in interfaceProductSetAssetCustomTypeAction
- Parameters:
assetKey
- value to be set
-
setType
Description copied from interface:ProductSetAssetCustomTypeAction
Defines the Type that extends the Asset with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Asset.
- Specified by:
setType
in interfaceProductSetAssetCustomTypeAction
- Parameters:
type
- value to be set
-
setFields
Description copied from interface:ProductSetAssetCustomTypeAction
Sets the Custom Fields fields for the Asset.
- Specified by:
setFields
in interfaceProductSetAssetCustomTypeAction
- Parameters:
fields
- value to be set
-
equals
-
hashCode
-