@Stability(value=Experimental) public static final class MetricStatConfig.Builder extends Object implements software.amazon.jsii.Builder<MetricStatConfig>
MetricStatConfig| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
MetricStatConfig.Builder |
account(String account)
Sets the value of
MetricStatConfig.getAccount() |
MetricStatConfig |
build()
Builds the configured instance.
|
MetricStatConfig.Builder |
dimensions(List<? extends Dimension> dimensions)
Sets the value of
MetricStatConfig.getDimensions() |
MetricStatConfig.Builder |
metricName(String metricName)
Sets the value of
MetricStatConfig.getMetricName() |
MetricStatConfig.Builder |
namespace(String namespace)
Sets the value of
MetricStatConfig.getNamespace() |
MetricStatConfig.Builder |
period(Duration period)
Sets the value of
MetricStatConfig.getPeriod() |
MetricStatConfig.Builder |
region(String region)
Sets the value of
MetricStatConfig.getRegion() |
MetricStatConfig.Builder |
statistic(String statistic)
Sets the value of
MetricStatConfig.getStatistic() |
MetricStatConfig.Builder |
unitFilter(Unit unitFilter)
Sets the value of
MetricStatConfig.getUnitFilter() |
@Stability(value=Experimental) public MetricStatConfig.Builder metricName(String metricName)
MetricStatConfig.getMetricName()metricName - Name of the metric. This parameter is required.this@Stability(value=Experimental) public MetricStatConfig.Builder namespace(String namespace)
MetricStatConfig.getNamespace()namespace - Namespace of the metric. This parameter is required.this@Stability(value=Experimental) public MetricStatConfig.Builder period(Duration period)
MetricStatConfig.getPeriod()period - How many seconds to aggregate over. This parameter is required.this@Stability(value=Experimental) public MetricStatConfig.Builder statistic(String statistic)
MetricStatConfig.getStatistic()statistic - Aggregation function to use (can be either simple or a percentile). This parameter is required.this@Stability(value=Experimental) public MetricStatConfig.Builder account(String account)
MetricStatConfig.getAccount()account - Account which this metric comes from.this@Stability(value=Experimental) public MetricStatConfig.Builder dimensions(List<? extends Dimension> dimensions)
MetricStatConfig.getDimensions()dimensions - The dimensions to apply to the alarm.this@Stability(value=Experimental) public MetricStatConfig.Builder region(String region)
MetricStatConfig.getRegion()region - Region which this metric comes from.this@Stability(value=Experimental) public MetricStatConfig.Builder unitFilter(Unit unitFilter)
MetricStatConfig.getUnitFilter()unitFilter - Unit used to filter the metric stream.
Only refer to datums emitted to the metric stream with the given unit and
ignore all others. Only useful when datums are being emitted to the same
metric stream under different units.
This field has been renamed from plain unit to clearly communicate
its purpose.
this@Stability(value=Experimental) public MetricStatConfig build()
build in interface software.amazon.jsii.Builder<MetricStatConfig>MetricStatConfigNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.