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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofStateProps.getOnEnter()
Sets the value ofStateProps.getOnExit()
Sets the value ofStateProps.getOnInput()
Sets the value ofStateProps.getStateName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stateName
Sets the value ofStateProps.getStateName()
- Parameters:
stateName
- The name of the state. This parameter is required.- Returns:
this
-
onEnter
Sets the value ofStateProps.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 totrue
, the actions of the event will be executed.- Returns:
this
-
onExit
Sets the value ofStateProps.getOnExit()
- Parameters:
onExit
- Specifies the events on exit. The conditions of the events are evaluated when an exiting this state. If the condition evaluates totrue
, the actions of the event will be executed.- Returns:
this
-
onInput
Sets the value ofStateProps.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 totrue
, the actions of the event will be executed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<StateProps>
- Returns:
- a new instance of
StateProps
- Throws:
NullPointerException
- if any required attribute was not provided
-