Interface AnomalyDetector.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AnomalyDetector.Builder,
,AnomalyDetector> SdkBuilder<AnomalyDetector.Builder,
,AnomalyDetector> SdkPojo
- Enclosing class:
AnomalyDetector
-
Method Summary
Modifier and TypeMethodDescriptiondefault AnomalyDetector.Builder
configuration
(Consumer<AnomalyDetectorConfiguration.Builder> configuration) The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude from use for training the model, and the time zone to use for the metric.configuration
(AnomalyDetectorConfiguration configuration) The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude from use for training the model, and the time zone to use for the metric.dimensions
(Collection<Dimension> dimensions) Deprecated.Use SingleMetricAnomalyDetector.Dimensions property.dimensions
(Consumer<Dimension.Builder>... dimensions) Deprecated.Use SingleMetricAnomalyDetector.Dimensions property.dimensions
(Dimension... dimensions) Deprecated.Use SingleMetricAnomalyDetector.Dimensions property.default AnomalyDetector.Builder
metricMathAnomalyDetector
(Consumer<MetricMathAnomalyDetector.Builder> metricMathAnomalyDetector) The CloudWatch metric math expression for this anomaly detector.metricMathAnomalyDetector
(MetricMathAnomalyDetector metricMathAnomalyDetector) The CloudWatch metric math expression for this anomaly detector.metricName
(String metricName) Deprecated.Use SingleMetricAnomalyDetector.MetricName property.Deprecated.Use SingleMetricAnomalyDetector.Namespace property.default AnomalyDetector.Builder
singleMetricAnomalyDetector
(Consumer<SingleMetricAnomalyDetector.Builder> singleMetricAnomalyDetector) The CloudWatch metric and statistic for this anomaly detector.singleMetricAnomalyDetector
(SingleMetricAnomalyDetector singleMetricAnomalyDetector) The CloudWatch metric and statistic for this anomaly detector.Deprecated.Use SingleMetricAnomalyDetector.Stat property.stateValue
(String stateValue) The current status of the anomaly detector's training.stateValue
(AnomalyDetectorStateValue stateValue) The current status of the anomaly detector's training.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 Details
-
namespace
Deprecated.Use SingleMetricAnomalyDetector.Namespace property.The namespace of the metric associated with the anomaly detection model.
- Parameters:
namespace
- The namespace of the metric associated with the anomaly detection model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricName
Deprecated.Use SingleMetricAnomalyDetector.MetricName property.The name of the metric associated with the anomaly detection model.
- Parameters:
metricName
- The name of the metric associated with the anomaly detection model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Deprecated.Use SingleMetricAnomalyDetector.Dimensions property.The metric dimensions associated with the anomaly detection model.
- Parameters:
dimensions
- The metric dimensions associated with the anomaly detection model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Deprecated.Use SingleMetricAnomalyDetector.Dimensions property.The metric dimensions associated with the anomaly detection model.
- Parameters:
dimensions
- The metric dimensions associated with the anomaly detection model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
Deprecated.Use SingleMetricAnomalyDetector.Dimensions property.The metric dimensions associated with the anomaly detection model.
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 todimensions(List<Dimension>)
.- 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:
-
stat
Deprecated.Use SingleMetricAnomalyDetector.Stat property.The statistic associated with the anomaly detection model.
- Parameters:
stat
- The statistic associated with the anomaly detection model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude from use for training the model, and the time zone to use for the metric.
- Parameters:
configuration
- The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude from use for training the model, and the time zone to use for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default AnomalyDetector.Builder configuration(Consumer<AnomalyDetectorConfiguration.Builder> configuration) The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude from use for training the model, and the time zone to use for the metric.
This is a convenience method that creates an instance of theAnomalyDetectorConfiguration.Builder
avoiding the need to create one manually viaAnomalyDetectorConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfiguration(AnomalyDetectorConfiguration)
.- Parameters:
configuration
- a consumer that will call methods onAnomalyDetectorConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stateValue
The current status of the anomaly detector's training. The possible values are
TRAINED | PENDING_TRAINING | TRAINED_INSUFFICIENT_DATA
- Parameters:
stateValue
- The current status of the anomaly detector's training. The possible values areTRAINED | PENDING_TRAINING | TRAINED_INSUFFICIENT_DATA
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stateValue
The current status of the anomaly detector's training. The possible values are
TRAINED | PENDING_TRAINING | TRAINED_INSUFFICIENT_DATA
- Parameters:
stateValue
- The current status of the anomaly detector's training. The possible values areTRAINED | PENDING_TRAINING | TRAINED_INSUFFICIENT_DATA
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
singleMetricAnomalyDetector
AnomalyDetector.Builder singleMetricAnomalyDetector(SingleMetricAnomalyDetector singleMetricAnomalyDetector) The CloudWatch metric and statistic for this anomaly detector.
- Parameters:
singleMetricAnomalyDetector
- The CloudWatch metric and statistic for this anomaly detector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
singleMetricAnomalyDetector
default AnomalyDetector.Builder singleMetricAnomalyDetector(Consumer<SingleMetricAnomalyDetector.Builder> singleMetricAnomalyDetector) The CloudWatch metric and statistic for this anomaly detector.
This is a convenience method that creates an instance of theSingleMetricAnomalyDetector.Builder
avoiding the need to create one manually viaSingleMetricAnomalyDetector.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosingleMetricAnomalyDetector(SingleMetricAnomalyDetector)
.- Parameters:
singleMetricAnomalyDetector
- a consumer that will call methods onSingleMetricAnomalyDetector.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricMathAnomalyDetector
AnomalyDetector.Builder metricMathAnomalyDetector(MetricMathAnomalyDetector metricMathAnomalyDetector) The CloudWatch metric math expression for this anomaly detector.
- Parameters:
metricMathAnomalyDetector
- The CloudWatch metric math expression for this anomaly detector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricMathAnomalyDetector
default AnomalyDetector.Builder metricMathAnomalyDetector(Consumer<MetricMathAnomalyDetector.Builder> metricMathAnomalyDetector) The CloudWatch metric math expression for this anomaly detector.
This is a convenience method that creates an instance of theMetricMathAnomalyDetector.Builder
avoiding the need to create one manually viaMetricMathAnomalyDetector.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricMathAnomalyDetector(MetricMathAnomalyDetector)
.- Parameters:
metricMathAnomalyDetector
- a consumer that will call methods onMetricMathAnomalyDetector.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-