Interface ParcelItems


public interface ParcelItems
ParcelItems
Example to create an instance using the builder pattern

     ParcelItems parcelItems = ParcelItems.builder()
             .parcelId("{parcelId}")
             .build()
 
  • Method Details

    • getParcelId

      @NotNull @NotNull String getParcelId()
      Returns:
      parcelId
    • getItems

      @Valid @Valid List<DeliveryItem> getItems()
      Returns:
      items
    • setParcelId

      void setParcelId(String parcelId)
      set parcelId
      Parameters:
      parcelId - value to be set
    • setItems

      void setItems(DeliveryItem... items)
      set items
      Parameters:
      items - values to be set
    • setItems

      void setItems(List<DeliveryItem> items)
      set items
      Parameters:
      items - values to be set
    • of

      static ParcelItems of()
      factory method
      Returns:
      instance of ParcelItems
    • of

      static ParcelItems of(ParcelItems template)
      factory method to create a shallow copy ParcelItems
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static ParcelItems deepCopy(@Nullable ParcelItems template)
      factory method to create a deep copy of ParcelItems
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static ParcelItemsBuilder builder()
      builder factory method for ParcelItems
      Returns:
      builder
    • builder

      static ParcelItemsBuilder builder(ParcelItems template)
      create builder for ParcelItems instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withParcelItems

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