Class GraphQLAttributeDefinitionAlreadyExistsErrorImpl
java.lang.Object
com.commercetools.api.models.error.GraphQLAttributeDefinitionAlreadyExistsErrorImpl
- All Implemented Interfaces:
GraphQLAttributeDefinitionAlreadyExistsError
,GraphQLErrorObject
,io.vrap.rmf.base.client.ModelBase
public class GraphQLAttributeDefinitionAlreadyExistsErrorImpl
extends Object
implements GraphQLAttributeDefinitionAlreadyExistsError, io.vrap.rmf.base.client.ModelBase
Returned when the name
of the AttributeDefinition conflicts with an existing Attribute.
The error is returned as a failed response to the Create ProductType request or Change AttributeDefinition Name update action.
-
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.GraphQLAttributeDefinitionAlreadyExistsError
ATTRIBUTE_DEFINITION_ALREADY_EXISTS
-
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.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
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.GraphQLAttributeDefinitionAlreadyExistsError
withGraphQLAttributeDefinitionAlreadyExistsError
Methods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
withGraphQLErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
GraphQLAttributeDefinitionAlreadyExistsErrorImpl
create empty instance
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLAttributeDefinitionAlreadyExistsError
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceGraphQLErrorObject
- Returns:
- map of the pattern property values
-
getConflictingProductTypeId
Unique identifier of the Product Type containing the conflicting name.
- Specified by:
getConflictingProductTypeId
in interfaceGraphQLAttributeDefinitionAlreadyExistsError
- Returns:
- conflictingProductTypeId
-
getConflictingProductTypeName
Name of the Product Type containing the conflicting name.
- Specified by:
getConflictingProductTypeName
in interfaceGraphQLAttributeDefinitionAlreadyExistsError
- Returns:
- conflictingProductTypeName
-
getConflictingAttributeName
Name of the conflicting Attribute.
- Specified by:
getConflictingAttributeName
in interfaceGraphQLAttributeDefinitionAlreadyExistsError
- Returns:
- conflictingAttributeName
-
setValue
Description copied from interface:GraphQLErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceGraphQLErrorObject
- Parameters:
key
- property namevalue
- property value
-
setConflictingProductTypeId
Description copied from interface:GraphQLAttributeDefinitionAlreadyExistsError
Unique identifier of the Product Type containing the conflicting name.
- Specified by:
setConflictingProductTypeId
in interfaceGraphQLAttributeDefinitionAlreadyExistsError
- Parameters:
conflictingProductTypeId
- value to be set
-
setConflictingProductTypeName
Description copied from interface:GraphQLAttributeDefinitionAlreadyExistsError
Name of the Product Type containing the conflicting name.
- Specified by:
setConflictingProductTypeName
in interfaceGraphQLAttributeDefinitionAlreadyExistsError
- Parameters:
conflictingProductTypeName
- value to be set
-
setConflictingAttributeName
Description copied from interface:GraphQLAttributeDefinitionAlreadyExistsError
Name of the conflicting Attribute.
- Specified by:
setConflictingAttributeName
in interfaceGraphQLAttributeDefinitionAlreadyExistsError
- Parameters:
conflictingAttributeName
- value to be set
-
equals
-
hashCode
-