Class ProductTypeRemoveAttributeDefinitionActionImpl
java.lang.Object
com.commercetools.api.models.product_type.ProductTypeRemoveAttributeDefinitionActionImpl
- All Implemented Interfaces:
ProductTypeRemoveAttributeDefinitionAction
,ProductTypeUpdateAction
,ResourceUpdateAction<ProductTypeUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class ProductTypeRemoveAttributeDefinitionActionImpl
extends Object
implements ProductTypeRemoveAttributeDefinitionAction, io.vrap.rmf.base.client.ModelBase
Removes an AttributeDefinition and also deletes all corresponding Attributes on all Products with this ProductType. The removal of the Attributes is eventually consistent.
The CombinationUnique
constraint is not checked when an Attribute is removed, and uniqueness violations may occur when you remove an Attribute with a CombinationUnique
constraint.
-
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.ProductTypeRemoveAttributeDefinitionAction
REMOVE_ATTRIBUTE_DEFINITION
-
Constructor Summary
Constructors -
Method Summary
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.ProductTypeRemoveAttributeDefinitionAction
withProductTypeRemoveAttributeDefinitionAction
Methods inherited from interface com.commercetools.api.models.product_type.ProductTypeUpdateAction
withProductTypeUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductTypeRemoveAttributeDefinitionActionImpl
public ProductTypeRemoveAttributeDefinitionActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceProductTypeUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<ProductTypeUpdateAction>
- Returns:
- action
-
getName
Name of the Attribute to remove.
- Specified by:
getName
in interfaceProductTypeRemoveAttributeDefinitionAction
- Returns:
- name
-
setName
Description copied from interface:ProductTypeRemoveAttributeDefinitionAction
Name of the Attribute to remove.
- Specified by:
setName
in interfaceProductTypeRemoveAttributeDefinitionAction
- Parameters:
name
- value to be set
-
equals
-
hashCode
public int hashCode()
-