Interface ProjectNotConfiguredForLanguagesError
- All Superinterfaces:
ErrorObject
- All Known Implementing Classes:
ProjectNotConfiguredForLanguagesErrorImpl
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
ProjectNotConfiguredForLanguagesError projectNotConfiguredForLanguagesError = ProjectNotConfiguredForLanguagesError.builder()
.message("{message}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProjectNotConfiguredForLanguagesError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProjectNotConfiguredForLanguagesErrorbuilder
(ProjectNotConfiguredForLanguagesError template) create builder for ProjectNotConfiguredForLanguagesError instancefactory method to create a deep copy of ProjectNotConfiguredForLanguagesError@NotNull String
getCode()
Error identifier.Languages configured for the Store.@NotNull String
"The project is not configured for given languages."
of()
factory methodof
(ProjectNotConfiguredForLanguagesError template) factory method to create a shallow copy ProjectNotConfiguredForLanguagesErrorvoid
setLanguages
(String... languages) Languages configured for the Store.void
setLanguages
(List<String> languages) Languages configured for the Store.void
setMessage
(String message) "The project is not configured for given languages."
static com.fasterxml.jackson.core.type.TypeReference<ProjectNotConfiguredForLanguagesError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
PROJECT_NOT_CONFIGURED_FOR_LANGUAGES
discriminator value for ProjectNotConfiguredForLanguagesError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"The project is not configured for given languages."
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
getLanguages
Languages configured for the Store.
- Returns:
- languages
-
setMessage
"The project is not configured for given languages."
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
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 ProjectNotConfiguredForLanguagesError
-
of
factory method to create a shallow copy ProjectNotConfiguredForLanguagesError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProjectNotConfiguredForLanguagesError deepCopy(@Nullable ProjectNotConfiguredForLanguagesError template) factory method to create a deep copy of ProjectNotConfiguredForLanguagesError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProjectNotConfiguredForLanguagesError- Returns:
- builder
-
builder
static ProjectNotConfiguredForLanguagesErrorBuilder builder(ProjectNotConfiguredForLanguagesError template) create builder for ProjectNotConfiguredForLanguagesError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProjectNotConfiguredForLanguagesError
default <T> T withProjectNotConfiguredForLanguagesError(Function<ProjectNotConfiguredForLanguagesError, 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<ProjectNotConfiguredForLanguagesError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-