Interface QuoteLabel

All Superinterfaces:
Label

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

     QuoteLabel quoteLabel = QuoteLabel.builder()
             .key("{key}")
             .customer(customerBuilder -> customerBuilder)
             .stagedQuote(stagedQuoteBuilder -> stagedQuoteBuilder)
             .quoteRequest(quoteRequestBuilder -> quoteRequestBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getType

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

      @NotNull @NotNull String getKey()

      User-defined unique identifier of the Quote.

      Returns:
      key
    • getCustomer

      @NotNull @Valid @NotNull @Valid Reference getCustomer()

      The Buyer who requested the Quote.

      Returns:
      customer
    • getStagedQuote

      @NotNull @Valid @NotNull @Valid Reference getStagedQuote()

      Staged Quote related to the Quote.

      Returns:
      stagedQuote
    • getQuoteRequest

      @NotNull @Valid @NotNull @Valid Reference getQuoteRequest()

      Quote Request related to the Quote.

      Returns:
      quoteRequest
    • setKey

      void setKey(String key)

      User-defined unique identifier of the Quote.

      Parameters:
      key - value to be set
    • setCustomer

      void setCustomer(Reference customer)

      The Buyer who requested the Quote.

      Parameters:
      customer - value to be set
    • setStagedQuote

      void setStagedQuote(Reference stagedQuote)

      Staged Quote related to the Quote.

      Parameters:
      stagedQuote - value to be set
    • setQuoteRequest

      void setQuoteRequest(Reference quoteRequest)

      Quote Request related to the Quote.

      Parameters:
      quoteRequest - value to be set
    • of

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

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

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

      static QuoteLabelBuilder builder()
      builder factory method for QuoteLabel
      Returns:
      builder
    • builder

      static QuoteLabelBuilder builder(QuoteLabel template)
      create builder for QuoteLabel instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withQuoteLabel

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