Interface GraphQLEnumKeyAlreadyExistsError
- All Superinterfaces:
GraphQLErrorObject
Returned when an AttributeEnumType or AttributeLocalizedEnumType contains a key that already exists.
Example to create an instance using the builder pattern
GraphQLEnumKeyAlreadyExistsError graphQLEnumKeyAlreadyExistsError = GraphQLEnumKeyAlreadyExistsError.builder()
.conflictingEnumKey("{conflictingEnumKey}")
.conflictingAttributeName("{conflictingAttributeName}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLEnumKeyAlreadyExistsError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLEnumKeyAlreadyExistsErrorbuilder(GraphQLEnumKeyAlreadyExistsError template) create builder for GraphQLEnumKeyAlreadyExistsError instancecopyDeep()deepCopy(GraphQLEnumKeyAlreadyExistsError template) factory method to create a deep copy of GraphQLEnumKeyAlreadyExistsError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.@NotNull StringName of the conflicting Attribute.@NotNull StringConflicting enum key.of()factory methodof(GraphQLEnumKeyAlreadyExistsError template) factory method to create a shallow copy GraphQLEnumKeyAlreadyExistsErrorvoidsetConflictingAttributeName(String conflictingAttributeName) Name of the conflicting Attribute.voidsetConflictingEnumKey(String conflictingEnumKey) Conflicting enum key.static com.fasterxml.jackson.core.type.TypeReference<GraphQLEnumKeyAlreadyExistsError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
ENUM_KEY_ALREADY_EXISTS
discriminator value for GraphQLEnumKeyAlreadyExistsError- 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
-
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 GraphQLEnumKeyAlreadyExistsError
-
of
factory method to create a shallow copy GraphQLEnumKeyAlreadyExistsError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
GraphQLEnumKeyAlreadyExistsError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
deepCopy
@Nullable static GraphQLEnumKeyAlreadyExistsError deepCopy(@Nullable GraphQLEnumKeyAlreadyExistsError template) factory method to create a deep copy of GraphQLEnumKeyAlreadyExistsError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLEnumKeyAlreadyExistsError- Returns:
- builder
-
builder
create builder for GraphQLEnumKeyAlreadyExistsError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLEnumKeyAlreadyExistsError
default <T> T withGraphQLEnumKeyAlreadyExistsError(Function<GraphQLEnumKeyAlreadyExistsError, 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<GraphQLEnumKeyAlreadyExistsError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-