Class StateChangeInitialActionBuilder

java.lang.Object
com.commercetools.api.models.state.StateChangeInitialActionBuilder
All Implemented Interfaces:
Builder<StateChangeInitialAction>

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

     StateChangeInitialAction stateChangeInitialAction = StateChangeInitialAction.builder()
             .initial(true)
             .build()
 
  • Constructor Details

    • StateChangeInitialActionBuilder

      public StateChangeInitialActionBuilder()
  • Method Details

    • initial

      public StateChangeInitialActionBuilder initial(Boolean initial)

      Set to true for defining the State as initial State in a state machine and making it the first step in a workflow.

      Parameters:
      initial - value to be set
      Returns:
      Builder
    • getInitial

      public Boolean getInitial()

      Set to true for defining the State as initial State in a state machine and making it the first step in a workflow.

      Returns:
      initial
    • build

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

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

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

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