Class OrderSetCustomerIdActionBuilder

java.lang.Object
com.commercetools.api.models.order.OrderSetCustomerIdActionBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<OrderSetCustomerIdAction>

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

     OrderSetCustomerIdAction orderSetCustomerIdAction = OrderSetCustomerIdAction.builder()
             .build()
 
  • Constructor Details

    • OrderSetCustomerIdActionBuilder

      public OrderSetCustomerIdActionBuilder()
  • Method Details

    • customerId

      public OrderSetCustomerIdActionBuilder customerId(@Nullable String customerId)

      id of an existing Customer. If empty, any existing value is removed.

      Parameters:
      customerId - value to be set
      Returns:
      Builder
    • getCustomerId

      @Nullable public String getCustomerId()

      id of an existing Customer. If empty, any existing value is removed.

      Returns:
      customerId
    • build

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

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

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

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