Interface ShoppingListSetTextLineItemDescriptionAction
- All Superinterfaces:
ResourceUpdateAction<ShoppingListUpdateAction>
,ShoppingListUpdateAction
ShoppingListSetTextLineItemDescriptionAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShoppingListSetTextLineItemDescriptionAction shoppingListSetTextLineItemDescriptionAction = ShoppingListSetTextLineItemDescriptionAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ShoppingListSetTextLineItemDescriptionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ShoppingListSetTextLineItemDescriptionActioncreate builder for ShoppingListSetTextLineItemDescriptionAction instancefactory method to create a deep copy of ShoppingListSetTextLineItemDescriptionAction@Valid LocalizedString
Value to set.Theid
of the TextLineItem to update.Thekey
of the TextLineItem to update.of()
factory methodfactory method to create a shallow copy ShoppingListSetTextLineItemDescriptionActionvoid
setDescription
(LocalizedString description) Value to set.void
setTextLineItemId
(String textLineItemId) Theid
of the TextLineItem to update.void
setTextLineItemKey
(String textLineItemKey) Thekey
of the TextLineItem to update.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListSetTextLineItemDescriptionAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withShoppingListSetTextLineItemDescriptionAction
(Function<ShoppingListSetTextLineItemDescriptionAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.shopping_list.ShoppingListUpdateAction
getAction, withShoppingListUpdateAction
-
Field Details
-
SET_TEXT_LINE_ITEM_DESCRIPTION
discriminator value for ShoppingListSetTextLineItemDescriptionAction- See Also:
-
-
Method Details
-
getTextLineItemId
String getTextLineItemId()The
id
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- textLineItemId
-
getTextLineItemKey
String getTextLineItemKey()The
key
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- textLineItemKey
-
getDescription
Value to set. If empty, any existing value will be removed.
- Returns:
- description
-
setTextLineItemId
The
id
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
textLineItemId
- value to be set
-
setTextLineItemKey
The
key
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
textLineItemKey
- value to be set
-
setDescription
Value to set. If empty, any existing value will be removed.
- Parameters:
description
- value to be set
-
of
factory method- Returns:
- instance of ShoppingListSetTextLineItemDescriptionAction
-
of
static ShoppingListSetTextLineItemDescriptionAction of(ShoppingListSetTextLineItemDescriptionAction template) factory method to create a shallow copy ShoppingListSetTextLineItemDescriptionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ShoppingListSetTextLineItemDescriptionAction deepCopy(@Nullable ShoppingListSetTextLineItemDescriptionAction template) factory method to create a deep copy of ShoppingListSetTextLineItemDescriptionAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListSetTextLineItemDescriptionAction- Returns:
- builder
-
builder
static ShoppingListSetTextLineItemDescriptionActionBuilder builder(ShoppingListSetTextLineItemDescriptionAction template) create builder for ShoppingListSetTextLineItemDescriptionAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListSetTextLineItemDescriptionAction
default <T> T withShoppingListSetTextLineItemDescriptionAction(Function<ShoppingListSetTextLineItemDescriptionAction, 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<ShoppingListSetTextLineItemDescriptionAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-