@Stability(value=Stable) public static final class CfnAlarm.MetricProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnAlarm.MetricProperty>
CfnAlarm.MetricProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnAlarm.MetricProperty |
build()
Builds the configured instance.
|
CfnAlarm.MetricProperty.Builder |
dimensions(IResolvable dimensions)
Sets the value of
CfnAlarm.MetricProperty.getDimensions() |
CfnAlarm.MetricProperty.Builder |
dimensions(List<? extends Object> dimensions)
Sets the value of
CfnAlarm.MetricProperty.getDimensions() |
CfnAlarm.MetricProperty.Builder |
metricName(String metricName)
Sets the value of
CfnAlarm.MetricProperty.getMetricName() |
CfnAlarm.MetricProperty.Builder |
namespace(String namespace)
Sets the value of
CfnAlarm.MetricProperty.getNamespace() |
@Stability(value=Stable) public CfnAlarm.MetricProperty.Builder dimensions(IResolvable dimensions)
CfnAlarm.MetricProperty.getDimensions()dimensions - The metric dimensions that you want to be used for the metric that the alarm will watch.this@Stability(value=Stable) public CfnAlarm.MetricProperty.Builder dimensions(List<? extends Object> dimensions)
CfnAlarm.MetricProperty.getDimensions()dimensions - The metric dimensions that you want to be used for the metric that the alarm will watch.this@Stability(value=Stable) public CfnAlarm.MetricProperty.Builder metricName(String metricName)
CfnAlarm.MetricProperty.getMetricName()metricName - The name of the metric that you want the alarm to watch.
This is a required field.this@Stability(value=Stable) public CfnAlarm.MetricProperty.Builder namespace(String namespace)
CfnAlarm.MetricProperty.getNamespace()namespace - The namespace of the metric that the alarm will watch.this@Stability(value=Stable) public CfnAlarm.MetricProperty build()
build in interface software.amazon.jsii.Builder<CfnAlarm.MetricProperty>CfnAlarm.MetricPropertyNullPointerException - if any required attribute was not providedCopyright © 2023. All rights reserved.