Interface LanguageUsedInStoresError
- All Superinterfaces:
ErrorObject
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
LanguageUsedInStoresError languageUsedInStoresError = LanguageUsedInStoresError.builder()
.message("{message}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for LanguageUsedInStoresError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for LanguageUsedInStoresErrorbuilder
(LanguageUsedInStoresError template) create builder for LanguageUsedInStoresError instancestatic LanguageUsedInStoresError
deepCopy
(LanguageUsedInStoresError template) factory method to create a deep copy of LanguageUsedInStoresError@NotNull String
getCode()
Error identifier.@NotNull String
"Language(s) in use by a store cannot be deleted.
static LanguageUsedInStoresError
of()
factory methodstatic LanguageUsedInStoresError
of
(LanguageUsedInStoresError template) factory method to create a shallow copy LanguageUsedInStoresErrorvoid
setMessage
(String message) "Language(s) in use by a store cannot be deleted.
static com.fasterxml.jackson.core.type.TypeReference<LanguageUsedInStoresError>
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
-
LANGUAGE_USED_IN_STORES
discriminator value for LanguageUsedInStoresError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
"Language(s) in use by a store cannot be deleted. Remove them in all the stores of this project first."
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
setMessage
"Language(s) in use by a store cannot be deleted. Remove them in all the stores of this project first."
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
of
factory method- Returns:
- instance of LanguageUsedInStoresError
-
of
factory method to create a shallow copy LanguageUsedInStoresError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of LanguageUsedInStoresError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for LanguageUsedInStoresError- Returns:
- builder
-
builder
create builder for LanguageUsedInStoresError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withLanguageUsedInStoresError
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
-