Class StagedOrderSetStoreActionBuilder

java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetStoreActionBuilder
All Implemented Interfaces:
Builder<StagedOrderSetStoreAction>

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

     StagedOrderSetStoreAction stagedOrderSetStoreAction = StagedOrderSetStoreAction.builder()
             .build()
 
  • Constructor Details

    • StagedOrderSetStoreActionBuilder

      public StagedOrderSetStoreActionBuilder()
  • Method Details

    • store

      Value to set. If empty, any existing value will be 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 will be 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 will be 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 will be 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 StagedOrderSetStoreAction build()
      builds StagedOrderSetStoreAction with checking for non-null required values
      Specified by:
      build in interface Builder<StagedOrderSetStoreAction>
      Returns:
      StagedOrderSetStoreAction
    • buildUnchecked

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

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

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