Class OrderRemoveDeliveryActionBuilder

java.lang.Object
com.commercetools.api.models.order.OrderRemoveDeliveryActionBuilder
All Implemented Interfaces:
Builder<OrderRemoveDeliveryAction>

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

     OrderRemoveDeliveryAction orderRemoveDeliveryAction = OrderRemoveDeliveryAction.builder()
             .build()
 
  • Constructor Details

    • OrderRemoveDeliveryActionBuilder

      public OrderRemoveDeliveryActionBuilder()
  • Method Details

    • deliveryId

      public OrderRemoveDeliveryActionBuilder deliveryId(@Nullable String deliveryId)

      id of an existing Delivery.

      Either deliveryId or deliveryKey must be provided.

      Parameters:
      deliveryId - value to be set
      Returns:
      Builder
    • deliveryKey

      public OrderRemoveDeliveryActionBuilder deliveryKey(@Nullable String deliveryKey)

      key of an existing Delivery.

      Either deliveryId or deliveryKey must be provided.

      Parameters:
      deliveryKey - value to be set
      Returns:
      Builder
    • getDeliveryId

      @Nullable public String getDeliveryId()

      id of an existing Delivery.

      Either deliveryId or deliveryKey must be provided.

      Returns:
      deliveryId
    • getDeliveryKey

      @Nullable public String getDeliveryKey()

      key of an existing Delivery.

      Either deliveryId or deliveryKey must be provided.

      Returns:
      deliveryKey
    • build

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

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

      factory method for an instance of OrderRemoveDeliveryActionBuilder
      Returns:
      builder
    • of

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