Class CfnAnomalyDetectorPropsMixin.MetricProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lookoutmetrics.CfnAnomalyDetectorPropsMixin.MetricProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyDetectorPropsMixin.MetricProperty>
- Enclosing interface:
CfnAnomalyDetectorPropsMixin.MetricProperty
@Stability(Stable)
public static final class CfnAnomalyDetectorPropsMixin.MetricProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyDetectorPropsMixin.MetricProperty>
A builder for
CfnAnomalyDetectorPropsMixin.MetricProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregationFunction(String aggregationFunction) Sets the value ofCfnAnomalyDetectorPropsMixin.MetricProperty.getAggregationFunction()build()Builds the configured instance.metricName(String metricName) Sets the value ofCfnAnomalyDetectorPropsMixin.MetricProperty.getMetricName()Sets the value ofCfnAnomalyDetectorPropsMixin.MetricProperty.getNamespace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aggregationFunction
@Stability(Stable) public CfnAnomalyDetectorPropsMixin.MetricProperty.Builder aggregationFunction(String aggregationFunction) Sets the value ofCfnAnomalyDetectorPropsMixin.MetricProperty.getAggregationFunction()- Parameters:
aggregationFunction- The function with which the metric is calculated.- Returns:
this
-
metricName
@Stability(Stable) public CfnAnomalyDetectorPropsMixin.MetricProperty.Builder metricName(String metricName) Sets the value ofCfnAnomalyDetectorPropsMixin.MetricProperty.getMetricName()- Parameters:
metricName- The name of the metric.- Returns:
this
-
namespace
@Stability(Stable) public CfnAnomalyDetectorPropsMixin.MetricProperty.Builder namespace(String namespace) Sets the value ofCfnAnomalyDetectorPropsMixin.MetricProperty.getNamespace()- Parameters:
namespace- The namespace for the metric.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalyDetectorPropsMixin.MetricProperty>- Returns:
- a new instance of
CfnAnomalyDetectorPropsMixin.MetricProperty - Throws:
NullPointerException- if any required attribute was not provided
-