Interface GraphQLAttributeDefinitionAlreadyExistsError
- All Superinterfaces:
GraphQLErrorObject
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.
Example to create an instance using the builder pattern
GraphQLAttributeDefinitionAlreadyExistsError graphQLAttributeDefinitionAlreadyExistsError = GraphQLAttributeDefinitionAlreadyExistsError.builder()
.conflictingProductTypeId("{conflictingProductTypeId}")
.conflictingProductTypeName("{conflictingProductTypeName}")
.conflictingAttributeName("{conflictingAttributeName}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLAttributeDefinitionAlreadyExistsError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLAttributeDefinitionAlreadyExistsErrorcreate builder for GraphQLAttributeDefinitionAlreadyExistsError instancecopyDeep()factory method to create a deep copy of GraphQLAttributeDefinitionAlreadyExistsError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.@NotNull StringName of the conflicting Attribute.@NotNull StringUnique identifier of the Product Type containing the conflicting name.@NotNull StringName of the Product Type containing the conflicting name.of()factory methodfactory method to create a shallow copy GraphQLAttributeDefinitionAlreadyExistsErrorvoidsetConflictingAttributeName(String conflictingAttributeName) Name of the conflicting Attribute.voidsetConflictingProductTypeId(String conflictingProductTypeId) Unique identifier of the Product Type containing the conflicting name.voidsetConflictingProductTypeName(String conflictingProductTypeName) Name of the Product Type containing the conflicting name.static com.fasterxml.jackson.core.type.TypeReference<GraphQLAttributeDefinitionAlreadyExistsError>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithGraphQLAttributeDefinitionAlreadyExistsError(Function<GraphQLAttributeDefinitionAlreadyExistsError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
ATTRIBUTE_DEFINITION_ALREADY_EXISTS
discriminator value for GraphQLAttributeDefinitionAlreadyExistsError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObjectOne of the error codes that is listed on the Errors page.
- Specified by:
getCodein interfaceGraphQLErrorObject- Returns:
- code
-
getConflictingProductTypeId
Unique identifier of the Product Type containing the conflicting name.
- Returns:
- conflictingProductTypeId
-
getConflictingProductTypeName
Name of the Product Type containing the conflicting name.
- Returns:
- conflictingProductTypeName
-
getConflictingAttributeName
Name of the conflicting Attribute.
- Returns:
- conflictingAttributeName
-
setConflictingProductTypeId
Unique identifier of the Product Type containing the conflicting name.
- Parameters:
conflictingProductTypeId- value to be set
-
setConflictingProductTypeName
Name of the Product Type containing the conflicting name.
- Parameters:
conflictingProductTypeName- value to be set
-
setConflictingAttributeName
Name of the conflicting Attribute.
- Parameters:
conflictingAttributeName- value to be set
-
of
factory method- Returns:
- instance of GraphQLAttributeDefinitionAlreadyExistsError
-
of
static GraphQLAttributeDefinitionAlreadyExistsError of(GraphQLAttributeDefinitionAlreadyExistsError template) factory method to create a shallow copy GraphQLAttributeDefinitionAlreadyExistsError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
GraphQLAttributeDefinitionAlreadyExistsError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
deepCopy
@Nullable static GraphQLAttributeDefinitionAlreadyExistsError deepCopy(@Nullable GraphQLAttributeDefinitionAlreadyExistsError template) factory method to create a deep copy of GraphQLAttributeDefinitionAlreadyExistsError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLAttributeDefinitionAlreadyExistsError- Returns:
- builder
-
builder
static GraphQLAttributeDefinitionAlreadyExistsErrorBuilder builder(GraphQLAttributeDefinitionAlreadyExistsError template) create builder for GraphQLAttributeDefinitionAlreadyExistsError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLAttributeDefinitionAlreadyExistsError
default <T> T withGraphQLAttributeDefinitionAlreadyExistsError(Function<GraphQLAttributeDefinitionAlreadyExistsError, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<GraphQLAttributeDefinitionAlreadyExistsError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-