Class AttributeDefinitionTypeConflictErrorImpl
- All Implemented Interfaces:
AttributeDefinitionTypeConflictError
,ErrorObject
,io.vrap.rmf.base.client.ModelBase
Returned when the type
is different for an AttributeDefinition using the same name
in multiple Product Types.
The error is returned as a failed response to the Create ProductType request.
-
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.error.AttributeDefinitionTypeConflictError
ATTRIBUTE_DEFINITION_TYPE_CONFLICT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Name of the conflicting Attribute.Unique identifier of the Product Type containing the conflicting name.Name of the Product Type containing the conflicting name."The attribute with name $attributeName has a different type on product type $productTypeName."
int
hashCode()
void
setConflictingAttributeName
(String conflictingAttributeName) Name of the conflicting Attribute.void
setConflictingProductTypeId
(String conflictingProductTypeId) Unique identifier of the Product Type containing the conflicting name.void
setConflictingProductTypeName
(String conflictingProductTypeName) Name of the Product Type containing the conflicting name.void
setMessage
(String message) "The attribute with name $attributeName has a different type on product type $productTypeName."
void
Error-specific additional fields.values()
Error-specific additional fields.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.error.AttributeDefinitionTypeConflictError
withAttributeDefinitionTypeConflictError
Methods inherited from interface com.commercetools.api.models.error.ErrorObject
withErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
AttributeDefinitionTypeConflictErrorImpl
create empty instance
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceAttributeDefinitionTypeConflictError
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"The attribute with name $attributeName has a different type on product type $productTypeName."
- Specified by:
getMessage
in interfaceAttributeDefinitionTypeConflictError
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceErrorObject
- Returns:
- map of the pattern property values
-
getConflictingProductTypeId
Unique identifier of the Product Type containing the conflicting name.
- Specified by:
getConflictingProductTypeId
in interfaceAttributeDefinitionTypeConflictError
- Returns:
- conflictingProductTypeId
-
getConflictingProductTypeName
Name of the Product Type containing the conflicting name.
- Specified by:
getConflictingProductTypeName
in interfaceAttributeDefinitionTypeConflictError
- Returns:
- conflictingProductTypeName
-
getConflictingAttributeName
Name of the conflicting Attribute.
- Specified by:
getConflictingAttributeName
in interfaceAttributeDefinitionTypeConflictError
- Returns:
- conflictingAttributeName
-
setMessage
Description copied from interface:AttributeDefinitionTypeConflictError
"The attribute with name $attributeName has a different type on product type $productTypeName."
- Specified by:
setMessage
in interfaceAttributeDefinitionTypeConflictError
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
setValue
Description copied from interface:ErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceErrorObject
- Parameters:
key
- property namevalue
- property value
-
setConflictingProductTypeId
Description copied from interface:AttributeDefinitionTypeConflictError
Unique identifier of the Product Type containing the conflicting name.
- Specified by:
setConflictingProductTypeId
in interfaceAttributeDefinitionTypeConflictError
- Parameters:
conflictingProductTypeId
- value to be set
-
setConflictingProductTypeName
Description copied from interface:AttributeDefinitionTypeConflictError
Name of the Product Type containing the conflicting name.
- Specified by:
setConflictingProductTypeName
in interfaceAttributeDefinitionTypeConflictError
- Parameters:
conflictingProductTypeName
- value to be set
-
setConflictingAttributeName
Description copied from interface:AttributeDefinitionTypeConflictError
Name of the conflicting Attribute.
- Specified by:
setConflictingAttributeName
in interfaceAttributeDefinitionTypeConflictError
- Parameters:
conflictingAttributeName
- value to be set
-
equals
-
hashCode
-