Interface ProjectChangeLanguagesAction
- All Superinterfaces:
ProjectUpdateAction
,ResourceUpdateAction<ProjectUpdateAction>
Removing a language used by a Store returns a LanguageUsedInStores error.
Example to create an instance using the builder pattern
ProjectChangeLanguagesAction projectChangeLanguagesAction = ProjectChangeLanguagesAction.builder()
.plusLanguages(languagesBuilder -> languagesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ProjectChangeLanguagesAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ProjectChangeLanguagesActionbuilder
(ProjectChangeLanguagesAction template) create builder for ProjectChangeLanguagesAction instancestatic ProjectChangeLanguagesAction
deepCopy
(ProjectChangeLanguagesAction template) factory method to create a deep copy of ProjectChangeLanguagesActionNew value to set.static ProjectChangeLanguagesAction
of()
factory methodstatic ProjectChangeLanguagesAction
of
(ProjectChangeLanguagesAction template) factory method to create a shallow copy ProjectChangeLanguagesActionvoid
setLanguages
(String... languages) New value to set.void
setLanguages
(List<String> languages) New value to set.static com.fasterxml.jackson.core.type.TypeReference<ProjectChangeLanguagesAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.project.ProjectUpdateAction
getAction, withProjectUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_LANGUAGES
discriminator value for ProjectChangeLanguagesAction- See Also:
-
-
Method Details
-
getLanguages
New value to set. Must not be empty.
- Returns:
- languages
-
setLanguages
New value to set. Must not be empty.
- Parameters:
languages
- values to be set
-
setLanguages
New value to set. Must not be empty.
- Parameters:
languages
- values to be set
-
of
factory method- Returns:
- instance of ProjectChangeLanguagesAction
-
of
factory method to create a shallow copy ProjectChangeLanguagesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ProjectChangeLanguagesAction deepCopy(@Nullable ProjectChangeLanguagesAction template) factory method to create a deep copy of ProjectChangeLanguagesAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ProjectChangeLanguagesAction- Returns:
- builder
-
builder
create builder for ProjectChangeLanguagesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withProjectChangeLanguagesAction
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
-