Interface Alert.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Alert.Builder,,Alert> SdkBuilder<Alert.Builder,,Alert> SdkPojo
- Enclosing class:
Alert
-
Method Summary
Modifier and TypeMethodDescriptionThe AWS account ID that owns the alert.The Amazon Resource Name (ARN) of the alert.The stable alert identifier (see), minted on create and immutable across updates.invalid reference
AlertIdThe timestamp when the alert was created.description(String description) An optional description of the alert.The name of the alert.notificationRules(Collection<NotificationRule> notificationRules) The notification rules for the alert.notificationRules(Consumer<NotificationRule.Builder>... notificationRules) The notification rules for the alert.notificationRules(NotificationRule... notificationRules) The notification rules for the alert.notificationStatus(String notificationStatus) Whether notifications are enabled.notificationStatus(NotificationStatus notificationStatus) Whether notifications are enabled.The ID of the access profile associated with the alert.default Alert.Builderrule(Consumer<Rule.Builder> rule) The rule that defines how the alert is evaluated.The rule that defines how the alert is evaluated.The ID of the space the alert belongs to.default Alert.Builderstate(Consumer<AlertStateInfo.Builder> state) Live evaluation state (read-only, system-managed).state(AlertStateInfo state) Live evaluation state (read-only, system-managed).The timestamp when the alert was last updated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the alert.
- Parameters:
name- The name of the alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alertId
The stable alert identifier (see
), minted on create and immutable across updates. Use it (notinvalid reference
AlertIdname) to address the alert on GetAlert/UpdateAlert/DeleteAlert; it is also the ARN's resource id.- Parameters:
alertId- The stable alert identifier (see), minted on create and immutable across updates. Use it (notinvalid reference
AlertIdname) to address the alert on GetAlert/UpdateAlert/DeleteAlert; it is also the ARN's resource id.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
An optional description of the alert.
- Parameters:
description- An optional description of the alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
The AWS account ID that owns the alert.
- Parameters:
accountId- The AWS account ID that owns the alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spaceId
The ID of the space the alert belongs to.
- Parameters:
spaceId- The ID of the space the alert belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
profileId
The ID of the access profile associated with the alert.
- Parameters:
profileId- The ID of the access profile associated with the alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rule
The rule that defines how the alert is evaluated.
- Parameters:
rule- The rule that defines how the alert is evaluated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rule
The rule that defines how the alert is evaluated.
This is a convenience method that creates an instance of theRule.Builderavoiding the need to create one manually viaRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torule(Rule).- Parameters:
rule- a consumer that will call methods onRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
notificationStatus
Whether notifications are enabled.
- Parameters:
notificationStatus- Whether notifications are enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
notificationStatus
Whether notifications are enabled.
- Parameters:
notificationStatus- Whether notifications are enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
Live evaluation state (read-only, system-managed). Populated by GetAlert. ListAlerts reports state on
AlertSummaryinstead, where it stays required.Absent on CreateAlert: a newly created alert has never been evaluated, so any state reported there would be a default rather than an observation. Call GetAlert for live state. Not @required for that reason — GetAlert always populates it.
contributorSummaryis nested inside this member, so it too is absent on CreateAlert.- Parameters:
state- Live evaluation state (read-only, system-managed). Populated by GetAlert. ListAlerts reports state onAlertSummaryinstead, where it stays required.Absent on CreateAlert: a newly created alert has never been evaluated, so any state reported there would be a default rather than an observation. Call GetAlert for live state. Not @required for that reason — GetAlert always populates it.
contributorSummaryis nested inside this member, so it too is absent on CreateAlert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
Live evaluation state (read-only, system-managed). Populated by GetAlert. ListAlerts reports state on
AlertSummaryinstead, where it stays required.Absent on CreateAlert: a newly created alert has never been evaluated, so any state reported there would be a default rather than an observation. Call GetAlert for live state. Not @required for that reason — GetAlert always populates it.
This is a convenience method that creates an instance of thecontributorSummaryis nested inside this member, so it too is absent on CreateAlert.AlertStateInfo.Builderavoiding the need to create one manually viaAlertStateInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostate(AlertStateInfo).- Parameters:
state- a consumer that will call methods onAlertStateInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
notificationRules
The notification rules for the alert.
- Parameters:
notificationRules- The notification rules for the alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationRules
The notification rules for the alert.
- Parameters:
notificationRules- The notification rules for the alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationRules
The notification rules for the alert.
This is a convenience method that creates an instance of theNotificationRule.Builderavoiding the need to create one manually viaNotificationRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonotificationRules(List<NotificationRule>).- Parameters:
notificationRules- a consumer that will call methods onNotificationRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
The timestamp when the alert was created.
- Parameters:
createdAt- The timestamp when the alert was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The timestamp when the alert was last updated.
- Parameters:
updatedAt- The timestamp when the alert was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alertArn
The Amazon Resource Name (ARN) of the alert.
- Parameters:
alertArn- The Amazon Resource Name (ARN) of the alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-