Class ProductTypeChangeEnumKeyActionImpl
java.lang.Object
com.commercetools.api.models.product_type.ProductTypeChangeEnumKeyActionImpl
- All Implemented Interfaces:
ProductTypeChangeEnumKeyAction
,ProductTypeUpdateAction
,ResourceUpdateAction<ProductTypeUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class ProductTypeChangeEnumKeyActionImpl
extends Object
implements ProductTypeChangeEnumKeyAction, io.vrap.rmf.base.client.ModelBase
Updates the key of a single enum value
in an AttributeEnumType AttributeDefinition, AttributeLocalizedEnumType AttributeDefinition, AttributeSetType of AttributeEnumType AttributeDefinition, or AttributeSetType of AttributeLocalizedEnumType AttributeDefinition.
If the AttributeDefinition does not contain an enum with the referenced key, a EnumKeyDoesNotExist error is returned.
All Products will be updated to the new key in an eventually consistent way.
-
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_type.ProductTypeChangeEnumKeyAction
CHANGE_ENUM_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Name of the AttributeDefinition to update.getKey()
Existing key to be changed.New key to be set.int
hashCode()
void
setAttributeName
(String attributeName) Name of the AttributeDefinition to update.void
Existing key to be changed.void
New key to be set.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_type.ProductTypeChangeEnumKeyAction
withProductTypeChangeEnumKeyAction
Methods inherited from interface com.commercetools.api.models.product_type.ProductTypeUpdateAction
withProductTypeUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductTypeChangeEnumKeyActionImpl
public ProductTypeChangeEnumKeyActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceProductTypeUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<ProductTypeUpdateAction>
- Returns:
- action
-
getAttributeName
Name of the AttributeDefinition to update.
- Specified by:
getAttributeName
in interfaceProductTypeChangeEnumKeyAction
- Returns:
- attributeName
-
getKey
Existing key to be changed.
- Specified by:
getKey
in interfaceProductTypeChangeEnumKeyAction
- Returns:
- key
-
getNewKey
New key to be set.
- Specified by:
getNewKey
in interfaceProductTypeChangeEnumKeyAction
- Returns:
- newKey
-
setAttributeName
Description copied from interface:ProductTypeChangeEnumKeyAction
Name of the AttributeDefinition to update.
- Specified by:
setAttributeName
in interfaceProductTypeChangeEnumKeyAction
- Parameters:
attributeName
- value to be set
-
setKey
Description copied from interface:ProductTypeChangeEnumKeyAction
Existing key to be changed.
- Specified by:
setKey
in interfaceProductTypeChangeEnumKeyAction
- Parameters:
key
- value to be set
-
setNewKey
Description copied from interface:ProductTypeChangeEnumKeyAction
New key to be set.
- Specified by:
setNewKey
in interfaceProductTypeChangeEnumKeyAction
- Parameters:
newKey
- value to be set
-
equals
-
hashCode
-