Class CfnAnomalyDetector.MetricProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.MetricProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetector.MetricProperty>
- Enclosing interface:
CfnAnomalyDetector.MetricProperty
@Stability(Stable)
public static final class CfnAnomalyDetector.MetricProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetector.MetricProperty>
A builder for
CfnAnomalyDetector.MetricProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dimensions(List<? extends Object> dimensions) Sets the value ofCfnAnomalyDetector.MetricProperty.getDimensions()dimensions(IResolvable dimensions) Sets the value ofCfnAnomalyDetector.MetricProperty.getDimensions()metricName(String metricName) Sets the value ofCfnAnomalyDetector.MetricProperty.getMetricName()Sets the value ofCfnAnomalyDetector.MetricProperty.getNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricName
Sets the value ofCfnAnomalyDetector.MetricProperty.getMetricName()- Parameters:
metricName- The name of the metric. This parameter is required. This is a required field.- Returns:
this
-
namespace
Sets the value ofCfnAnomalyDetector.MetricProperty.getNamespace()- Parameters:
namespace- The namespace of the metric. This parameter is required.- Returns:
this
-
dimensions
@Stability(Stable) public CfnAnomalyDetector.MetricProperty.Builder dimensions(IResolvable dimensions) Sets the value ofCfnAnomalyDetector.MetricProperty.getDimensions()- Parameters:
dimensions- The dimensions for the metric.- Returns:
this
-
dimensions
@Stability(Stable) public CfnAnomalyDetector.MetricProperty.Builder dimensions(List<? extends Object> dimensions) Sets the value ofCfnAnomalyDetector.MetricProperty.getDimensions()- Parameters:
dimensions- The dimensions for the metric.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetector.MetricProperty>- Returns:
- a new instance of
CfnAnomalyDetector.MetricProperty - Throws:
NullPointerException- if any required attribute was not provided
-