Class StateProps.Builder

java.lang.Object
software.amazon.awscdk.services.iotevents.alpha.StateProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<StateProps>
Enclosing interface:
StateProps

@Stability(Experimental) public static final class StateProps.Builder extends Object implements software.amazon.jsii.Builder<StateProps>
A builder for StateProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • stateName

      @Stability(Experimental) public StateProps.Builder stateName(String stateName)
      Sets the value of StateProps.getStateName()
      Parameters:
      stateName - The name of the state. This parameter is required.
      Returns:
      this
    • onEnter

      @Stability(Experimental) public StateProps.Builder onEnter(List<? extends Event> onEnter)
      Sets the value of StateProps.getOnEnter()
      Parameters:
      onEnter - Specifies the events on enter. The conditions of the events will be evaluated when entering this state. If the condition of the event evaluates to true, the actions of the event will be executed.
      Returns:
      this
    • onExit

      @Stability(Experimental) public StateProps.Builder onExit(List<? extends Event> onExit)
      Sets the value of StateProps.getOnExit()
      Parameters:
      onExit - Specifies the events on exit. The conditions of the events are evaluated when an exiting this state. If the condition evaluates to true, the actions of the event will be executed.
      Returns:
      this
    • onInput

      @Stability(Experimental) public StateProps.Builder onInput(List<? extends Event> onInput)
      Sets the value of StateProps.getOnInput()
      Parameters:
      onInput - Specifies the events on input. The conditions of the events will be evaluated when any input is received. If the condition of the event evaluates to true, the actions of the event will be executed.
      Returns:
      this
    • build

      @Stability(Experimental) public StateProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<StateProps>
      Returns:
      a new instance of StateProps
      Throws:
      NullPointerException - if any required attribute was not provided