Class StateChangeTypeActionBuilder

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

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

     StateChangeTypeAction stateChangeTypeAction = StateChangeTypeAction.builder()
             .type(StateTypeEnum.ORDER_STATE)
             .build()
 
  • Constructor Details

    • StateChangeTypeActionBuilder

      public StateChangeTypeActionBuilder()
  • Method Details

    • type

      Resource or object types the State shall be assigned to. Must not be empty.

      Parameters:
      type - value to be set
      Returns:
      Builder
    • getType

      public StateTypeEnum getType()

      Resource or object types the State shall be assigned to. Must not be empty.

      Returns:
      type
    • build

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

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

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

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