Interface CreateAlertRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateAlertRequest.Builder,,CreateAlertRequest> LookoutMetricsRequest.Builder,SdkBuilder<CreateAlertRequest.Builder,,CreateAlertRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateAlertRequest
public static interface CreateAlertRequest.Builder
extends LookoutMetricsRequest.Builder, SdkPojo, CopyableBuilder<CreateAlertRequest.Builder,CreateAlertRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateAlertRequest.Builderaction(Consumer<Action.Builder> action) Action that will be triggered when there is an alert.Action that will be triggered when there is an alert.alertDescription(String alertDescription) A description of the alert.default CreateAlertRequest.BuilderalertFilters(Consumer<AlertFilters.Builder> alertFilters) The configuration of the alert filters, containing MetricList and DimensionFilterList.alertFilters(AlertFilters alertFilters) The configuration of the alert filters, containing MetricList and DimensionFilterList.The name of the alert.alertSensitivityThreshold(Integer alertSensitivityThreshold) An integer from 0 to 100 specifying the alert sensitivity threshold.anomalyDetectorArn(String anomalyDetectorArn) The ARN of the detector to which the alert is attached.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.A list of tags to apply to the alert.Methods 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.services.lookoutmetrics.model.LookoutMetricsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
alertName
The name of the alert.
- Parameters:
alertName- The name of the alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alertSensitivityThreshold
An integer from 0 to 100 specifying the alert sensitivity threshold.
- Parameters:
alertSensitivityThreshold- An integer from 0 to 100 specifying the alert sensitivity threshold.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alertDescription
A description of the alert.
- Parameters:
alertDescription- A description of the alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalyDetectorArn
The ARN of the detector to which the alert is attached.
- Parameters:
anomalyDetectorArn- The ARN of the detector to which the alert is attached.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
Action that will be triggered when there is an alert.
- Parameters:
action- Action that will be triggered when there is an alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
Action that will be triggered when there is an alert.
This is a convenience method that creates an instance of theAction.Builderavoiding the need to create one manually viaAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaction(Action).- Parameters:
action- a consumer that will call methods onAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
-
alertFilters
The configuration of the alert filters, containing MetricList and DimensionFilterList.
- Parameters:
alertFilters- The configuration of the alert filters, containing MetricList and DimensionFilterList.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alertFilters
The configuration of the alert filters, containing MetricList and DimensionFilterList.
This is a convenience method that creates an instance of theAlertFilters.Builderavoiding the need to create one manually viaAlertFilters.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toalertFilters(AlertFilters).- Parameters:
alertFilters- a consumer that will call methods onAlertFilters.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateAlertRequest.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
CreateAlertRequest.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.
-