Class ReplicaMyCartDraftBuilder

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

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

     ReplicaMyCartDraft replicaMyCartDraft = ReplicaMyCartDraft.builder()
             .build()
 
  • Constructor Details

    • ReplicaMyCartDraftBuilder

      public ReplicaMyCartDraftBuilder()
  • Method Details

    • reference

      public ReplicaMyCartDraftBuilder reference(Object reference)

      Reference to a Cart or Order that is replicated.

      Parameters:
      reference - value to be set
      Returns:
      Builder
    • getReference

      public Object getReference()

      Reference to a Cart or Order that is replicated.

      Returns:
      reference
    • build

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

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

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

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