Class CfnAlarmModelMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iotevents.CfnAlarmModelMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarmModelMixinProps>
- Enclosing interface:
CfnAlarmModelMixinProps
@Stability(Stable)
public static final class CfnAlarmModelMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarmModelMixinProps>
A builder for
CfnAlarmModelMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalarmCapabilities(CfnAlarmModelPropsMixin.AlarmCapabilitiesProperty alarmCapabilities) Sets the value ofCfnAlarmModelMixinProps.getAlarmCapabilities()alarmCapabilities(IResolvable alarmCapabilities) Sets the value ofCfnAlarmModelMixinProps.getAlarmCapabilities()alarmEventActions(CfnAlarmModelPropsMixin.AlarmEventActionsProperty alarmEventActions) Sets the value ofCfnAlarmModelMixinProps.getAlarmEventActions()alarmEventActions(IResolvable alarmEventActions) Sets the value ofCfnAlarmModelMixinProps.getAlarmEventActions()alarmModelDescription(String alarmModelDescription) Sets the value ofCfnAlarmModelMixinProps.getAlarmModelDescription()alarmModelName(String alarmModelName) Sets the value ofCfnAlarmModelMixinProps.getAlarmModelName()Sets the value ofCfnAlarmModelMixinProps.getAlarmRule()alarmRule(IResolvable alarmRule) Sets the value ofCfnAlarmModelMixinProps.getAlarmRule()build()Builds the configured instance.Sets the value ofCfnAlarmModelMixinProps.getKey()Sets the value ofCfnAlarmModelMixinProps.getRoleArn()Sets the value ofCfnAlarmModelMixinProps.getSeverity()Sets the value ofCfnAlarmModelMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarmCapabilities
@Stability(Stable) public CfnAlarmModelMixinProps.Builder alarmCapabilities(IResolvable alarmCapabilities) Sets the value ofCfnAlarmModelMixinProps.getAlarmCapabilities()- Parameters:
alarmCapabilities- Contains the configuration information of alarm state changes.- Returns:
this
-
alarmCapabilities
@Stability(Stable) public CfnAlarmModelMixinProps.Builder alarmCapabilities(CfnAlarmModelPropsMixin.AlarmCapabilitiesProperty alarmCapabilities) Sets the value ofCfnAlarmModelMixinProps.getAlarmCapabilities()- Parameters:
alarmCapabilities- Contains the configuration information of alarm state changes.- Returns:
this
-
alarmEventActions
@Stability(Stable) public CfnAlarmModelMixinProps.Builder alarmEventActions(IResolvable alarmEventActions) Sets the value ofCfnAlarmModelMixinProps.getAlarmEventActions()- Parameters:
alarmEventActions- Contains information about one or more alarm actions.- Returns:
this
-
alarmEventActions
@Stability(Stable) public CfnAlarmModelMixinProps.Builder alarmEventActions(CfnAlarmModelPropsMixin.AlarmEventActionsProperty alarmEventActions) Sets the value ofCfnAlarmModelMixinProps.getAlarmEventActions()- Parameters:
alarmEventActions- Contains information about one or more alarm actions.- Returns:
this
-
alarmModelDescription
@Stability(Stable) public CfnAlarmModelMixinProps.Builder alarmModelDescription(String alarmModelDescription) Sets the value ofCfnAlarmModelMixinProps.getAlarmModelDescription()- Parameters:
alarmModelDescription- The description of the alarm model.- Returns:
this
-
alarmModelName
Sets the value ofCfnAlarmModelMixinProps.getAlarmModelName()- Parameters:
alarmModelName- The name of the alarm model.- Returns:
this
-
alarmRule
Sets the value ofCfnAlarmModelMixinProps.getAlarmRule()- Parameters:
alarmRule- Defines when your alarm is invoked.- Returns:
this
-
alarmRule
@Stability(Stable) public CfnAlarmModelMixinProps.Builder alarmRule(CfnAlarmModelPropsMixin.AlarmRuleProperty alarmRule) Sets the value ofCfnAlarmModelMixinProps.getAlarmRule()- Parameters:
alarmRule- Defines when your alarm is invoked.- Returns:
this
-
key
Sets the value ofCfnAlarmModelMixinProps.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
-
roleArn
Sets the value ofCfnAlarmModelMixinProps.getRoleArn()- Parameters:
roleArn- The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference .- Returns:
this
-
severity
Sets the value ofCfnAlarmModelMixinProps.getSeverity()- Parameters:
severity- A non-negative integer that reflects the severity level of the alarm.- Returns:
this
-
tags
Sets the value ofCfnAlarmModelMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlarmModelMixinProps>- Returns:
- a new instance of
CfnAlarmModelMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-