public static final class CfnAnomalyDetector.MetricProperty.Builder
extends java.lang.Object
CfnAnomalyDetector.MetricProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnAnomalyDetector.MetricProperty.Builder |
aggregationFunction(java.lang.String aggregationFunction)
Sets the value of
CfnAnomalyDetector.MetricProperty.getAggregationFunction() |
CfnAnomalyDetector.MetricProperty |
build()
Builds the configured instance.
|
CfnAnomalyDetector.MetricProperty.Builder |
metricName(java.lang.String metricName)
Sets the value of
CfnAnomalyDetector.MetricProperty.getMetricName() |
CfnAnomalyDetector.MetricProperty.Builder |
namespace(java.lang.String namespace)
Sets the value of
CfnAnomalyDetector.MetricProperty.getNamespace() |
public CfnAnomalyDetector.MetricProperty.Builder aggregationFunction(java.lang.String aggregationFunction)
CfnAnomalyDetector.MetricProperty.getAggregationFunction()
aggregationFunction
- The function with which the metric is calculated. This parameter is required.this
public CfnAnomalyDetector.MetricProperty.Builder metricName(java.lang.String metricName)
CfnAnomalyDetector.MetricProperty.getMetricName()
metricName
- The name of the metric. This parameter is required.this
public CfnAnomalyDetector.MetricProperty.Builder namespace(java.lang.String namespace)
CfnAnomalyDetector.MetricProperty.getNamespace()
namespace
- The namespace for the metric.this
public CfnAnomalyDetector.MetricProperty build()
CfnAnomalyDetector.MetricProperty
java.lang.NullPointerException
- if any required attribute was not provided