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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateAlertRequest.Builderaction(Consumer<Action.Builder> action)Action that will be triggered when there is an alert.CreateAlertRequest.Builderaction(Action action)Action that will be triggered when there is an alert.CreateAlertRequest.BuilderalertDescription(String alertDescription)A description of the alert.default CreateAlertRequest.BuilderalertFilters(Consumer<AlertFilters.Builder> alertFilters)The configuration of the alert filters, containing MetricList and DimensionFilterList.CreateAlertRequest.BuilderalertFilters(AlertFilters alertFilters)The configuration of the alert filters, containing MetricList and DimensionFilterList.CreateAlertRequest.BuilderalertName(String alertName)The name of the alert.CreateAlertRequest.BuilderalertSensitivityThreshold(Integer alertSensitivityThreshold)An integer from 0 to 100 specifying the alert sensitivity threshold.CreateAlertRequest.BuilderanomalyDetectorArn(String anomalyDetectorArn)The ARN of the detector to which the alert is attached.CreateAlertRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateAlertRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateAlertRequest.Buildertags(Map<String,String> tags)A list of tags to apply to the alert.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lookoutmetrics.model.LookoutMetricsRequest.Builder
build
-
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
-
alertName
CreateAlertRequest.Builder alertName(String 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
CreateAlertRequest.Builder alertSensitivityThreshold(Integer 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
CreateAlertRequest.Builder alertDescription(String 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
CreateAlertRequest.Builder anomalyDetectorArn(String 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
CreateAlertRequest.Builder action(Action 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
default CreateAlertRequest.Builder action(Consumer<Action.Builder> 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:
action(Action)
-
tags
CreateAlertRequest.Builder tags(Map<String,String> tags)
A list of tags to apply to the alert.
- Parameters:
tags- A list of tags to apply to the alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alertFilters
CreateAlertRequest.Builder alertFilters(AlertFilters 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
default CreateAlertRequest.Builder alertFilters(Consumer<AlertFilters.Builder> 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:
alertFilters(AlertFilters)
-
overrideConfiguration
CreateAlertRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateAlertRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-