Class MetricAlarmConfig.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.MetricAlarmConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MetricAlarmConfig>
- Enclosing interface:
- MetricAlarmConfig
@Stability(Deprecated)
@Deprecated
public static final class MetricAlarmConfig.Builder
extends Object
implements software.amazon.jsii.Builder<MetricAlarmConfig>
Deprecated.
A builder for
MetricAlarmConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated.dimensions
(List<? extends Dimension> dimensions) Deprecated.extendedStatistic
(String extendedStatistic) Deprecated.metricName
(String metricName) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
metricName
Deprecated.Sets the value ofMetricAlarmConfig.getMetricName()
- Parameters:
metricName
- Name of the metric. This parameter is required.- Returns:
this
-
namespace
Deprecated.Sets the value ofMetricAlarmConfig.getNamespace()
- Parameters:
namespace
- Namespace of the metric. This parameter is required.- Returns:
this
-
period
Deprecated.Sets the value ofMetricAlarmConfig.getPeriod()
- Parameters:
period
- How many seconds to aggregate over. This parameter is required.- Returns:
this
-
dimensions
@Stability(Deprecated) @Deprecated public MetricAlarmConfig.Builder dimensions(List<? extends Dimension> dimensions) Deprecated.Sets the value ofMetricAlarmConfig.getDimensions()
- Parameters:
dimensions
- The dimensions to apply to the alarm.- Returns:
this
-
extendedStatistic
@Stability(Deprecated) @Deprecated public MetricAlarmConfig.Builder extendedStatistic(String extendedStatistic) Deprecated.Sets the value ofMetricAlarmConfig.getExtendedStatistic()
- Parameters:
extendedStatistic
- Percentile aggregation function to use.- Returns:
this
-
statistic
Deprecated.Sets the value ofMetricAlarmConfig.getStatistic()
- Parameters:
statistic
- Simple aggregation function to use.- Returns:
this
-
unit
Deprecated.Sets the value ofMetricAlarmConfig.getUnit()
- Parameters:
unit
- The unit of the alarm.- Returns:
this
-
build
Deprecated.Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<MetricAlarmConfig>
- Returns:
- a new instance of
MetricAlarmConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-