Class MyOrderFromCartDraftBuilder

java.lang.Object
com.commercetools.api.models.me.MyOrderFromCartDraftBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<MyOrderFromCartDraft>

public class MyOrderFromCartDraftBuilder extends Object implements io.vrap.rmf.base.client.Builder<MyOrderFromCartDraft>
MyOrderFromCartDraftBuilder
Example to create an instance using the builder pattern

     MyOrderFromCartDraft myOrderFromCartDraft = MyOrderFromCartDraft.builder()
             .id("{id}")
             .version(0.3)
             .build()
 
  • Constructor Details

    • MyOrderFromCartDraftBuilder

      public MyOrderFromCartDraftBuilder()
  • Method Details

    • id

      id of the Cart from which the Order is created.

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

      public MyOrderFromCartDraftBuilder version(Long version)

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

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

      public String getId()

      id of the Cart from which the Order is created.

      Returns:
      id
    • getVersion

      public Long getVersion()

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

      Returns:
      version
    • build

      public MyOrderFromCartDraft build()
      builds MyOrderFromCartDraft with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<MyOrderFromCartDraft>
      Returns:
      MyOrderFromCartDraft
    • buildUnchecked

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

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

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