Class RemoveDeliveryDraftBuilder

java.lang.Object
com.commercetools.importapi.models.order_patches.RemoveDeliveryDraftBuilder
All Implemented Interfaces:
Builder<RemoveDeliveryDraft>

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

     RemoveDeliveryDraft removeDeliveryDraft = RemoveDeliveryDraft.builder()
             .id("{id}")
             .build()
 
  • Constructor Details

    • RemoveDeliveryDraftBuilder

      public RemoveDeliveryDraftBuilder()
  • Method Details

    • id

      set the value to the id
      Parameters:
      id - value to be set
      Returns:
      Builder
    • getId

      public String getId()
      value of id}
      Returns:
      id
    • build

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

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

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

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