Class State.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.alpha.State.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<State>
- Enclosing class:
State
@Stability(Experimental)
public static final class State.Builder
extends Object
implements software.amazon.jsii.Builder<State>
(experimental) A fluent builder for
State
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static State.Builder
create()
(experimental) Specifies the events on enter.(experimental) Specifies the events on exit.(experimental) Specifies the events on input.(experimental) The name of the state.
-
Method Details
-
create
- Returns:
- a new instance of
State.Builder
.
-
stateName
(experimental) The name of the state.- Parameters:
stateName
- The name of the state. This parameter is required.- Returns:
this
-
onEnter
(experimental) 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.Default: - no events will trigger on entering this state
- Parameters:
onEnter
- Specifies the events on enter. This parameter is required.- Returns:
this
-
onExit
(experimental) 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.Default: - no events will trigger on exiting this state
- Parameters:
onExit
- Specifies the events on exit. This parameter is required.- Returns:
this
-
onInput
(experimental) 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.Default: - no events will trigger on input in this state
- Parameters:
onInput
- Specifies the events on input. This parameter is required.- Returns:
this
-
build
-