Interface ShoppingListSetDescriptionAction
- All Superinterfaces:
ResourceUpdateAction<ShoppingListUpdateAction>,ShoppingListUpdateAction
ShoppingListSetDescriptionAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListSetDescriptionAction shoppingListSetDescriptionAction = ShoppingListSetDescriptionAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShoppingListSetDescriptionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShoppingListSetDescriptionActionbuilder(ShoppingListSetDescriptionAction template) create builder for ShoppingListSetDescriptionAction instancecopyDeep()deepCopy(ShoppingListSetDescriptionAction template) factory method to create a deep copy of ShoppingListSetDescriptionAction@Valid LocalizedStringValue to set.of()factory methodof(ShoppingListSetDescriptionAction template) factory method to create a shallow copy ShoppingListSetDescriptionActionvoidsetDescription(LocalizedString description) Value to set.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListSetDescriptionAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.shopping_list.ShoppingListUpdateAction
getAction, withShoppingListUpdateAction
-
Field Details
-
SET_DESCRIPTION
discriminator value for ShoppingListSetDescriptionAction- 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 ShoppingListSetDescriptionAction
-
of
factory method to create a shallow copy ShoppingListSetDescriptionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShoppingListSetDescriptionAction copyDeep()- Specified by:
copyDeepin interfaceShoppingListUpdateAction
-
deepCopy
@Nullable static ShoppingListSetDescriptionAction deepCopy(@Nullable ShoppingListSetDescriptionAction template) factory method to create a deep copy of ShoppingListSetDescriptionAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListSetDescriptionAction- Returns:
- builder
-
builder
create builder for ShoppingListSetDescriptionAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListSetDescriptionAction
default <T> T withShoppingListSetDescriptionAction(Function<ShoppingListSetDescriptionAction, 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<ShoppingListSetDescriptionAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-