@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:32.686Z") @Stability(value=Experimental) public class State extends software.amazon.jsii.JsiiObject
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 | Class and Description |
|---|---|
static class |
State.Builder
(experimental) A fluent builder for
State. |
| Modifier | Constructor and Description |
|---|---|
protected |
State(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
State(software.amazon.jsii.JsiiObjectRef objRef) |
|
State(StateProps props) |
| Modifier and Type | Method and Description |
|---|---|
String |
getStateName()
(experimental) The name of the state.
|
void |
transitionTo(State targetState,
TransitionOptions options)
(experimental) Add a transition event to the state.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected State(software.amazon.jsii.JsiiObjectRef objRef)
protected State(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public State(@NotNull
StateProps props)
props - This parameter is required.@Stability(value=Experimental)
public void transitionTo(@NotNull
State targetState,
@NotNull
TransitionOptions options)
The transition event will be triggered if condition is evaluated to true.
targetState - the state that will be transit to when the event triggered. This parameter is required.options - transition options including the condition that causes the state transition. This parameter is required.@Stability(value=Experimental) @NotNull public String getStateName()
Copyright © 2022. All rights reserved.