Interface Alert.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Alert.Builder,Alert>,SdkBuilder<Alert.Builder,Alert>,SdkPojo
- Enclosing class:
- Alert
public static interface Alert.Builder extends SdkPojo, CopyableBuilder<Alert.Builder,Alert>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Alert.Builderaction(Consumer<Action.Builder> action)Action that will be triggered when there is an alert.Alert.Builderaction(Action action)Action that will be triggered when there is an alert.Alert.BuilderalertArn(String alertArn)The ARN of the alert.Alert.BuilderalertDescription(String alertDescription)A description of the alert.default Alert.BuilderalertFilters(Consumer<AlertFilters.Builder> alertFilters)The configuration of the alert filters, containing MetricList and DimensionFilter.Alert.BuilderalertFilters(AlertFilters alertFilters)The configuration of the alert filters, containing MetricList and DimensionFilter.Alert.BuilderalertName(String alertName)The name of the alert.Alert.BuilderalertSensitivityThreshold(Integer alertSensitivityThreshold)The minimum severity for an anomaly to trigger the alert.Alert.BuilderalertStatus(String alertStatus)The status of the alert.Alert.BuilderalertStatus(AlertStatus alertStatus)The status of the alert.Alert.BuilderalertType(String alertType)The type of the alert.Alert.BuilderalertType(AlertType alertType)The type of the alert.Alert.BuilderanomalyDetectorArn(String anomalyDetectorArn)The ARN of the detector to which the alert is attached.Alert.BuildercreationTime(Instant creationTime)The time at which the alert was created.Alert.BuilderlastModificationTime(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 Detail
-
action
Alert.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 Alert.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)
-
alertDescription
Alert.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.
-
alertArn
Alert.Builder alertArn(String 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
Alert.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.
-
alertName
Alert.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
Alert.Builder alertSensitivityThreshold(Integer 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
Alert.Builder alertType(String alertType)
The type of the alert.
-
alertType
Alert.Builder alertType(AlertType alertType)
The type of the alert.
-
alertStatus
Alert.Builder alertStatus(String 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,AlertStatus
-
alertStatus
Alert.Builder alertStatus(AlertStatus 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,AlertStatus
-
lastModificationTime
Alert.Builder lastModificationTime(Instant 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
Alert.Builder creationTime(Instant 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
Alert.Builder alertFilters(AlertFilters 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
default Alert.Builder alertFilters(Consumer<AlertFilters.Builder> alertFilters)
The configuration of the alert filters, containing MetricList and DimensionFilter.
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)
-
-