Class CfnAlarmModel.SimpleRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnAlarmModel.SimpleRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarmModel.SimpleRuleProperty>
- Enclosing interface:
CfnAlarmModel.SimpleRuleProperty
@Stability(Stable)
public static final class CfnAlarmModel.SimpleRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarmModel.SimpleRuleProperty>
A builder for
CfnAlarmModel.SimpleRuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.comparisonOperator(String comparisonOperator) Sets the value ofCfnAlarmModel.SimpleRuleProperty.getComparisonOperator()inputProperty(String inputProperty) Sets the value ofCfnAlarmModel.SimpleRuleProperty.getInputProperty()Sets the value ofCfnAlarmModel.SimpleRuleProperty.getThreshold()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
comparisonOperator
@Stability(Stable) public CfnAlarmModel.SimpleRuleProperty.Builder comparisonOperator(String comparisonOperator) Sets the value ofCfnAlarmModel.SimpleRuleProperty.getComparisonOperator()- Parameters:
comparisonOperator- The comparison operator. This parameter is required.- Returns:
this
-
inputProperty
@Stability(Stable) public CfnAlarmModel.SimpleRuleProperty.Builder inputProperty(String inputProperty) Sets the value ofCfnAlarmModel.SimpleRuleProperty.getInputProperty()- Parameters:
inputProperty- The value on the left side of the comparison operator. This parameter is required. You can specify an AWS IoT Events input attribute as an input property.- Returns:
this
-
threshold
Sets the value ofCfnAlarmModel.SimpleRuleProperty.getThreshold()- Parameters:
threshold- The value on the right side of the comparison operator. This parameter is required. You can enter a number or specify an AWS IoT Events input attribute.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlarmModel.SimpleRuleProperty>- Returns:
- a new instance of
CfnAlarmModel.SimpleRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-