Interface Alert.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Alert.Builder,
,Alert> SdkBuilder<Alert.Builder,
,Alert> SdkPojo
- Enclosing class:
Alert
-
Method Summary
Modifier and TypeMethodDescriptiondefault Alert.Builder
action
(Consumer<Action.Builder> action) Action that will be triggered when there is an alert.Action that will be triggered when there is an alert.The ARN of the alert.alertDescription
(String alertDescription) A description of the alert.default Alert.Builder
alertFilters
(Consumer<AlertFilters.Builder> alertFilters) The configuration of the alert filters, containing MetricList and DimensionFilter.alertFilters
(AlertFilters alertFilters) The configuration of the alert filters, containing MetricList and DimensionFilter.The name of the alert.alertSensitivityThreshold
(Integer alertSensitivityThreshold) The minimum severity for an anomaly to trigger the alert.alertStatus
(String alertStatus) The status of the alert.alertStatus
(AlertStatus alertStatus) The status of the alert.The type of the alert.The type of the alert.anomalyDetectorArn
(String anomalyDetectorArn) The ARN of the detector to which the alert is attached.creationTime
(Instant creationTime) The time at which the alert was created.lastModificationTime
(Instant lastModificationTime) The time at which the alert was last modified.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 Details
-
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.Builder
avoiding the need to create one manually viaAction.builder()
.When the
Consumer
completes,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:
-
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.
-
alertArn
The ARN of the alert.
- Parameters:
alertArn
- The ARN 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.
-
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
The minimum severity for an anomaly to trigger the alert.
- Parameters:
alertSensitivityThreshold
- The minimum severity for an anomaly to trigger the alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alertType
The type of the alert.
- Parameters:
alertType
- The type of the alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
alertType
The type of the alert.
- Parameters:
alertType
- The type of the alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
alertStatus
The status of the alert.
- Parameters:
alertStatus
- The status of the alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
alertStatus
The status of the alert.
- Parameters:
alertStatus
- The status of the alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastModificationTime
The time at which the alert was last modified.
- Parameters:
lastModificationTime
- The time at which the alert was last modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
The time at which the alert was created.
- Parameters:
creationTime
- The time at which the alert was created.- 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 DimensionFilter.
- Parameters:
alertFilters
- The configuration of the alert filters, containing MetricList and DimensionFilter.- 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 DimensionFilter.
This is a convenience method that creates an instance of theAlertFilters.Builder
avoiding the need to create one manually viaAlertFilters.builder()
.When the
Consumer
completes,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:
-