Class CfnDetectorModel.StateProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnDetectorModel.StateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorModel.StateProperty>
- Enclosing interface:
CfnDetectorModel.StateProperty
@Stability(Stable)
public static final class CfnDetectorModel.StateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetectorModel.StateProperty>
A builder for
CfnDetectorModel.StateProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.onEnter(IResolvable onEnter) Sets the value ofCfnDetectorModel.StateProperty.getOnEnter()onEnter(CfnDetectorModel.OnEnterProperty onEnter) Sets the value ofCfnDetectorModel.StateProperty.getOnEnter()onExit(IResolvable onExit) Sets the value ofCfnDetectorModel.StateProperty.getOnExit()Sets the value ofCfnDetectorModel.StateProperty.getOnExit()onInput(IResolvable onInput) Sets the value ofCfnDetectorModel.StateProperty.getOnInput()onInput(CfnDetectorModel.OnInputProperty onInput) Sets the value ofCfnDetectorModel.StateProperty.getOnInput()Sets the value ofCfnDetectorModel.StateProperty.getStateName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
stateName
Sets the value ofCfnDetectorModel.StateProperty.getStateName()- Parameters:
stateName- The name of the state. This parameter is required.- Returns:
this
-
onEnter
Sets the value ofCfnDetectorModel.StateProperty.getOnEnter()- Parameters:
onEnter- When entering this state, perform theseactionsif theconditionis TRUE.- Returns:
this
-
onEnter
@Stability(Stable) public CfnDetectorModel.StateProperty.Builder onEnter(CfnDetectorModel.OnEnterProperty onEnter) Sets the value ofCfnDetectorModel.StateProperty.getOnEnter()- Parameters:
onEnter- When entering this state, perform theseactionsif theconditionis TRUE.- Returns:
this
-
onExit
Sets the value ofCfnDetectorModel.StateProperty.getOnExit()- Parameters:
onExit- When exiting this state, perform theseactionsif the specifiedconditionisTRUE.- Returns:
this
-
onExit
@Stability(Stable) public CfnDetectorModel.StateProperty.Builder onExit(CfnDetectorModel.OnExitProperty onExit) Sets the value ofCfnDetectorModel.StateProperty.getOnExit()- Parameters:
onExit- When exiting this state, perform theseactionsif the specifiedconditionisTRUE.- Returns:
this
-
onInput
Sets the value ofCfnDetectorModel.StateProperty.getOnInput()- Parameters:
onInput- When an input is received and theconditionis TRUE, perform the specifiedactions.- Returns:
this
-
onInput
@Stability(Stable) public CfnDetectorModel.StateProperty.Builder onInput(CfnDetectorModel.OnInputProperty onInput) Sets the value ofCfnDetectorModel.StateProperty.getOnInput()- Parameters:
onInput- When an input is received and theconditionis TRUE, perform the specifiedactions.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDetectorModel.StateProperty>- Returns:
- a new instance of
CfnDetectorModel.StateProperty - Throws:
NullPointerException- if any required attribute was not provided
-