Interface MyShoppingListAddTextLineItemAction

All Superinterfaces:
CustomizableDraft<MyShoppingListAddTextLineItemAction>, MyShoppingListUpdateAction, ResourceUpdateAction<MyShoppingListUpdateAction>

public interface MyShoppingListAddTextLineItemAction extends MyShoppingListUpdateAction, CustomizableDraft<MyShoppingListAddTextLineItemAction>
MyShoppingListAddTextLineItemAction
Example to create an instance using the builder pattern

     MyShoppingListAddTextLineItemAction myShoppingListAddTextLineItemAction = MyShoppingListAddTextLineItemAction.builder()
             .name(nameBuilder -> nameBuilder)
             .build()
 
  • Field Details

    • ADD_TEXT_LINE_ITEM

      static final String ADD_TEXT_LINE_ITEM
      discriminator value for MyShoppingListAddTextLineItemAction
      See Also:
  • Method Details

    • getName

      @NotNull @Valid @NotNull @Valid LocalizedString getName()

      Name of the TextLineItem.

      Returns:
      name
    • getKey

      String getKey()

      User-defined identifier of the TextLineItem. Must be unique per ShoppingList.

      Returns:
      key
    • getDescription

      @Valid @Valid LocalizedString getDescription()

      Description of the TextLineItem.

      Returns:
      description
    • getQuantity

      Long getQuantity()

      Number of entries in the TextLineItem.

      Returns:
      quantity
    • getAddedAt

      ZonedDateTime getAddedAt()

      Date and time the TextLineItem is added to the ShoppingList. If not set, the current date and time (UTC) is used.

      Returns:
      addedAt
    • getCustom

      @Valid @Valid CustomFieldsDraft getCustom()

      Custom Fields defined for the TextLineItem.

      Specified by:
      getCustom in interface CustomizableDraft<MyShoppingListAddTextLineItemAction>
      Returns:
      custom
    • setName

      void setName(LocalizedString name)

      Name of the TextLineItem.

      Parameters:
      name - value to be set
    • setKey

      void setKey(String key)

      User-defined identifier of the TextLineItem. Must be unique per ShoppingList.

      Parameters:
      key - value to be set
    • setDescription

      void setDescription(LocalizedString description)

      Description of the TextLineItem.

      Parameters:
      description - value to be set
    • setQuantity

      void setQuantity(Long quantity)

      Number of entries in the TextLineItem.

      Parameters:
      quantity - value to be set
    • setAddedAt

      void setAddedAt(ZonedDateTime addedAt)

      Date and time the TextLineItem is added to the ShoppingList. If not set, the current date and time (UTC) is used.

      Parameters:
      addedAt - value to be set
    • setCustom

      void setCustom(CustomFieldsDraft custom)

      Custom Fields defined for the TextLineItem.

      Specified by:
      setCustom in interface CustomizableDraft<MyShoppingListAddTextLineItemAction>
      Parameters:
      custom - value to be set
    • of

      factory method
      Returns:
      instance of MyShoppingListAddTextLineItemAction
    • of

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

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

      builder factory method for MyShoppingListAddTextLineItemAction
      Returns:
      builder
    • builder

      create builder for MyShoppingListAddTextLineItemAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMyShoppingListAddTextLineItemAction

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