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