Package com.commercetools.api.models.me
Interface MyCartSetLocaleAction
- All Superinterfaces:
MyCartUpdateAction,ResourceUpdateAction<MyCartUpdateAction>
MyCartSetLocaleAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCartSetLocaleAction myCartSetLocaleAction = MyCartSetLocaleAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyCartSetLocaleAction -
Method Summary
Modifier and TypeMethodDescriptionstatic MyCartSetLocaleActionBuilderbuilder()builder factory method for MyCartSetLocaleActionstatic MyCartSetLocaleActionBuilderbuilder(MyCartSetLocaleAction template) create builder for MyCartSetLocaleAction instancecopyDeep()static MyCartSetLocaleActiondeepCopy(MyCartSetLocaleAction template) factory method to create a deep copy of MyCartSetLocaleActionValue to set.static MyCartSetLocaleActionof()factory methodstatic MyCartSetLocaleActionof(MyCartSetLocaleAction template) factory method to create a shallow copy MyCartSetLocaleActionvoidValue to set.static com.fasterxml.jackson.core.type.TypeReference<MyCartSetLocaleAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
getAction, withMyCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_LOCALE
discriminator value for MyCartSetLocaleAction- 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 MyCartSetLocaleAction
-
of
factory method to create a shallow copy MyCartSetLocaleAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyCartSetLocaleAction copyDeep()- Specified by:
copyDeepin interfaceMyCartUpdateAction
-
deepCopy
factory method to create a deep copy of MyCartSetLocaleAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCartSetLocaleAction- Returns:
- builder
-
builder
create builder for MyCartSetLocaleAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyCartSetLocaleAction
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
-