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 Details

    • 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 the Action.Builder avoiding the need to create one manually via Action.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to action(Action).

      Parameters:
      action - a consumer that will call methods on Action.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.

      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

      Alert.Builder alertType(AlertType 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

      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

      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:
    • 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 the AlertFilters.Builder avoiding the need to create one manually via AlertFilters.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to alertFilters(AlertFilters).

      Parameters:
      alertFilters - a consumer that will call methods on AlertFilters.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: