Class ProductTypeChangeAttributeNameActionImpl
- All Implemented Interfaces:
ProductTypeChangeAttributeNameAction
,ProductTypeUpdateAction
,ResourceUpdateAction<ProductTypeUpdateAction>
,io.vrap.rmf.base.client.ModelBase
Renames an AttributeDefinition and also renames all corresponding Attributes on all Products with this ProductType. The renaming of the Attributes is eventually consistent.
If the AttributeDefinition name to be changed does not exist, an AttributeNameDoesNotExist error is returned.
-
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.ProductTypeChangeAttributeNameAction
CHANGE_ATTRIBUTE_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Name of the AttributeDefinition to update.New user-defined name of the Attribute that is unique with the Project.int
hashCode()
void
setAttributeName
(String attributeName) Name of the AttributeDefinition to update.void
setNewAttributeName
(String newAttributeName) New user-defined name of the Attribute that is unique with the Project.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.ProductTypeChangeAttributeNameAction
withProductTypeChangeAttributeNameAction
Methods inherited from interface com.commercetools.api.models.product_type.ProductTypeUpdateAction
withProductTypeUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductTypeChangeAttributeNameActionImpl
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 interfaceProductTypeChangeAttributeNameAction
- Returns:
- attributeName
-
getNewAttributeName
New user-defined name of the Attribute that is unique with the Project.
When using the same
name
for an Attribute in two or more ProductTypes, all fields of the AttributeDefinition of this Attribute must be the same across the ProductTypes. If not, an AttributeDefinitionAlreadyExists error is returned. An exception to this are the values of anenum
orlenum
type and sets thereof.- Specified by:
getNewAttributeName
in interfaceProductTypeChangeAttributeNameAction
- Returns:
- newAttributeName
-
setAttributeName
Description copied from interface:ProductTypeChangeAttributeNameAction
Name of the AttributeDefinition to update.
- Specified by:
setAttributeName
in interfaceProductTypeChangeAttributeNameAction
- Parameters:
attributeName
- value to be set
-
setNewAttributeName
Description copied from interface:ProductTypeChangeAttributeNameAction
New user-defined name of the Attribute that is unique with the Project.
When using the same
name
for an Attribute in two or more ProductTypes, all fields of the AttributeDefinition of this Attribute must be the same across the ProductTypes. If not, an AttributeDefinitionAlreadyExists error is returned. An exception to this are the values of anenum
orlenum
type and sets thereof.- Specified by:
setNewAttributeName
in interfaceProductTypeChangeAttributeNameAction
- Parameters:
newAttributeName
- value to be set
-
equals
-
hashCode
-