Interface CreateAnomalyDetectorRequest.Builder
- All Superinterfaces:
AmpRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreateAnomalyDetectorRequest.Builder,,CreateAnomalyDetectorRequest> SdkBuilder<CreateAnomalyDetectorRequest.Builder,,CreateAnomalyDetectorRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateAnomalyDetectorRequest
-
Method Summary
Modifier and TypeMethodDescriptionA user-friendly name for the anomaly detector.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.The metadata to apply to the anomaly detector to assist with categorization and organization.workspaceId(String workspaceId) The identifier of the workspace where the anomaly detector will be created.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 where the anomaly detector will be created.
- Parameters:
workspaceId- The identifier of the workspace where the anomaly detector will be created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alias
A user-friendly name for the anomaly detector.
- Parameters:
alias- A user-friendly name for the anomaly detector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationIntervalInSeconds
CreateAnomalyDetectorRequest.Builder evaluationIntervalInSeconds(Integer evaluationIntervalInSeconds) The frequency, in seconds, at which the anomaly detector evaluates metrics. The default value is 60 seconds.
- Parameters:
evaluationIntervalInSeconds- The frequency, in seconds, at which the anomaly detector evaluates metrics. The default value is 60 seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
missingDataAction
CreateAnomalyDetectorRequest.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 CreateAnomalyDetectorRequest.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 CreateAnomalyDetectorRequest.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.
-
tags
The metadata to apply to the anomaly detector to assist with categorization and organization.
- Parameters:
tags- The metadata to apply to the anomaly detector to assist with categorization and organization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateAnomalyDetectorRequest.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
CreateAnomalyDetectorRequest.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.
-