Class ProductTypeChangeAttributeConstraintActionImpl
java.lang.Object
com.commercetools.api.models.product_type.ProductTypeChangeAttributeConstraintActionImpl
- All Implemented Interfaces:
ProductTypeChangeAttributeConstraintAction
,ProductTypeUpdateAction
,ResourceUpdateAction<ProductTypeUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class ProductTypeChangeAttributeConstraintActionImpl
extends Object
implements ProductTypeChangeAttributeConstraintAction, io.vrap.rmf.base.client.ModelBase
Updates the attributeConstraint
of an AttributeDefinition. For now only following changes are supported: SameForAll
to None
and Unique
to None
.
-
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.ProductTypeChangeAttributeConstraintAction
CHANGE_ATTRIBUTE_CONSTRAINT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Name of the AttributeDefinition to update.None
int
hashCode()
void
setAttributeName
(String attributeName) Name of the AttributeDefinition to update.void
setNewValue
(AttributeConstraintEnumDraft newValue) None
toString()
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.product_type.ProductTypeChangeAttributeConstraintAction
withProductTypeChangeAttributeConstraintAction
Methods inherited from interface com.commercetools.api.models.product_type.ProductTypeUpdateAction
withProductTypeUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
ProductTypeChangeAttributeConstraintActionImpl
public ProductTypeChangeAttributeConstraintActionImpl()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 interfaceProductTypeChangeAttributeConstraintAction
- Returns:
- attributeName
-
getNewValue
None
- Specified by:
getNewValue
in interfaceProductTypeChangeAttributeConstraintAction
- Returns:
- newValue
-
setAttributeName
Description copied from interface:ProductTypeChangeAttributeConstraintAction
Name of the AttributeDefinition to update.
- Specified by:
setAttributeName
in interfaceProductTypeChangeAttributeConstraintAction
- Parameters:
attributeName
- value to be set
-
setNewValue
Description copied from interface:ProductTypeChangeAttributeConstraintAction
None
- Specified by:
setNewValue
in interfaceProductTypeChangeAttributeConstraintAction
- Parameters:
newValue
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-