Class CfnAnomalyDetector.MetricMathAnomalyDetectorProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.CfnAnomalyDetector.MetricMathAnomalyDetectorProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetector.MetricMathAnomalyDetectorProperty>
- Enclosing interface:
CfnAnomalyDetector.MetricMathAnomalyDetectorProperty
@Stability(Stable)
public static final class CfnAnomalyDetector.MetricMathAnomalyDetectorProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetector.MetricMathAnomalyDetectorProperty>
A builder for
CfnAnomalyDetector.MetricMathAnomalyDetectorProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.metricDataQueries
(List<? extends Object> metricDataQueries) metricDataQueries
(IResolvable metricDataQueries)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricDataQueries
@Stability(Stable) public CfnAnomalyDetector.MetricMathAnomalyDetectorProperty.Builder metricDataQueries(IResolvable metricDataQueries) - Parameters:
metricDataQueries
- An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression. Each item inMetricDataQueries
gets a metric or performs a math expression. One item inMetricDataQueries
is the expression that provides the time series that the anomaly detector uses as input. Designate the expression by settingReturnData
totrue
for this object in the array. For all other expressions and metrics, setReturnData
tofalse
. The designated expression must return a single time series.- Returns:
this
-
metricDataQueries
@Stability(Stable) public CfnAnomalyDetector.MetricMathAnomalyDetectorProperty.Builder metricDataQueries(List<? extends Object> metricDataQueries) - Parameters:
metricDataQueries
- An array of metric data query structures that enables you to create an anomaly detector based on the result of a metric math expression. Each item inMetricDataQueries
gets a metric or performs a math expression. One item inMetricDataQueries
is the expression that provides the time series that the anomaly detector uses as input. Designate the expression by settingReturnData
totrue
for this object in the array. For all other expressions and metrics, setReturnData
tofalse
. The designated expression must return a single time series.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetector.MetricMathAnomalyDetectorProperty>
- Returns:
- a new instance of
CfnAnomalyDetector.MetricMathAnomalyDetectorProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-