Interface GraphQLDuplicateEnumValuesError
- All Superinterfaces:
GraphQLErrorObject
Returned when an AttributeEnumType or AttributeLocalizedEnumType contains duplicate keys.
Example to create an instance using the builder pattern
GraphQLDuplicateEnumValuesError graphQLDuplicateEnumValuesError = GraphQLDuplicateEnumValuesError.builder()
.plusDuplicates(duplicatesBuilder -> duplicatesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLDuplicateEnumValuesError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLDuplicateEnumValuesErrorbuilder
(GraphQLDuplicateEnumValuesError template) create builder for GraphQLDuplicateEnumValuesError instancedeepCopy
(GraphQLDuplicateEnumValuesError template) factory method to create a deep copy of GraphQLDuplicateEnumValuesError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.Duplicate keys.of()
factory methodof
(GraphQLDuplicateEnumValuesError template) factory method to create a shallow copy GraphQLDuplicateEnumValuesErrorvoid
setDuplicates
(String... duplicates) Duplicate keys.void
setDuplicates
(List<String> duplicates) Duplicate keys.static com.fasterxml.jackson.core.type.TypeReference<GraphQLDuplicateEnumValuesError>
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_ENUM_VALUES
discriminator value for GraphQLDuplicateEnumValuesError- 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
-
getDuplicates
Duplicate keys.
- Returns:
- duplicates
-
setDuplicates
Duplicate keys.
- Parameters:
duplicates
- values to be set
-
setDuplicates
Duplicate keys.
- Parameters:
duplicates
- values to be set
-
of
factory method- Returns:
- instance of GraphQLDuplicateEnumValuesError
-
of
factory method to create a shallow copy GraphQLDuplicateEnumValuesError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLDuplicateEnumValuesError deepCopy(@Nullable GraphQLDuplicateEnumValuesError template) factory method to create a deep copy of GraphQLDuplicateEnumValuesError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLDuplicateEnumValuesError- Returns:
- builder
-
builder
create builder for GraphQLDuplicateEnumValuesError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLDuplicateEnumValuesError
default <T> T withGraphQLDuplicateEnumValuesError(Function<GraphQLDuplicateEnumValuesError, 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<GraphQLDuplicateEnumValuesError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-