Class CfnAlarmModel.AlarmRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnAlarmModel.AlarmRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarmModel.AlarmRuleProperty>
- Enclosing interface:
CfnAlarmModel.AlarmRuleProperty
@Stability(Stable)
public static final class CfnAlarmModel.AlarmRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarmModel.AlarmRuleProperty>
A builder for
CfnAlarmModel.AlarmRuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.simpleRule
(IResolvable simpleRule) Sets the value ofCfnAlarmModel.AlarmRuleProperty.getSimpleRule()
simpleRule
(CfnAlarmModel.SimpleRuleProperty simpleRule) Sets the value ofCfnAlarmModel.AlarmRuleProperty.getSimpleRule()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
simpleRule
@Stability(Stable) public CfnAlarmModel.AlarmRuleProperty.Builder simpleRule(IResolvable simpleRule) Sets the value ofCfnAlarmModel.AlarmRuleProperty.getSimpleRule()
- Parameters:
simpleRule
- A rule that compares an input property value to a threshold value with a comparison operator.- Returns:
this
-
simpleRule
@Stability(Stable) public CfnAlarmModel.AlarmRuleProperty.Builder simpleRule(CfnAlarmModel.SimpleRuleProperty simpleRule) Sets the value ofCfnAlarmModel.AlarmRuleProperty.getSimpleRule()
- Parameters:
simpleRule
- A rule that compares an input property value to a threshold value with a comparison operator.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAlarmModel.AlarmRuleProperty>
- Returns:
- a new instance of
CfnAlarmModel.AlarmRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-