Interface OrderLabel

All Superinterfaces:
Label

public interface OrderLabel extends Label
OrderLabel
Example to create an instance using the builder pattern

     OrderLabel orderLabel = OrderLabel.builder()
             .customerEmail("{customerEmail}")
             .orderNumber("{orderNumber}")
             .build()
 
  • Field Details

  • Method Details

    • getType

      @NotNull @NotNull String getType()
      Specified by:
      getType in interface Label
      Returns:
      type
    • getCustomerEmail

      @NotNull @NotNull String getCustomerEmail()

      Email address of the Customer that the Order belongs to.

      Returns:
      customerEmail
    • getOrderNumber

      @NotNull @NotNull String getOrderNumber()

      User-defined unique identifier of the Order that is unique across a Project.

      Returns:
      orderNumber
    • setCustomerEmail

      void setCustomerEmail(String customerEmail)

      Email address of the Customer that the Order belongs to.

      Parameters:
      customerEmail - value to be set
    • setOrderNumber

      void setOrderNumber(String orderNumber)

      User-defined unique identifier of the Order that is unique across a Project.

      Parameters:
      orderNumber - value to be set
    • of

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

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

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

      static OrderLabelBuilder builder()
      builder factory method for OrderLabel
      Returns:
      builder
    • builder

      static OrderLabelBuilder builder(OrderLabel template)
      create builder for OrderLabel instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderLabel

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