Interface PutAnomalyDetectorRequest.Builder
- All Superinterfaces:
AmpRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<PutAnomalyDetectorRequest.Builder,,PutAnomalyDetectorRequest> SdkBuilder<PutAnomalyDetectorRequest.Builder,,PutAnomalyDetectorRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutAnomalyDetectorRequest
-
Method Summary
Modifier and TypeMethodDescriptionanomalyDetectorId(String anomalyDetectorId) The identifier of the anomaly detector to update.clientToken(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.configuration(Consumer<AnomalyDetectorConfiguration.Builder> configuration) The algorithm configuration for the anomaly detector.configuration(AnomalyDetectorConfiguration configuration) The algorithm configuration for the anomaly detector.evaluationIntervalInSeconds(Integer evaluationIntervalInSeconds) The frequency, in seconds, at which the anomaly detector evaluates metrics.The Amazon Managed Service for Prometheus metric labels to associate with the anomaly detector.missingDataAction(Consumer<AnomalyDetectorMissingDataAction.Builder> missingDataAction) Specifies the action to take when data is missing during evaluation.missingDataAction(AnomalyDetectorMissingDataAction missingDataAction) Specifies the action to take when data is missing during evaluation.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.workspaceId(String workspaceId) The identifier of the workspace containing the anomaly detector to update.Methods inherited from interface software.amazon.awssdk.services.amp.model.AmpRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
workspaceId
The identifier of the workspace containing the anomaly detector to update.
- Parameters:
workspaceId- The identifier of the workspace containing the anomaly detector to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyDetectorId
The identifier of the anomaly detector to update.
- Parameters:
anomalyDetectorId- The identifier of the anomaly detector to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationIntervalInSeconds
The frequency, in seconds, at which the anomaly detector evaluates metrics.
- Parameters:
evaluationIntervalInSeconds- The frequency, in seconds, at which the anomaly detector evaluates metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
missingDataAction
PutAnomalyDetectorRequest.Builder missingDataAction(AnomalyDetectorMissingDataAction missingDataAction) Specifies the action to take when data is missing during evaluation.
- Parameters:
missingDataAction- Specifies the action to take when data is missing during evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
missingDataAction
default PutAnomalyDetectorRequest.Builder missingDataAction(Consumer<AnomalyDetectorMissingDataAction.Builder> missingDataAction) Specifies the action to take when data is missing during evaluation.
This is a convenience method that creates an instance of theAnomalyDetectorMissingDataAction.Builderavoiding the need to create one manually viaAnomalyDetectorMissingDataAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomissingDataAction(AnomalyDetectorMissingDataAction).- Parameters:
missingDataAction- a consumer that will call methods onAnomalyDetectorMissingDataAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
configuration
The algorithm configuration for the anomaly detector.
- Parameters:
configuration- The algorithm configuration for the anomaly detector.- 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 algorithm configuration for the anomaly detector.
This is a convenience method that creates an instance of theAnomalyDetectorConfiguration.Builderavoiding the need to create one manually viaAnomalyDetectorConfiguration.builder().When the
Consumercompletes,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:
-
labels
The Amazon Managed Service for Prometheus metric labels to associate with the anomaly detector.
- Parameters:
labels- The Amazon Managed Service for Prometheus metric labels to associate with the anomaly detector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- Parameters:
clientToken- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutAnomalyDetectorRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutAnomalyDetectorRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-