Interface StateProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
StateProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-15T10:25:09.406Z")
@Stability(Experimental)
public interface StateProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for defining a state of a detector.
Example:
// Example automatically generated from non-compiling source. May contain errors. import software.amazon.awscdk.services.iotevents.alpha.*; import software.amazon.awscdk.services.iotevents.actions.alpha.*; IInput input; State state = State.Builder.create() .stateName("MyState") .onEnter(List.of(Event.builder() .eventName("test-event") .condition(Expression.currentInput(input)) .actions(List.of( new SetTimerAction("MyTimer", Map.of( "duration", cdk.Duration.seconds(60))))) .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forStateProps
static final class
An implementation forStateProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic StateProps.Builder
builder()
(experimental) Specifies the events on enter.(experimental) Specifies the events on exit.(experimental) Specifies the events on input.(experimental) The name of the state.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getStateName
(experimental) The name of the state. -
getOnEnter
(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
-
getOnExit
(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
-
getOnInput
(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
-
builder
- Returns:
- a
StateProps.Builder
ofStateProps
-