Class StagedQuoteReferenceBuilder

java.lang.Object
com.commercetools.api.models.staged_quote.StagedQuoteReferenceBuilder
All Implemented Interfaces:
Builder<StagedQuoteReference>

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

     StagedQuoteReference stagedQuoteReference = StagedQuoteReference.builder()
             .id("{id}")
             .build()
 
  • Constructor Details

    • StagedQuoteReferenceBuilder

      public StagedQuoteReferenceBuilder()
  • Method Details

    • id

      Unique ID of the referenced resource.

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

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

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

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

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

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

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

      public String getId()

      Unique ID of the referenced resource.

      Returns:
      id
    • getObj

      @Nullable public StagedQuote getObj()

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

      Returns:
      obj
    • build

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

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

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

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