Interface SingleMetricAnomalyDetector.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<SingleMetricAnomalyDetector.Builder,SingleMetricAnomalyDetector>
,SdkBuilder<SingleMetricAnomalyDetector.Builder,SingleMetricAnomalyDetector>
,SdkPojo
- Enclosing class:
- SingleMetricAnomalyDetector
public static interface SingleMetricAnomalyDetector.Builder extends SdkPojo, CopyableBuilder<SingleMetricAnomalyDetector.Builder,SingleMetricAnomalyDetector>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SingleMetricAnomalyDetector.Builder
dimensions(Collection<Dimension> dimensions)
The metric dimensions to create the anomaly detection model for.SingleMetricAnomalyDetector.Builder
dimensions(Consumer<Dimension.Builder>... dimensions)
The metric dimensions to create the anomaly detection model for.SingleMetricAnomalyDetector.Builder
dimensions(Dimension... dimensions)
The metric dimensions to create the anomaly detection model for.SingleMetricAnomalyDetector.Builder
metricName(String metricName)
The name of the metric to create the anomaly detection model for.SingleMetricAnomalyDetector.Builder
namespace(String namespace)
The namespace of the metric to create the anomaly detection model for.SingleMetricAnomalyDetector.Builder
stat(String stat)
The statistic to use for the metric and anomaly detection model.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
namespace
SingleMetricAnomalyDetector.Builder namespace(String namespace)
The namespace of the metric to create the anomaly detection model for.
- Parameters:
namespace
- The namespace of the metric to create the anomaly detection model for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
SingleMetricAnomalyDetector.Builder metricName(String metricName)
The name of the metric to create the anomaly detection model for.
- Parameters:
metricName
- The name of the metric to create the anomaly detection model for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
SingleMetricAnomalyDetector.Builder dimensions(Collection<Dimension> dimensions)
The metric dimensions to create the anomaly detection model for.
- Parameters:
dimensions
- The metric dimensions to create the anomaly detection model for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
SingleMetricAnomalyDetector.Builder dimensions(Dimension... dimensions)
The metric dimensions to create the anomaly detection model for.
- Parameters:
dimensions
- The metric dimensions to create the anomaly detection model for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
SingleMetricAnomalyDetector.Builder dimensions(Consumer<Dimension.Builder>... dimensions)
The metric dimensions to create the anomaly detection model for.
This is a convenience method that creates an instance of theDimension.Builder
avoiding the need to create one manually viaDimension.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#dimensions(List
.) - Parameters:
dimensions
- a consumer that will call methods onDimension.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#dimensions(java.util.Collection
)
-
stat
SingleMetricAnomalyDetector.Builder stat(String stat)
The statistic to use for the metric and anomaly detection model.
- Parameters:
stat
- The statistic to use for the metric and anomaly detection model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-