Class CfnAlarm.DimensionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnAlarm.DimensionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlarm.DimensionProperty>
- Enclosing interface:
CfnAlarm.DimensionProperty
@Stability(Stable)
public static final class CfnAlarm.DimensionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlarm.DimensionProperty>
A builder for
CfnAlarm.DimensionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnAlarm.DimensionProperty.getName()
Sets the value ofCfnAlarm.DimensionProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnAlarm.DimensionProperty.getName()
- Parameters:
name
- The name of the dimension, from 1–255 characters in length. This parameter is required. This dimension name must have been included when the metric was published.- Returns:
this
-
value
Sets the value ofCfnAlarm.DimensionProperty.getValue()
- Parameters:
value
- The value for the dimension, from 1–255 characters in length. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAlarm.DimensionProperty>
- Returns:
- a new instance of
CfnAlarm.DimensionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-