Package com.commercetools.api.models.me
Interface MyShoppingListSetDescriptionAction
- All Superinterfaces:
MyShoppingListUpdateAction
,ResourceUpdateAction<MyShoppingListUpdateAction>
MyShoppingListSetDescriptionAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyShoppingListSetDescriptionAction myShoppingListSetDescriptionAction = MyShoppingListSetDescriptionAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyShoppingListSetDescriptionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyShoppingListSetDescriptionActionbuilder
(MyShoppingListSetDescriptionAction template) create builder for MyShoppingListSetDescriptionAction instancedeepCopy
(MyShoppingListSetDescriptionAction template) factory method to create a deep copy of MyShoppingListSetDescriptionAction@Valid LocalizedString
Value to set.of()
factory methodof
(MyShoppingListSetDescriptionAction template) factory method to create a shallow copy MyShoppingListSetDescriptionActionvoid
setDescription
(LocalizedString description) Value to set.static com.fasterxml.jackson.core.type.TypeReference<MyShoppingListSetDescriptionAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyShoppingListUpdateAction
getAction, withMyShoppingListUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_DESCRIPTION
discriminator value for MyShoppingListSetDescriptionAction- See Also:
-
-
Method Details
-
getDescription
Value to set. If empty, any existing value will be removed.
- Returns:
- description
-
setDescription
Value to set. If empty, any existing value will be removed.
- Parameters:
description
- value to be set
-
of
factory method- Returns:
- instance of MyShoppingListSetDescriptionAction
-
of
factory method to create a shallow copy MyShoppingListSetDescriptionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyShoppingListSetDescriptionAction deepCopy(@Nullable MyShoppingListSetDescriptionAction template) factory method to create a deep copy of MyShoppingListSetDescriptionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyShoppingListSetDescriptionAction- Returns:
- builder
-
builder
static MyShoppingListSetDescriptionActionBuilder builder(MyShoppingListSetDescriptionAction template) create builder for MyShoppingListSetDescriptionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyShoppingListSetDescriptionAction
default <T> T withMyShoppingListSetDescriptionAction(Function<MyShoppingListSetDescriptionAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<MyShoppingListSetDescriptionAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-