Interface GraphQLDuplicateFieldError
- All Superinterfaces:
GraphQLErrorObject
Returned when a field value conflicts with an existing value causing a duplicate.
Example to create an instance using the builder pattern
GraphQLDuplicateFieldError graphQLDuplicateFieldError = GraphQLDuplicateFieldError.builder()
.field("{field}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLDuplicateFieldError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLDuplicateFieldErrorbuilder
(GraphQLDuplicateFieldError template) create builder for GraphQLDuplicateFieldError instancestatic GraphQLDuplicateFieldError
deepCopy
(GraphQLDuplicateFieldError template) factory method to create a deep copy of GraphQLDuplicateFieldError@NotNull String
getCode()
Error identifier.@NotNull Object
Conflicting duplicate value.@NotNull String
getField()
Name of the conflicting field.static GraphQLDuplicateFieldError
of()
factory methodstatic GraphQLDuplicateFieldError
of
(GraphQLDuplicateFieldError template) factory method to create a shallow copy GraphQLDuplicateFieldErrorvoid
setDuplicateValue
(Object duplicateValue) Conflicting duplicate value.void
Name of the conflicting field.static com.fasterxml.jackson.core.type.TypeReference<GraphQLDuplicateFieldError>
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
-
DUPLICATE_FIELD
discriminator value for GraphQLDuplicateFieldError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
getField
Name of the conflicting field.
- Returns:
- field
-
getDuplicateValue
Conflicting duplicate value.
- Returns:
- duplicateValue
-
setField
Name of the conflicting field.
- Parameters:
field
- value to be set
-
setDuplicateValue
Conflicting duplicate value.
- Parameters:
duplicateValue
- value to be set
-
of
factory method- Returns:
- instance of GraphQLDuplicateFieldError
-
of
factory method to create a shallow copy GraphQLDuplicateFieldError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of GraphQLDuplicateFieldError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLDuplicateFieldError- Returns:
- builder
-
builder
create builder for GraphQLDuplicateFieldError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLDuplicateFieldError
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-