@Stability(value=Stable) public static final class CfnAlarm.MetricStatProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnAlarm.MetricStatProperty>
CfnAlarm.MetricStatProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnAlarm.MetricStatProperty |
build()
Builds the configured instance.
|
CfnAlarm.MetricStatProperty.Builder |
metric(CfnAlarm.MetricProperty metric)
Sets the value of
CfnAlarm.MetricStatProperty.getMetric() |
CfnAlarm.MetricStatProperty.Builder |
metric(IResolvable metric)
Sets the value of
CfnAlarm.MetricStatProperty.getMetric() |
CfnAlarm.MetricStatProperty.Builder |
period(Number period)
Sets the value of
CfnAlarm.MetricStatProperty.getPeriod() |
CfnAlarm.MetricStatProperty.Builder |
stat(String stat)
Sets the value of
CfnAlarm.MetricStatProperty.getStat() |
CfnAlarm.MetricStatProperty.Builder |
unit(String unit)
Sets the value of
CfnAlarm.MetricStatProperty.getUnit() |
@Stability(value=Stable) public CfnAlarm.MetricStatProperty.Builder metric(CfnAlarm.MetricProperty metric)
CfnAlarm.MetricStatProperty.getMetric()metric - `CfnAlarm.MetricStatProperty.Metric`. This parameter is required.this@Stability(value=Stable) public CfnAlarm.MetricStatProperty.Builder metric(IResolvable metric)
CfnAlarm.MetricStatProperty.getMetric()metric - `CfnAlarm.MetricStatProperty.Metric`. This parameter is required.this@Stability(value=Stable) public CfnAlarm.MetricStatProperty.Builder period(Number period)
CfnAlarm.MetricStatProperty.getPeriod()period - `CfnAlarm.MetricStatProperty.Period`. This parameter is required.this@Stability(value=Stable) public CfnAlarm.MetricStatProperty.Builder stat(String stat)
CfnAlarm.MetricStatProperty.getStat()stat - `CfnAlarm.MetricStatProperty.Stat`. This parameter is required.this@Stability(value=Stable) public CfnAlarm.MetricStatProperty.Builder unit(String unit)
CfnAlarm.MetricStatProperty.getUnit()unit - `CfnAlarm.MetricStatProperty.Unit`.this@Stability(value=Stable) public CfnAlarm.MetricStatProperty build()
build in interface software.amazon.jsii.Builder<CfnAlarm.MetricStatProperty>CfnAlarm.MetricStatPropertyNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.