Class QuoteRequestReferenceBuilder

java.lang.Object
com.commercetools.api.models.quote_request.QuoteRequestReferenceBuilder
All Implemented Interfaces:
Builder<QuoteRequestReference>

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

     QuoteRequestReference quoteRequestReference = QuoteRequestReference.builder()
             .id("{id}")
             .build()
 
  • Constructor Details

    • QuoteRequestReferenceBuilder

      public QuoteRequestReferenceBuilder()
  • Method Details

    • id

      Unique ID of the referenced resource.

      Parameters:
      id - value to be set
      Returns:
      Builder
    • obj

      Contains the representation of the expanded QuoteRequest. Only present in responses to requests with Reference Expansion for QuoteRequest.

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

      Contains the representation of the expanded QuoteRequest. Only present in responses to requests with Reference Expansion for QuoteRequest.

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

      Contains the representation of the expanded QuoteRequest. Only present in responses to requests with Reference Expansion for QuoteRequest.

      Parameters:
      obj - value to be set
      Returns:
      Builder
    • getId

      public String getId()

      Unique ID of the referenced resource.

      Returns:
      id
    • getObj

      @Nullable public QuoteRequest getObj()

      Contains the representation of the expanded QuoteRequest. Only present in responses to requests with Reference Expansion for QuoteRequest.

      Returns:
      obj
    • build

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

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

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

      create builder for QuoteRequestReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder