Interface MyShoppingListRemoveTextLineItemAction

All Superinterfaces:
MyShoppingListUpdateAction, ResourceUpdateAction<MyShoppingListUpdateAction>
All Known Implementing Classes:
MyShoppingListRemoveTextLineItemActionImpl

public interface MyShoppingListRemoveTextLineItemAction extends MyShoppingListUpdateAction
MyShoppingListRemoveTextLineItemAction
Example to create an instance using the builder pattern

     MyShoppingListRemoveTextLineItemAction myShoppingListRemoveTextLineItemAction = MyShoppingListRemoveTextLineItemAction.builder()
             .build()
 
  • Field Details

    • REMOVE_TEXT_LINE_ITEM

      static final String REMOVE_TEXT_LINE_ITEM
      discriminator value for MyShoppingListRemoveTextLineItemAction
      See Also:
  • Method Details

    • getTextLineItemId

      String getTextLineItemId()

      The id of the TextLineItem to update. Either lineItemId or lineItemKey is required.

      Returns:
      textLineItemId
    • getTextLineItemKey

      String getTextLineItemKey()

      The key of the TextLineItem to update. Either lineItemId or lineItemKey is required.

      Returns:
      textLineItemKey
    • getQuantity

      Long getQuantity()

      Amount to remove from the quantity of the TextLineItem. If not set, the TextLineItem is removed from the ShoppingList. If this value matches or exceeds the current quantity of the TextLineItem, the TextLineItem is removed from the ShoppingList.

      Returns:
      quantity
    • setTextLineItemId

      void setTextLineItemId(String textLineItemId)

      The id of the TextLineItem to update. Either lineItemId or lineItemKey is required.

      Parameters:
      textLineItemId - value to be set
    • setTextLineItemKey

      void setTextLineItemKey(String textLineItemKey)

      The key of the TextLineItem to update. Either lineItemId or lineItemKey is required.

      Parameters:
      textLineItemKey - value to be set
    • setQuantity

      void setQuantity(Long quantity)

      Amount to remove from the quantity of the TextLineItem. If not set, the TextLineItem is removed from the ShoppingList. If this value matches or exceeds the current quantity of 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
    • deepCopy

      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

      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