Class ProductSetAssetCustomFieldActionImpl
- All Implemented Interfaces:
ProductSetAssetCustomFieldAction
,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.ProductSetAssetCustomFieldAction
SET_ASSET_CUSTOM_FIELD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Theid
of the Asset to update.Thekey
of the Asset to update.getName()
Name of the Custom Field.getSku()
Thesku
of the ProductVariant to update.Iftrue
, only the staged Asset is updated.getValue()
Ifvalue
is absent ornull
, this field will be removed if it exists.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
Name of the Custom Field.void
Thesku
of the ProductVariant to update.void
Iftrue
, only the staged Asset is updated.void
Ifvalue
is absent ornull
, this field will be removed if it exists.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.ProductSetAssetCustomFieldAction
withProductSetAssetCustomFieldAction
Methods inherited from interface com.commercetools.api.models.product.ProductUpdateAction
withProductUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductSetAssetCustomFieldActionImpl
public ProductSetAssetCustomFieldActionImpl()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 interfaceProductSetAssetCustomFieldAction
- Returns:
- variantId
-
getSku
The
sku
of the ProductVariant to update.- Specified by:
getSku
in interfaceProductSetAssetCustomFieldAction
- Returns:
- sku
-
getStaged
If
true
, only the staged Asset is updated. Iffalse
, both the current and staged Asset is updated.- Specified by:
getStaged
in interfaceProductSetAssetCustomFieldAction
- Returns:
- staged
-
getAssetId
The
id
of the Asset to update.- Specified by:
getAssetId
in interfaceProductSetAssetCustomFieldAction
- Returns:
- assetId
-
getAssetKey
The
key
of the Asset to update.- Specified by:
getAssetKey
in interfaceProductSetAssetCustomFieldAction
- Returns:
- assetKey
-
getName
Name of the Custom Field.
- Specified by:
getName
in interfaceProductSetAssetCustomFieldAction
- Returns:
- name
-
getValue
If
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Specified by:
getValue
in interfaceProductSetAssetCustomFieldAction
- Returns:
- value
-
setVariantId
Description copied from interface:ProductSetAssetCustomFieldAction
The
id
of the ProductVariant to update.- Specified by:
setVariantId
in interfaceProductSetAssetCustomFieldAction
- Parameters:
variantId
- value to be set
-
setSku
Description copied from interface:ProductSetAssetCustomFieldAction
The
sku
of the ProductVariant to update.- Specified by:
setSku
in interfaceProductSetAssetCustomFieldAction
- Parameters:
sku
- value to be set
-
setStaged
Description copied from interface:ProductSetAssetCustomFieldAction
If
true
, only the staged Asset is updated. Iffalse
, both the current and staged Asset is updated.- Specified by:
setStaged
in interfaceProductSetAssetCustomFieldAction
- Parameters:
staged
- value to be set
-
setAssetId
Description copied from interface:ProductSetAssetCustomFieldAction
The
id
of the Asset to update.- Specified by:
setAssetId
in interfaceProductSetAssetCustomFieldAction
- Parameters:
assetId
- value to be set
-
setAssetKey
Description copied from interface:ProductSetAssetCustomFieldAction
The
key
of the Asset to update.- Specified by:
setAssetKey
in interfaceProductSetAssetCustomFieldAction
- Parameters:
assetKey
- value to be set
-
setName
Description copied from interface:ProductSetAssetCustomFieldAction
Name of the Custom Field.
- Specified by:
setName
in interfaceProductSetAssetCustomFieldAction
- Parameters:
name
- value to be set
-
setValue
Description copied from interface:ProductSetAssetCustomFieldAction
If
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Specified by:
setValue
in interfaceProductSetAssetCustomFieldAction
- Parameters:
value
- value to be set
-
equals
-
hashCode
-