Class CfnAnomalyDetector.MetricProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lookoutmetrics.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 TypeMethodDescriptionaggregationFunction(String aggregationFunction) Sets the value ofCfnAnomalyDetector.MetricProperty.getAggregationFunction()build()Builds the configured instance.metricName(String metricName) Sets the value ofCfnAnomalyDetector.MetricProperty.getMetricName()Sets the value ofCfnAnomalyDetector.MetricProperty.getNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aggregationFunction
@Stability(Stable) public CfnAnomalyDetector.MetricProperty.Builder aggregationFunction(String aggregationFunction) Sets the value ofCfnAnomalyDetector.MetricProperty.getAggregationFunction()- Parameters:
aggregationFunction- The function with which the metric is calculated. This parameter is required.- Returns:
this
-
metricName
Sets the value ofCfnAnomalyDetector.MetricProperty.getMetricName()- Parameters:
metricName- The name of the metric. This parameter is required.- Returns:
this
-
namespace
Sets the value ofCfnAnomalyDetector.MetricProperty.getNamespace()- Parameters:
namespace- The namespace 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
-