Interface MyShoppingListRemoveTextLineItemAction
- All Superinterfaces:
MyShoppingListUpdateAction,ResourceUpdateAction<MyShoppingListUpdateAction>
Example to create an instance using the builder pattern
MyShoppingListRemoveTextLineItemAction myShoppingListRemoveTextLineItemAction = MyShoppingListRemoveTextLineItemAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyShoppingListRemoveTextLineItemAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyShoppingListRemoveTextLineItemActioncreate builder for MyShoppingListRemoveTextLineItemAction instancecopyDeep()factory method to create a deep copy of MyShoppingListRemoveTextLineItemActionAmount to remove from thequantityof the TextLineItem.Theidof the TextLineItem to update.Thekeyof the TextLineItem to update.of()factory methodof(MyShoppingListRemoveTextLineItemAction template) factory method to create a shallow copy MyShoppingListRemoveTextLineItemActionvoidsetQuantity(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<MyShoppingListRemoveTextLineItemAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyShoppingListRemoveTextLineItemAction(Function<MyShoppingListRemoveTextLineItemAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyShoppingListUpdateAction
getAction, withMyShoppingListUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_TEXT_LINE_ITEM
discriminator value for MyShoppingListRemoveTextLineItemAction- 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 MyShoppingListRemoveTextLineItemAction
-
of
factory method to create a shallow copy MyShoppingListRemoveTextLineItemAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyShoppingListRemoveTextLineItemAction copyDeep()- Specified by:
copyDeepin interfaceMyShoppingListUpdateAction
-
deepCopy
@Nullable static MyShoppingListRemoveTextLineItemAction deepCopy(@Nullable MyShoppingListRemoveTextLineItemAction template) factory method to create a deep copy of MyShoppingListRemoveTextLineItemAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyShoppingListRemoveTextLineItemAction- Returns:
- builder
-
builder
static MyShoppingListRemoveTextLineItemActionBuilder builder(MyShoppingListRemoveTextLineItemAction template) create builder for MyShoppingListRemoveTextLineItemAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyShoppingListRemoveTextLineItemAction
default <T> T withMyShoppingListRemoveTextLineItemAction(Function<MyShoppingListRemoveTextLineItemAction, 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<MyShoppingListRemoveTextLineItemAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-