Interface ShoppingListRemoveTextLineItemAction
- All Superinterfaces:
ResourceUpdateAction<ShoppingListUpdateAction>,ShoppingListUpdateAction
Example to create an instance using the builder pattern
ShoppingListRemoveTextLineItemAction shoppingListRemoveTextLineItemAction = ShoppingListRemoveTextLineItemAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ShoppingListRemoveTextLineItemAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ShoppingListRemoveTextLineItemActionbuilder(ShoppingListRemoveTextLineItemAction template) create builder for ShoppingListRemoveTextLineItemAction instancecopyDeep()deepCopy(ShoppingListRemoveTextLineItemAction template) factory method to create a deep copy of ShoppingListRemoveTextLineItemActionAmount to remove from thequantityof the TextLineItem.Theidof the TextLineItem to update.Thekeyof the TextLineItem to update.of()factory methodof(ShoppingListRemoveTextLineItemAction template) factory method to create a shallow copy ShoppingListRemoveTextLineItemActionvoidsetQuantity(Long quantity) Amount to remove from thequantityof the TextLineItem.voidsetTextLineItemId(String textLineItemId) Theidof the TextLineItem to update.voidsetTextLineItemKey(String textLineItemKey) Thekeyof the TextLineItem to update.static com.fasterxml.jackson.core.type.TypeReference<ShoppingListRemoveTextLineItemAction>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
-
REMOVE_TEXT_LINE_ITEM
discriminator value for ShoppingListRemoveTextLineItemAction- 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
-
getQuantity
Long getQuantity()Amount to remove from the
quantityof the TextLineItem. If not set, the TextLineItem is removed from the ShoppingList. If this value matches or exceeds the currentquantityof the TextLineItem, the TextLineItem is removed from the ShoppingList.- Returns:
- quantity
-
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
-
setQuantity
Amount to remove from the
quantityof the TextLineItem. If not set, the TextLineItem is removed from the ShoppingList. If this value matches or exceeds the currentquantityof the TextLineItem, the TextLineItem is removed from the ShoppingList.- Parameters:
quantity- value to be set
-
of
factory method- Returns:
- instance of ShoppingListRemoveTextLineItemAction
-
of
factory method to create a shallow copy ShoppingListRemoveTextLineItemAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ShoppingListRemoveTextLineItemAction copyDeep()- Specified by:
copyDeepin interfaceShoppingListUpdateAction
-
deepCopy
@Nullable static ShoppingListRemoveTextLineItemAction deepCopy(@Nullable ShoppingListRemoveTextLineItemAction template) factory method to create a deep copy of ShoppingListRemoveTextLineItemAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ShoppingListRemoveTextLineItemAction- Returns:
- builder
-
builder
static ShoppingListRemoveTextLineItemActionBuilder builder(ShoppingListRemoveTextLineItemAction template) create builder for ShoppingListRemoveTextLineItemAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withShoppingListRemoveTextLineItemAction
default <T> T withShoppingListRemoveTextLineItemAction(Function<ShoppingListRemoveTextLineItemAction, 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<ShoppingListRemoveTextLineItemAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-