Interface PutAnomalyDetectorRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudWatchRequest.Builder
,CopyableBuilder<PutAnomalyDetectorRequest.Builder,PutAnomalyDetectorRequest>
,SdkBuilder<PutAnomalyDetectorRequest.Builder,PutAnomalyDetectorRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- PutAnomalyDetectorRequest
public static interface PutAnomalyDetectorRequest.Builder extends CloudWatchRequest.Builder, SdkPojo, CopyableBuilder<PutAnomalyDetectorRequest.Builder,PutAnomalyDetectorRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default PutAnomalyDetectorRequest.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 when training and updating the model.PutAnomalyDetectorRequest.Builder
configuration(AnomalyDetectorConfiguration configuration)
The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model.PutAnomalyDetectorRequest.Builder
dimensions(Collection<Dimension> dimensions)
Deprecated.Use SingleMetricAnomalyDetector.PutAnomalyDetectorRequest.Builder
dimensions(Consumer<Dimension.Builder>... dimensions)
Deprecated.Use SingleMetricAnomalyDetector.PutAnomalyDetectorRequest.Builder
dimensions(Dimension... dimensions)
Deprecated.Use SingleMetricAnomalyDetector.default PutAnomalyDetectorRequest.Builder
metricMathAnomalyDetector(Consumer<MetricMathAnomalyDetector.Builder> metricMathAnomalyDetector)
The metric math anomaly detector to be created.PutAnomalyDetectorRequest.Builder
metricMathAnomalyDetector(MetricMathAnomalyDetector metricMathAnomalyDetector)
The metric math anomaly detector to be created.PutAnomalyDetectorRequest.Builder
metricName(String metricName)
Deprecated.Use SingleMetricAnomalyDetector.PutAnomalyDetectorRequest.Builder
namespace(String namespace)
Deprecated.Use SingleMetricAnomalyDetector.PutAnomalyDetectorRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
PutAnomalyDetectorRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
default PutAnomalyDetectorRequest.Builder
singleMetricAnomalyDetector(Consumer<SingleMetricAnomalyDetector.Builder> singleMetricAnomalyDetector)
A single metric anomaly detector to be created.PutAnomalyDetectorRequest.Builder
singleMetricAnomalyDetector(SingleMetricAnomalyDetector singleMetricAnomalyDetector)
A single metric anomaly detector to be created.PutAnomalyDetectorRequest.Builder
stat(String stat)
Deprecated.Use SingleMetricAnomalyDetector.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchRequest.Builder
build
-
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
@Deprecated PutAnomalyDetectorRequest.Builder namespace(String namespace)
Deprecated.Use SingleMetricAnomalyDetector.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
@Deprecated PutAnomalyDetectorRequest.Builder metricName(String metricName)
Deprecated.Use SingleMetricAnomalyDetector.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
@Deprecated PutAnomalyDetectorRequest.Builder dimensions(Collection<Dimension> dimensions)
Deprecated.Use SingleMetricAnomalyDetector.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
@Deprecated PutAnomalyDetectorRequest.Builder dimensions(Dimension... dimensions)
Deprecated.Use SingleMetricAnomalyDetector.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
@Deprecated PutAnomalyDetectorRequest.Builder dimensions(Consumer<Dimension.Builder>... dimensions)
Deprecated.Use SingleMetricAnomalyDetector.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
@Deprecated PutAnomalyDetectorRequest.Builder stat(String stat)
Deprecated.Use SingleMetricAnomalyDetector.The statistic to use for the metric and the anomaly detection model.
- Parameters:
stat
- The statistic to use for the metric and the anomaly detection model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
PutAnomalyDetectorRequest.Builder configuration(AnomalyDetectorConfiguration configuration)
The configuration specifies details about how the anomaly detection model is to be trained, including time ranges to exclude when training and updating the model. You can specify as many as 10 time ranges.
The configuration can also include 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 when training and updating the model. You can specify as many as 10 time ranges.The configuration can also include 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 PutAnomalyDetectorRequest.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 when training and updating the model. You can specify as many as 10 time ranges.
The configuration can also include 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:
configuration(AnomalyDetectorConfiguration)
-
singleMetricAnomalyDetector
PutAnomalyDetectorRequest.Builder singleMetricAnomalyDetector(SingleMetricAnomalyDetector singleMetricAnomalyDetector)
A single metric anomaly detector to be created.
When using
SingleMetricAnomalyDetector
, you cannot include the following parameters in the same operation:-
Dimensions
-
MetricName
-
Namespace
-
Stat
-
the
MetricMatchAnomalyDetector
parameters ofPutAnomalyDetectorInput
Instead, specify the single metric anomaly detector attributes as part of the property
SingleMetricAnomalyDetector
.- Parameters:
singleMetricAnomalyDetector
- A single metric anomaly detector to be created.When using
SingleMetricAnomalyDetector
, you cannot include the following parameters in the same operation:-
Dimensions
-
MetricName
-
Namespace
-
Stat
-
the
MetricMatchAnomalyDetector
parameters ofPutAnomalyDetectorInput
Instead, specify the single metric anomaly detector attributes as part of the property
SingleMetricAnomalyDetector
.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
singleMetricAnomalyDetector
default PutAnomalyDetectorRequest.Builder singleMetricAnomalyDetector(Consumer<SingleMetricAnomalyDetector.Builder> singleMetricAnomalyDetector)
A single metric anomaly detector to be created.
When using
SingleMetricAnomalyDetector
, you cannot include the following parameters in the same operation:-
Dimensions
-
MetricName
-
Namespace
-
Stat
-
the
MetricMatchAnomalyDetector
parameters ofPutAnomalyDetectorInput
Instead, specify the single metric anomaly detector attributes as part of the property
This is a convenience method that creates an instance of theSingleMetricAnomalyDetector
.SingleMetricAnomalyDetector.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:
singleMetricAnomalyDetector(SingleMetricAnomalyDetector)
-
-
metricMathAnomalyDetector
PutAnomalyDetectorRequest.Builder metricMathAnomalyDetector(MetricMathAnomalyDetector metricMathAnomalyDetector)
The metric math anomaly detector to be created.
When using
MetricMathAnomalyDetector
, you cannot include the following parameters in the same operation:-
Dimensions
-
MetricName
-
Namespace
-
Stat
-
the
SingleMetricAnomalyDetector
parameters ofPutAnomalyDetectorInput
Instead, specify the metric math anomaly detector attributes as part of the property
MetricMathAnomalyDetector
.- Parameters:
metricMathAnomalyDetector
- The metric math anomaly detector to be created.When using
MetricMathAnomalyDetector
, you cannot include the following parameters in the same operation:-
Dimensions
-
MetricName
-
Namespace
-
Stat
-
the
SingleMetricAnomalyDetector
parameters ofPutAnomalyDetectorInput
Instead, specify the metric math anomaly detector attributes as part of the property
MetricMathAnomalyDetector
.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
metricMathAnomalyDetector
default PutAnomalyDetectorRequest.Builder metricMathAnomalyDetector(Consumer<MetricMathAnomalyDetector.Builder> metricMathAnomalyDetector)
The metric math anomaly detector to be created.
When using
MetricMathAnomalyDetector
, you cannot include the following parameters in the same operation:-
Dimensions
-
MetricName
-
Namespace
-
Stat
-
the
SingleMetricAnomalyDetector
parameters ofPutAnomalyDetectorInput
Instead, specify the metric math anomaly detector attributes as part of the property
This is a convenience method that creates an instance of theMetricMathAnomalyDetector
.MetricMathAnomalyDetector.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:
metricMathAnomalyDetector(MetricMathAnomalyDetector)
-
-
overrideConfiguration
PutAnomalyDetectorRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
PutAnomalyDetectorRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-