Interface MyShoppingListRemoveLineItemAction
- All Superinterfaces:
MyShoppingListUpdateAction,ResourceUpdateAction<MyShoppingListUpdateAction>
Example to create an instance using the builder pattern
MyShoppingListRemoveLineItemAction myShoppingListRemoveLineItemAction = MyShoppingListRemoveLineItemAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyShoppingListRemoveLineItemAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyShoppingListRemoveLineItemActionbuilder(MyShoppingListRemoveLineItemAction template) create builder for MyShoppingListRemoveLineItemAction instancecopyDeep()deepCopy(MyShoppingListRemoveLineItemAction template) factory method to create a deep copy of MyShoppingListRemoveLineItemActionTheidof the ShoppingListLineItem to update.Thekeyof the ShoppingListLineItem to update.Amount to remove from thequantityof the ShoppingListLineItem.of()factory methodof(MyShoppingListRemoveLineItemAction template) factory method to create a shallow copy MyShoppingListRemoveLineItemActionvoidsetLineItemId(String lineItemId) Theidof the ShoppingListLineItem to update.voidsetLineItemKey(String lineItemKey) Thekeyof the ShoppingListLineItem to update.voidsetQuantity(Long quantity) Amount to remove from thequantityof the ShoppingListLineItem.static com.fasterxml.jackson.core.type.TypeReference<MyShoppingListRemoveLineItemAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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_LINE_ITEM
discriminator value for MyShoppingListRemoveLineItemAction- See Also:
-
-
Method Details
-
getLineItemId
String getLineItemId()The
idof the ShoppingListLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()The
keyof the ShoppingListLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemKey
-
getQuantity
Long getQuantity()Amount to remove from the
quantityof the ShoppingListLineItem. If not set, the ShoppingListLineItem is removed from the ShoppingList. If this value matches or exceeds the currentquantityof the ShoppingListLineItem, the ShoppingListLineItem is removed from the ShoppingList.- Returns:
- quantity
-
setLineItemId
The
idof the ShoppingListLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemId- value to be set
-
setLineItemKey
The
keyof the ShoppingListLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemKey- value to be set
-
setQuantity
Amount to remove from the
quantityof the ShoppingListLineItem. If not set, the ShoppingListLineItem is removed from the ShoppingList. If this value matches or exceeds the currentquantityof the ShoppingListLineItem, the ShoppingListLineItem is removed from the ShoppingList.- Parameters:
quantity- value to be set
-
of
factory method- Returns:
- instance of MyShoppingListRemoveLineItemAction
-
of
factory method to create a shallow copy MyShoppingListRemoveLineItemAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyShoppingListRemoveLineItemAction copyDeep()- Specified by:
copyDeepin interfaceMyShoppingListUpdateAction
-
deepCopy
@Nullable static MyShoppingListRemoveLineItemAction deepCopy(@Nullable MyShoppingListRemoveLineItemAction template) factory method to create a deep copy of MyShoppingListRemoveLineItemAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyShoppingListRemoveLineItemAction- Returns:
- builder
-
builder
static MyShoppingListRemoveLineItemActionBuilder builder(MyShoppingListRemoveLineItemAction template) create builder for MyShoppingListRemoveLineItemAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyShoppingListRemoveLineItemAction
default <T> T withMyShoppingListRemoveLineItemAction(Function<MyShoppingListRemoveLineItemAction, 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<MyShoppingListRemoveLineItemAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-