Class QuoteRequestLabelBuilder

java.lang.Object
com.commercetools.history.models.label.QuoteRequestLabelBuilder
All Implemented Interfaces:
Builder<QuoteRequestLabel>

public class QuoteRequestLabelBuilder extends Object implements Builder<QuoteRequestLabel>
QuoteRequestLabelBuilder
Example to create an instance using the builder pattern

     QuoteRequestLabel quoteRequestLabel = QuoteRequestLabel.builder()
             .key("{key}")
             .customer(customerBuilder -> customerBuilder)
             .build()
 
  • Constructor Details

    • QuoteRequestLabelBuilder

      public QuoteRequestLabelBuilder()
  • Method Details

    • key

      public QuoteRequestLabelBuilder key(String key)

      User-defined unique identifier of the Quote Request.

      Parameters:
      key - value to be set
      Returns:
      Builder
    • customer

      The Buyer who raised the Quote Request.

      Parameters:
      builder - function to build the customer value
      Returns:
      Builder
    • withCustomer

      The Buyer who raised the Quote Request.

      Parameters:
      builder - function to build the customer value
      Returns:
      Builder
    • customer

      public QuoteRequestLabelBuilder customer(Reference customer)

      The Buyer who raised the Quote Request.

      Parameters:
      customer - value to be set
      Returns:
      Builder
    • getKey

      public String getKey()

      User-defined unique identifier of the Quote Request.

      Returns:
      key
    • getCustomer

      public Reference getCustomer()

      The Buyer who raised the Quote Request.

      Returns:
      customer
    • build

      public QuoteRequestLabel build()
      builds QuoteRequestLabel with checking for non-null required values
      Specified by:
      build in interface Builder<QuoteRequestLabel>
      Returns:
      QuoteRequestLabel
    • buildUnchecked

      public QuoteRequestLabel buildUnchecked()
      builds QuoteRequestLabel without checking for non-null required values
      Returns:
      QuoteRequestLabel
    • of

      public static QuoteRequestLabelBuilder of()
      factory method for an instance of QuoteRequestLabelBuilder
      Returns:
      builder
    • of

      public static QuoteRequestLabelBuilder of(QuoteRequestLabel template)
      create builder for QuoteRequestLabel instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder