Interface GraphQLLanguageUsedInStoresError
- All Superinterfaces:
GraphQLErrorObject
Returned when a language cannot be removed from a Project as it is being used by a Store.
The error is returned as a failed response to the Change Languages update action.
Example to create an instance using the builder pattern
GraphQLLanguageUsedInStoresError graphQLLanguageUsedInStoresError = GraphQLLanguageUsedInStoresError.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLLanguageUsedInStoresError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLLanguageUsedInStoresErrorbuilder
(GraphQLLanguageUsedInStoresError template) create builder for GraphQLLanguageUsedInStoresError instancedeepCopy
(GraphQLLanguageUsedInStoresError template) factory method to create a deep copy of GraphQLLanguageUsedInStoresError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.of()
factory methodof
(GraphQLLanguageUsedInStoresError template) factory method to create a shallow copy GraphQLLanguageUsedInStoresErrorstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLLanguageUsedInStoresError>
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
-
LANGUAGE_USED_IN_STORES
discriminator value for GraphQLLanguageUsedInStoresError- 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 GraphQLLanguageUsedInStoresError
-
of
factory method to create a shallow copy GraphQLLanguageUsedInStoresError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLLanguageUsedInStoresError deepCopy(@Nullable GraphQLLanguageUsedInStoresError template) factory method to create a deep copy of GraphQLLanguageUsedInStoresError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLLanguageUsedInStoresError- Returns:
- builder
-
builder
create builder for GraphQLLanguageUsedInStoresError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLLanguageUsedInStoresError
default <T> T withGraphQLLanguageUsedInStoresError(Function<GraphQLLanguageUsedInStoresError, 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<GraphQLLanguageUsedInStoresError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-