Class OrderSetStoreActionBuilder

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

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

     OrderSetStoreAction orderSetStoreAction = OrderSetStoreAction.builder()
             .build()
 
  • Constructor Details

    • OrderSetStoreActionBuilder

      public OrderSetStoreActionBuilder()
  • Method Details

    • store

      Value to set. If empty, any existing value is removed.

      If store references the same Store the Order is currently assigned to or if you try to remove the value when no Store is currently assigned, a 400 error is returned.

      Parameters:
      builder - function to build the store value
      Returns:
      Builder
    • withStore

      Value to set. If empty, any existing value is removed.

      If store references the same Store the Order is currently assigned to or if you try to remove the value when no Store is currently assigned, a 400 error is returned.

      Parameters:
      builder - function to build the store value
      Returns:
      Builder
    • store

      Value to set. If empty, any existing value is removed.

      If store references the same Store the Order is currently assigned to or if you try to remove the value when no Store is currently assigned, a 400 error is returned.

      Parameters:
      store - value to be set
      Returns:
      Builder
    • getStore

      Value to set. If empty, any existing value is removed.

      If store references the same Store the Order is currently assigned to or if you try to remove the value when no Store is currently assigned, a 400 error is returned.

      Returns:
      store
    • build

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

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

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

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