Class CfnAnomalyDetectorPropsMixin.MetricMathAnomalyDetectorProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudwatch.CfnAnomalyDetectorPropsMixin.MetricMathAnomalyDetectorProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetectorPropsMixin.MetricMathAnomalyDetectorProperty>
- Enclosing interface:
CfnAnomalyDetectorPropsMixin.MetricMathAnomalyDetectorProperty
@Stability(Stable)
public static final class CfnAnomalyDetectorPropsMixin.MetricMathAnomalyDetectorProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetectorPropsMixin.MetricMathAnomalyDetectorProperty>
-
Constructor Summary
Constructors -
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 CfnAnomalyDetectorPropsMixin.MetricMathAnomalyDetectorProperty.Builder metricDataQueries(IResolvable metricDataQueries) Sets the value ofCfnAnomalyDetectorPropsMixin.MetricMathAnomalyDetectorProperty.getMetricDataQueries()- 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 inMetricDataQueriesgets a metric or performs a math expression. One item inMetricDataQueriesis the expression that provides the time series that the anomaly detector uses as input. Designate the expression by settingReturnDatatotruefor this object in the array. For all other expressions and metrics, setReturnDatatofalse. The designated expression must return a single time series.- Returns:
this
-
metricDataQueries
@Stability(Stable) public CfnAnomalyDetectorPropsMixin.MetricMathAnomalyDetectorProperty.Builder metricDataQueries(List<? extends Object> metricDataQueries) Sets the value ofCfnAnomalyDetectorPropsMixin.MetricMathAnomalyDetectorProperty.getMetricDataQueries()- 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 inMetricDataQueriesgets a metric or performs a math expression. One item inMetricDataQueriesis the expression that provides the time series that the anomaly detector uses as input. Designate the expression by settingReturnDatatotruefor this object in the array. For all other expressions and metrics, setReturnDatatofalse. The designated expression must return a single time series.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetectorPropsMixin.MetricMathAnomalyDetectorProperty>- Returns:
- a new instance of
CfnAnomalyDetectorPropsMixin.MetricMathAnomalyDetectorProperty - Throws:
NullPointerException- if any required attribute was not provided
-