Class CfnDetectorModel.TransitionEventProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnDetectorModel.TransitionEventProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorModel.TransitionEventProperty>
- Enclosing interface:
CfnDetectorModel.TransitionEventProperty
@Stability(Stable)
public static final class CfnDetectorModel.TransitionEventProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetectorModel.TransitionEventProperty>
A builder for
CfnDetectorModel.TransitionEventProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDetectorModel.TransitionEventProperty.getActions()
actions
(IResolvable actions) Sets the value ofCfnDetectorModel.TransitionEventProperty.getActions()
build()
Builds the configured instance.Sets the value ofCfnDetectorModel.TransitionEventProperty.getCondition()
Sets the value ofCfnDetectorModel.TransitionEventProperty.getEventName()
Sets the value ofCfnDetectorModel.TransitionEventProperty.getNextState()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
condition
@Stability(Stable) public CfnDetectorModel.TransitionEventProperty.Builder condition(String condition) Sets the value ofCfnDetectorModel.TransitionEventProperty.getCondition()
- Parameters:
condition
- Required. This parameter is required. A Boolean expression that when TRUE causes the actions to be performed and thenextState
to be entered.- Returns:
this
-
eventName
@Stability(Stable) public CfnDetectorModel.TransitionEventProperty.Builder eventName(String eventName) Sets the value ofCfnDetectorModel.TransitionEventProperty.getEventName()
- Parameters:
eventName
- The name of the transition event. This parameter is required.- Returns:
this
-
nextState
@Stability(Stable) public CfnDetectorModel.TransitionEventProperty.Builder nextState(String nextState) Sets the value ofCfnDetectorModel.TransitionEventProperty.getNextState()
- Parameters:
nextState
- The next state to enter. This parameter is required.- Returns:
this
-
actions
@Stability(Stable) public CfnDetectorModel.TransitionEventProperty.Builder actions(IResolvable actions) Sets the value ofCfnDetectorModel.TransitionEventProperty.getActions()
- Parameters:
actions
- The actions to be performed.- Returns:
this
-
actions
@Stability(Stable) public CfnDetectorModel.TransitionEventProperty.Builder actions(List<? extends Object> actions) Sets the value ofCfnDetectorModel.TransitionEventProperty.getActions()
- Parameters:
actions
- The actions to be performed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDetectorModel.TransitionEventProperty>
- Returns:
- a new instance of
CfnDetectorModel.TransitionEventProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-