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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShoppingListSetTextLineItemDescriptionAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShoppingListSetTextLineItemDescriptionActioncreate builder for ShoppingListSetTextLineItemDescriptionAction instancecopyDeep()factory method to create a deep copy of ShoppingListSetTextLineItemDescriptionAction@Valid LocalizedStringValue to set.Theidof the TextLineItem to update.Thekeyof the TextLineItem to update.of()factory methodfactory method to create a shallow copy ShoppingListSetTextLineItemDescriptionActionvoidsetDescription(LocalizedString description) Value to set.voidsetTextLineItemId(String textLineItemId) Theidof the TextLineItem to update.voidsetTextLineItemKey(String textLineItemKey) Thekeyof the TextLineItem to update.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListSetTextLineItemDescriptionAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithShoppingListSetTextLineItemDescriptionAction(Function<ShoppingListSetTextLineItemDescriptionAction, T> helper) accessor 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_TEXT_LINE_ITEM_DESCRIPTION
discriminator value for ShoppingListSetTextLineItemDescriptionAction- See Also:
-
-
Method Details
-
getTextLineItemId
String getTextLineItemId()The
idof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- textLineItemId
-
getTextLineItemKey
String getTextLineItemKey()The
keyof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- textLineItemKey
-
getDescription
Value to set. If empty, any existing value will be removed.
- Returns:
- description
-
setTextLineItemId
The
idof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
textLineItemId- value to be set
-
setTextLineItemKey
The
keyof the TextLineItem to update. EitherlineItemIdorlineItemKeyis 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
-
copyDeep
ShoppingListSetTextLineItemDescriptionAction copyDeep()- Specified by:
copyDeepin interfaceShoppingListUpdateAction
-
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
-