Interface CartSetLocaleAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
CartSetLocaleAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetLocaleAction cartSetLocaleAction = CartSetLocaleAction.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CartSetLocaleActionBuilder
builder()
builder factory method for CartSetLocaleActionstatic CartSetLocaleActionBuilder
builder
(CartSetLocaleAction template) create builder for CartSetLocaleAction instancestatic CartSetLocaleAction
deepCopy
(CartSetLocaleAction template) factory method to create a deep copy of CartSetLocaleActionValue to set.static CartSetLocaleAction
of()
factory methodstatic CartSetLocaleAction
of
(CartSetLocaleAction template) factory method to create a shallow copy CartSetLocaleActionvoid
Value to set.static com.fasterxml.jackson.core.type.TypeReference<CartSetLocaleAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCartSetLocaleAction
(Function<CartSetLocaleAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_LOCALE
discriminator value for CartSetLocaleAction- See Also:
-
-
Method Details
-
getLocale
String getLocale()Value to set. Must be one of the Project's
languages
. If empty, any existing value will be removed.- Returns:
- locale
-
setLocale
Value to set. Must be one of the Project's
languages
. If empty, any existing value will be removed.- Parameters:
locale
- value to be set
-
of
factory method- Returns:
- instance of CartSetLocaleAction
-
of
factory method to create a shallow copy CartSetLocaleAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CartSetLocaleAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetLocaleAction- Returns:
- builder
-
builder
create builder for CartSetLocaleAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetLocaleAction
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
-