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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLDuplicateFieldError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLDuplicateFieldErrorbuilder(GraphQLDuplicateFieldError template) create builder for GraphQLDuplicateFieldError instancecopyDeep()static GraphQLDuplicateFieldErrordeepCopy(GraphQLDuplicateFieldError template) factory method to create a deep copy of GraphQLDuplicateFieldError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.@NotNull ObjectConflicting duplicate value.@NotNull StringgetField()Name of the conflicting field.static GraphQLDuplicateFieldErrorof()factory methodstatic GraphQLDuplicateFieldErrorof(GraphQLDuplicateFieldError template) factory method to create a shallow copy GraphQLDuplicateFieldErrorvoidsetDuplicateValue(Object duplicateValue) Conflicting duplicate value.voidName of the conflicting field.static com.fasterxml.jackson.core.type.TypeReference<GraphQLDuplicateFieldError>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
-
DUPLICATE_FIELD
discriminator value for GraphQLDuplicateFieldError- 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
-
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
-
copyDeep
GraphQLDuplicateFieldError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
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
-