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