Class CfnTopicRule.CloudwatchAlarmActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRule.CloudwatchAlarmActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRule.CloudwatchAlarmActionProperty>
- Enclosing interface:
CfnTopicRule.CloudwatchAlarmActionProperty
@Stability(Stable)
public static final class CfnTopicRule.CloudwatchAlarmActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRule.CloudwatchAlarmActionProperty>
A builder for
CfnTopicRule.CloudwatchAlarmActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnTopicRule.CloudwatchAlarmActionProperty.getAlarmName()
build()
Builds the configured instance.Sets the value ofCfnTopicRule.CloudwatchAlarmActionProperty.getRoleArn()
stateReason
(String stateReason) Sets the value ofCfnTopicRule.CloudwatchAlarmActionProperty.getStateReason()
stateValue
(String stateValue) Sets the value ofCfnTopicRule.CloudwatchAlarmActionProperty.getStateValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarmName
@Stability(Stable) public CfnTopicRule.CloudwatchAlarmActionProperty.Builder alarmName(String alarmName) Sets the value ofCfnTopicRule.CloudwatchAlarmActionProperty.getAlarmName()
- Parameters:
alarmName
- The CloudWatch alarm name. This parameter is required.- Returns:
this
-
roleArn
@Stability(Stable) public CfnTopicRule.CloudwatchAlarmActionProperty.Builder roleArn(String roleArn) Sets the value ofCfnTopicRule.CloudwatchAlarmActionProperty.getRoleArn()
- Parameters:
roleArn
- The IAM role that allows access to the CloudWatch alarm. This parameter is required.- Returns:
this
-
stateReason
@Stability(Stable) public CfnTopicRule.CloudwatchAlarmActionProperty.Builder stateReason(String stateReason) Sets the value ofCfnTopicRule.CloudwatchAlarmActionProperty.getStateReason()
- Parameters:
stateReason
- The reason for the alarm change. This parameter is required.- Returns:
this
-
stateValue
@Stability(Stable) public CfnTopicRule.CloudwatchAlarmActionProperty.Builder stateValue(String stateValue) Sets the value ofCfnTopicRule.CloudwatchAlarmActionProperty.getStateValue()
- Parameters:
stateValue
- The value of the alarm state. This parameter is required. Acceptable values are: OK, ALARM, INSUFFICIENT_DATA.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopicRule.CloudwatchAlarmActionProperty>
- Returns:
- a new instance of
CfnTopicRule.CloudwatchAlarmActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-