Interface MyShoppingListChangeLineItemQuantityAction

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

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

     MyShoppingListChangeLineItemQuantityAction myShoppingListChangeLineItemQuantityAction = MyShoppingListChangeLineItemQuantityAction.builder()
             .quantity(0.3)
             .build()
 
  • Field Details

    • CHANGE_LINE_ITEM_QUANTITY

      static final String CHANGE_LINE_ITEM_QUANTITY
      discriminator value for MyShoppingListChangeLineItemQuantityAction
      See Also:
  • Method Details

    • getLineItemId

      String getLineItemId()

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

      Returns:
      lineItemId
    • getLineItemKey

      String getLineItemKey()

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

      Returns:
      lineItemKey
    • getQuantity

      @NotNull @NotNull Long getQuantity()

      New value to set. If 0, the ShoppingListLineItem is removed from the ShoppingList.

      Returns:
      quantity
    • setLineItemId

      void setLineItemId(String lineItemId)

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

      Parameters:
      lineItemId - value to be set
    • setLineItemKey

      void setLineItemKey(String lineItemKey)

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

      Parameters:
      lineItemKey - value to be set
    • setQuantity

      void setQuantity(Long quantity)

      New value to set. If 0, the ShoppingListLineItem is removed from the ShoppingList.

      Parameters:
      quantity - value to be set
    • of

      factory method
      Returns:
      instance of MyShoppingListChangeLineItemQuantityAction
    • of

      factory method to create a shallow copy MyShoppingListChangeLineItemQuantityAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of MyShoppingListChangeLineItemQuantityAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for MyShoppingListChangeLineItemQuantityAction
      Returns:
      builder
    • builder

      create builder for MyShoppingListChangeLineItemQuantityAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMyShoppingListChangeLineItemQuantityAction

      default <T> T withMyShoppingListChangeLineItemQuantityAction(Function<MyShoppingListChangeLineItemQuantityAction,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<MyShoppingListChangeLineItemQuantityAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference