Class CfnDetectorModel.EventProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnDetectorModel.EventProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDetectorModel.EventProperty>
- Enclosing interface:
CfnDetectorModel.EventProperty
@Stability(Stable)
public static final class CfnDetectorModel.EventProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDetectorModel.EventProperty>
A builder for
CfnDetectorModel.EventProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDetectorModel.EventProperty.getActions()actions(IResolvable actions) Sets the value ofCfnDetectorModel.EventProperty.getActions()build()Builds the configured instance.Sets the value ofCfnDetectorModel.EventProperty.getCondition()Sets the value ofCfnDetectorModel.EventProperty.getEventName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventName
Sets the value ofCfnDetectorModel.EventProperty.getEventName()- Parameters:
eventName- The name of the event. This parameter is required.- Returns:
this
-
actions
Sets the value ofCfnDetectorModel.EventProperty.getActions()- Parameters:
actions- The actions to be performed.- Returns:
this
-
actions
@Stability(Stable) public CfnDetectorModel.EventProperty.Builder actions(List<? extends Object> actions) Sets the value ofCfnDetectorModel.EventProperty.getActions()- Parameters:
actions- The actions to be performed.- Returns:
this
-
condition
Sets the value ofCfnDetectorModel.EventProperty.getCondition()- Parameters:
condition- Optional. The Boolean expression that, when TRUE, causes theactionsto be performed. If not present, the actions are performed (=TRUE). If the expression result is not a Boolean value, the actions are not performed (=FALSE).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDetectorModel.EventProperty>- Returns:
- a new instance of
CfnDetectorModel.EventProperty - Throws:
NullPointerException- if any required attribute was not provided
-