Interface GraphQLEnumValuesMustMatchError
- All Superinterfaces:
GraphQLErrorObject
Returned when during an order update of AttributeEnumType or AttributeLocalizedEnumType the new enum values do not match the existing ones.
The error is returned as a failed response to the Change the order of EnumValues and Change the order of LocalizedEnumValues update actions.
Example to create an instance using the builder pattern
GraphQLEnumValuesMustMatchError graphQLEnumValuesMustMatchError = GraphQLEnumValuesMustMatchError.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLEnumValuesMustMatchError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLEnumValuesMustMatchErrorbuilder
(GraphQLEnumValuesMustMatchError template) create builder for GraphQLEnumValuesMustMatchError instancedeepCopy
(GraphQLEnumValuesMustMatchError template) factory method to create a deep copy of GraphQLEnumValuesMustMatchError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.of()
factory methodof
(GraphQLEnumValuesMustMatchError template) factory method to create a shallow copy GraphQLEnumValuesMustMatchErrorstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLEnumValuesMustMatchError>
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_VALUES_MUST_MATCH
discriminator value for GraphQLEnumValuesMustMatchError- 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
-
of
factory method- Returns:
- instance of GraphQLEnumValuesMustMatchError
-
of
factory method to create a shallow copy GraphQLEnumValuesMustMatchError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLEnumValuesMustMatchError deepCopy(@Nullable GraphQLEnumValuesMustMatchError template) factory method to create a deep copy of GraphQLEnumValuesMustMatchError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLEnumValuesMustMatchError- Returns:
- builder
-
builder
create builder for GraphQLEnumValuesMustMatchError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLEnumValuesMustMatchError
default <T> T withGraphQLEnumValuesMustMatchError(Function<GraphQLEnumValuesMustMatchError, 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<GraphQLEnumValuesMustMatchError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-