Class MyOrderFromQuoteDraftBuilder

java.lang.Object
com.commercetools.api.models.me.MyOrderFromQuoteDraftBuilder
All Implemented Interfaces:
Builder<MyOrderFromQuoteDraft>

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

     MyOrderFromQuoteDraft myOrderFromQuoteDraft = MyOrderFromQuoteDraft.builder()
             .id("{id}")
             .version(0.3)
             .build()
 
  • Constructor Details

    • MyOrderFromQuoteDraftBuilder

      public MyOrderFromQuoteDraftBuilder()
  • Method Details

    • id

      id of the Quote from which the Order is created.

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

      public MyOrderFromQuoteDraftBuilder version(Long version)

      Current version of the Quote from which the Order is created.

      Parameters:
      version - value to be set
      Returns:
      Builder
    • quoteStateToAccepted

      public MyOrderFromQuoteDraftBuilder quoteStateToAccepted(@Nullable Boolean quoteStateToAccepted)

      Set to true, if the quoteState of the referenced Quote should be set to Accepted.

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

      public String getId()

      id of the Quote from which the Order is created.

      Returns:
      id
    • getVersion

      public Long getVersion()

      Current version of the Quote from which the Order is created.

      Returns:
      version
    • getQuoteStateToAccepted

      @Nullable public Boolean getQuoteStateToAccepted()

      Set to true, if the quoteState of the referenced Quote should be set to Accepted.

      Returns:
      quoteStateToAccepted
    • build

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

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

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

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