@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:32.687Z") @Stability(value=Experimental) public interface StateProps extends software.amazon.jsii.JsiiSerializable
Example:
// Example automatically generated from non-compiling source. May contain errors.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.core.*;
IInput input;
State state = State.Builder.create()
.stateName("MyState")
.onEnter(List.of(Event.builder()
.eventName("test-event")
.condition(Expression.currentInput(input))
.actions(List.of(actions, List.of(
new SetVariableAction("MyVariable", Expression.inputAttribute(input, "payload.temperature")))))
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
StateProps.Builder
A builder for
StateProps |
static class |
StateProps.Jsii$Proxy
An implementation for
StateProps |
| Modifier and Type | Method and Description |
|---|---|
static StateProps.Builder |
builder() |
default List<Event> |
getOnEnter()
(experimental) Specifies the events on enter.
|
default List<Event> |
getOnExit()
(experimental) Specifies the events on exit.
|
default List<Event> |
getOnInput()
(experimental) Specifies the events on input.
|
String |
getStateName()
(experimental) The name of the state.
|
@Stability(value=Experimental) @NotNull String getStateName()
@Stability(value=Experimental) @Nullable default List<Event> getOnEnter()
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
@Stability(value=Experimental) @Nullable default List<Event> getOnExit()
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
@Stability(value=Experimental) @Nullable default List<Event> getOnInput()
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
@Stability(value=Experimental) static StateProps.Builder builder()
StateProps.Builder of StatePropsCopyright © 2022. All rights reserved.