Class CfnAlarmModelProps.Builder
java.lang.Object
software.amazon.awscdk.services.iotevents.CfnAlarmModelProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarmModelProps>
- Enclosing interface:
- CfnAlarmModelProps
@Stability(Stable)
public static final class CfnAlarmModelProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarmModelProps>
A builder for
CfnAlarmModelProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalarmCapabilities
(IResolvable alarmCapabilities) Sets the value ofCfnAlarmModelProps.getAlarmCapabilities()
alarmCapabilities
(CfnAlarmModel.AlarmCapabilitiesProperty alarmCapabilities) Sets the value ofCfnAlarmModelProps.getAlarmCapabilities()
alarmEventActions
(IResolvable alarmEventActions) Sets the value ofCfnAlarmModelProps.getAlarmEventActions()
alarmEventActions
(CfnAlarmModel.AlarmEventActionsProperty alarmEventActions) Sets the value ofCfnAlarmModelProps.getAlarmEventActions()
alarmModelDescription
(String alarmModelDescription) Sets the value ofCfnAlarmModelProps.getAlarmModelDescription()
alarmModelName
(String alarmModelName) Sets the value ofCfnAlarmModelProps.getAlarmModelName()
alarmRule
(IResolvable alarmRule) Sets the value ofCfnAlarmModelProps.getAlarmRule()
alarmRule
(CfnAlarmModel.AlarmRuleProperty alarmRule) Sets the value ofCfnAlarmModelProps.getAlarmRule()
build()
Builds the configured instance.Sets the value ofCfnAlarmModelProps.getKey()
Sets the value ofCfnAlarmModelProps.getRoleArn()
Sets the value ofCfnAlarmModelProps.getSeverity()
Sets the value ofCfnAlarmModelProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarmRule
@Stability(Stable) public CfnAlarmModelProps.Builder alarmRule(CfnAlarmModel.AlarmRuleProperty alarmRule) Sets the value ofCfnAlarmModelProps.getAlarmRule()
- Parameters:
alarmRule
- Defines when your alarm is invoked. This parameter is required.- Returns:
this
-
alarmRule
Sets the value ofCfnAlarmModelProps.getAlarmRule()
- Parameters:
alarmRule
- Defines when your alarm is invoked. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnAlarmModelProps.getRoleArn()
- Parameters:
roleArn
- The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. This parameter is required. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference .- Returns:
this
-
alarmCapabilities
@Stability(Stable) public CfnAlarmModelProps.Builder alarmCapabilities(IResolvable alarmCapabilities) Sets the value ofCfnAlarmModelProps.getAlarmCapabilities()
- Parameters:
alarmCapabilities
- Contains the configuration information of alarm state changes.- Returns:
this
-
alarmCapabilities
@Stability(Stable) public CfnAlarmModelProps.Builder alarmCapabilities(CfnAlarmModel.AlarmCapabilitiesProperty alarmCapabilities) Sets the value ofCfnAlarmModelProps.getAlarmCapabilities()
- Parameters:
alarmCapabilities
- Contains the configuration information of alarm state changes.- Returns:
this
-
alarmEventActions
@Stability(Stable) public CfnAlarmModelProps.Builder alarmEventActions(IResolvable alarmEventActions) Sets the value ofCfnAlarmModelProps.getAlarmEventActions()
- Parameters:
alarmEventActions
- Contains information about one or more alarm actions.- Returns:
this
-
alarmEventActions
@Stability(Stable) public CfnAlarmModelProps.Builder alarmEventActions(CfnAlarmModel.AlarmEventActionsProperty alarmEventActions) Sets the value ofCfnAlarmModelProps.getAlarmEventActions()
- Parameters:
alarmEventActions
- Contains information about one or more alarm actions.- Returns:
this
-
alarmModelDescription
@Stability(Stable) public CfnAlarmModelProps.Builder alarmModelDescription(String alarmModelDescription) Sets the value ofCfnAlarmModelProps.getAlarmModelDescription()
- Parameters:
alarmModelDescription
- The description of the alarm model.- Returns:
this
-
alarmModelName
Sets the value ofCfnAlarmModelProps.getAlarmModelName()
- Parameters:
alarmModelName
- The name of the alarm model.- Returns:
this
-
key
Sets the value ofCfnAlarmModelProps.getKey()
- Parameters:
key
- An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this key to the alarm.- Returns:
this
-
severity
Sets the value ofCfnAlarmModelProps.getSeverity()
- Parameters:
severity
- A non-negative integer that reflects the severity level of the alarm.- Returns:
this
-
tags
Sets the value ofCfnAlarmModelProps.getTags()
- Parameters:
tags
- A list of key-value pairs that contain metadata for the alarm model. The tags help you manage the alarm model. For more information, see Tagging your AWS IoT Events resources in the AWS IoT Events Developer Guide .You can create up to 50 tags for one alarm model.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAlarmModelProps>
- Returns:
- a new instance of
CfnAlarmModelProps
- Throws:
NullPointerException
- if any required attribute was not provided
-