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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyCartSetLocaleAction -
Method Summary
Modifier and TypeMethodDescriptionstatic MyCartSetLocaleActionBuilder
builder()
builder factory method for MyCartSetLocaleActionstatic MyCartSetLocaleActionBuilder
builder
(MyCartSetLocaleAction template) create builder for MyCartSetLocaleAction instancestatic MyCartSetLocaleAction
deepCopy
(MyCartSetLocaleAction template) factory method to create a deep copy of MyCartSetLocaleActionValue to set.static MyCartSetLocaleAction
of()
factory methodstatic MyCartSetLocaleAction
of
(MyCartSetLocaleAction template) factory method to create a shallow copy MyCartSetLocaleActionvoid
Value to set.static com.fasterxml.jackson.core.type.TypeReference<MyCartSetLocaleAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
getAction, withMyCartUpdateAction
Methods 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
-
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
-