Interface StoreSetLanguagesAction
- All Superinterfaces:
ResourceUpdateAction<StoreUpdateAction>
,StoreUpdateAction
This update action produces the StoreLanguagesChanged Message. Adding a language other than the ones defined in the Project returns a ProjectNotConfiguredForLanguages error.
Example to create an instance using the builder pattern
StoreSetLanguagesAction storeSetLanguagesAction = StoreSetLanguagesAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for StoreSetLanguagesAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StoreSetLanguagesActionbuilder
(StoreSetLanguagesAction template) create builder for StoreSetLanguagesAction instancestatic StoreSetLanguagesAction
deepCopy
(StoreSetLanguagesAction template) factory method to create a deep copy of StoreSetLanguagesActionValue to set.static StoreSetLanguagesAction
of()
factory methodstatic StoreSetLanguagesAction
of
(StoreSetLanguagesAction template) factory method to create a shallow copy StoreSetLanguagesActionvoid
setLanguages
(String... languages) Value to set.void
setLanguages
(List<String> languages) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StoreSetLanguagesAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.store.StoreUpdateAction
getAction, withStoreUpdateAction
-
Field Details
-
SET_LANGUAGES
discriminator value for StoreSetLanguagesAction- See Also:
-
-
Method Details
-
getLanguages
Value to set.
- Returns:
- languages
-
setLanguages
Value to set.
- Parameters:
languages
- values to be set
-
setLanguages
Value to set.
- Parameters:
languages
- values to be set
-
of
factory method- Returns:
- instance of StoreSetLanguagesAction
-
of
factory method to create a shallow copy StoreSetLanguagesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of StoreSetLanguagesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StoreSetLanguagesAction- Returns:
- builder
-
builder
create builder for StoreSetLanguagesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStoreSetLanguagesAction
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
-