Class CfnApplication.AlarmProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationinsights.CfnApplication.AlarmProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.AlarmProperty>
- Enclosing interface:
CfnApplication.AlarmProperty
@Stability(Stable)
public static final class CfnApplication.AlarmProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.AlarmProperty>
A builder for
CfnApplication.AlarmProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnApplication.AlarmProperty.getAlarmName()
build()
Builds the configured instance.Sets the value ofCfnApplication.AlarmProperty.getSeverity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alarmName
Sets the value ofCfnApplication.AlarmProperty.getAlarmName()
- Parameters:
alarmName
- The name of the CloudWatch alarm to be monitored for the component. This parameter is required.- Returns:
this
-
severity
Sets the value ofCfnApplication.AlarmProperty.getSeverity()
- Parameters:
severity
- Indicates the degree of outage when the alarm goes off.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.AlarmProperty>
- Returns:
- a new instance of
CfnApplication.AlarmProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-