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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CartSetLocaleActionBuilderbuilder()builder factory method for CartSetLocaleActionstatic CartSetLocaleActionBuilderbuilder(CartSetLocaleAction template) create builder for CartSetLocaleAction instancecopyDeep()static CartSetLocaleActiondeepCopy(CartSetLocaleAction template) factory method to create a deep copy of CartSetLocaleActionValue to set.static CartSetLocaleActionof()factory methodstatic CartSetLocaleActionof(CartSetLocaleAction template) factory method to create a shallow copy CartSetLocaleActionvoidValue to set.static com.fasterxml.jackson.core.type.TypeReference<CartSetLocaleAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCartSetLocaleAction(Function<CartSetLocaleAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods 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
-
copyDeep
CartSetLocaleAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
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
-