Interface GraphQLEnumValueIsUsedError
- All Superinterfaces:
GraphQLErrorObject
Returned when an enum value cannot be removed from an Attribute as it is being used by a Product.
The error is returned as a failed response to the Remove EnumValues from AttributeDefinition update action.
Example to create an instance using the builder pattern
GraphQLEnumValueIsUsedError graphQLEnumValueIsUsedError = GraphQLEnumValueIsUsedError.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLEnumValueIsUsedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLEnumValueIsUsedErrorbuilder
(GraphQLEnumValueIsUsedError template) create builder for GraphQLEnumValueIsUsedError instancestatic GraphQLEnumValueIsUsedError
deepCopy
(GraphQLEnumValueIsUsedError template) factory method to create a deep copy of GraphQLEnumValueIsUsedError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.static GraphQLEnumValueIsUsedError
of()
factory methodstatic GraphQLEnumValueIsUsedError
of
(GraphQLEnumValueIsUsedError template) factory method to create a shallow copy GraphQLEnumValueIsUsedErrorstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLEnumValueIsUsedError>
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_VALUE_IS_USED
discriminator value for GraphQLEnumValueIsUsedError- 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 GraphQLEnumValueIsUsedError
-
of
factory method to create a shallow copy GraphQLEnumValueIsUsedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLEnumValueIsUsedError deepCopy(@Nullable GraphQLEnumValueIsUsedError template) factory method to create a deep copy of GraphQLEnumValueIsUsedError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLEnumValueIsUsedError- Returns:
- builder
-
builder
create builder for GraphQLEnumValueIsUsedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLEnumValueIsUsedError
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
-