Interface GraphQLEnumKeyDoesNotExistError
- All Superinterfaces:
GraphQLErrorObject
Returned when an AttributeEnumType or AttributeLocalizedEnumType already contains a value with the given key.
The error is returned as a failed response to the Change the key of an EnumValue update action.
Example to create an instance using the builder pattern
GraphQLEnumKeyDoesNotExistError graphQLEnumKeyDoesNotExistError = GraphQLEnumKeyDoesNotExistError.builder()
.conflictingEnumKey("{conflictingEnumKey}")
.conflictingAttributeName("{conflictingAttributeName}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLEnumKeyDoesNotExistError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLEnumKeyDoesNotExistErrorbuilder
(GraphQLEnumKeyDoesNotExistError template) create builder for GraphQLEnumKeyDoesNotExistError instancedeepCopy
(GraphQLEnumKeyDoesNotExistError template) factory method to create a deep copy of GraphQLEnumKeyDoesNotExistError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.@NotNull String
Name of the conflicting Attribute.@NotNull String
Conflicting enum key.of()
factory methodof
(GraphQLEnumKeyDoesNotExistError template) factory method to create a shallow copy GraphQLEnumKeyDoesNotExistErrorvoid
setConflictingAttributeName
(String conflictingAttributeName) Name of the conflicting Attribute.void
setConflictingEnumKey
(String conflictingEnumKey) Conflicting enum key.static com.fasterxml.jackson.core.type.TypeReference<GraphQLEnumKeyDoesNotExistError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
ENUM_KEY_DOES_NOT_EXIST
discriminator value for GraphQLEnumKeyDoesNotExistError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
One of the error codes that is listed on the Errors page.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getConflictingEnumKey
Conflicting enum key.
- Returns:
- conflictingEnumKey
-
getConflictingAttributeName
Name of the conflicting Attribute.
- Returns:
- conflictingAttributeName
-
setConflictingEnumKey
Conflicting enum key.
- Parameters:
conflictingEnumKey
- value to be set
-
setConflictingAttributeName
Name of the conflicting Attribute.
- Parameters:
conflictingAttributeName
- value to be set
-
of
factory method- Returns:
- instance of GraphQLEnumKeyDoesNotExistError
-
of
factory method to create a shallow copy GraphQLEnumKeyDoesNotExistError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLEnumKeyDoesNotExistError deepCopy(@Nullable GraphQLEnumKeyDoesNotExistError template) factory method to create a deep copy of GraphQLEnumKeyDoesNotExistError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLEnumKeyDoesNotExistError- Returns:
- builder
-
builder
create builder for GraphQLEnumKeyDoesNotExistError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLEnumKeyDoesNotExistError
default <T> T withGraphQLEnumKeyDoesNotExistError(Function<GraphQLEnumKeyDoesNotExistError, 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<GraphQLEnumKeyDoesNotExistError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-