Interface GraphQLProjectNotConfiguredForLanguagesError
- All Superinterfaces:
GraphQLErrorObject
Returned when the languages set for a Store are not supported by the Project.
The error is returned as a failed response to the Set Languages update action.
Example to create an instance using the builder pattern
GraphQLProjectNotConfiguredForLanguagesError graphQLProjectNotConfiguredForLanguagesError = GraphQLProjectNotConfiguredForLanguagesError.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for GraphQLProjectNotConfiguredForLanguagesError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for GraphQLProjectNotConfiguredForLanguagesErrorcreate builder for GraphQLProjectNotConfiguredForLanguagesError instancefactory method to create a deep copy of GraphQLProjectNotConfiguredForLanguagesError@NotNull String
getCode()
One of the error codes that is listed on the Errors page.Languages configured for the Store.of()
factory methodfactory method to create a shallow copy GraphQLProjectNotConfiguredForLanguagesErrorvoid
setLanguages
(String... languages) Languages configured for the Store.void
setLanguages
(List<String> languages) Languages configured for the Store.static com.fasterxml.jackson.core.type.TypeReference<GraphQLProjectNotConfiguredForLanguagesError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withGraphQLProjectNotConfiguredForLanguagesError
(Function<GraphQLProjectNotConfiguredForLanguagesError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
PROJECT_NOT_CONFIGURED_FOR_LANGUAGES
discriminator value for GraphQLProjectNotConfiguredForLanguagesError- 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
-
getLanguages
Languages configured for the Store.
- Returns:
- languages
-
setLanguages
Languages configured for the Store.
- Parameters:
languages
- values to be set
-
setLanguages
Languages configured for the Store.
- Parameters:
languages
- values to be set
-
of
factory method- Returns:
- instance of GraphQLProjectNotConfiguredForLanguagesError
-
of
static GraphQLProjectNotConfiguredForLanguagesError of(GraphQLProjectNotConfiguredForLanguagesError template) factory method to create a shallow copy GraphQLProjectNotConfiguredForLanguagesError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static GraphQLProjectNotConfiguredForLanguagesError deepCopy(@Nullable GraphQLProjectNotConfiguredForLanguagesError template) factory method to create a deep copy of GraphQLProjectNotConfiguredForLanguagesError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLProjectNotConfiguredForLanguagesError- Returns:
- builder
-
builder
static GraphQLProjectNotConfiguredForLanguagesErrorBuilder builder(GraphQLProjectNotConfiguredForLanguagesError template) create builder for GraphQLProjectNotConfiguredForLanguagesError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLProjectNotConfiguredForLanguagesError
default <T> T withGraphQLProjectNotConfiguredForLanguagesError(Function<GraphQLProjectNotConfiguredForLanguagesError, 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<GraphQLProjectNotConfiguredForLanguagesError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-