Interface UpdateAlertRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchOmniRequest.Builder,CopyableBuilder<UpdateAlertRequest.Builder,,UpdateAlertRequest> SdkBuilder<UpdateAlertRequest.Builder,,UpdateAlertRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateAlertRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe alert to update.description(String description) A new description of the alert.A new display name for the alert.notificationRules(Collection<NotificationRule> notificationRules) Replaces the entire notification rule list when present; full-replace, not merge.notificationRules(Consumer<NotificationRule.Builder>... notificationRules) Replaces the entire notification rule list when present; full-replace, not merge.notificationRules(NotificationRule... notificationRules) Replaces the entire notification rule list when present; full-replace, not merge.notificationsEnabled(Boolean notificationsEnabled) Whether actions (notifications) are enabled for this alert.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The ID of the access profile associated with the alert.default UpdateAlertRequest.Builderrule(Consumer<Rule.Builder> rule) The rule that defines how the alert is evaluated.The rule that defines how the alert is evaluated.The unique ID of the space.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatchomni.model.CloudWatchOmniRequest.Builder
buildMethods 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
-
spaceId
The unique ID of the space.
- Parameters:
spaceId- The unique ID of the space.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alertId
The alert to update.
- Parameters:
alertId- The alert to update.- 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.
-
name
A new display name for the alert. Omit to leave the name unchanged (apply-if-present / PATCH). Same constraints as CreateAlert.name; the name is not the alert's identity, so a rename never changes the alertId.
- Parameters:
name- A new display name for the alert. Omit to leave the name unchanged (apply-if-present / PATCH). Same constraints as CreateAlert.name; the name is not the alert's identity, so a rename never changes the alertId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A new description of the alert. Omit to leave unchanged.
- Parameters:
description- A new description of the alert. Omit to leave unchanged.- 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. Omit to leave unchanged. Each sub-block is replaced whole when present:
query,condition,evaluationandnoDataare applied only when supplied, and within a supplied block an omitted optional member is cleared to unset (null/absent) rather than preserved from the stored alert or defaulted. SeeAlertConditionandAlertEvaluation.- Parameters:
rule- The rule that defines how the alert is evaluated. Omit to leave unchanged. Each sub-block is replaced whole when present:query,condition,evaluationandnoDataare applied only when supplied, and within a supplied block an omitted optional member is cleared to unset (null/absent) rather than preserved from the stored alert or defaulted. SeeAlertConditionandAlertEvaluation.- 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. Omit to leave unchanged. Each sub-block is replaced whole when present:
This is a convenience method that creates an instance of thequery,condition,evaluationandnoDataare applied only when supplied, and within a supplied block an omitted optional member is cleared to unset (null/absent) rather than preserved from the stored alert or defaulted. SeeAlertConditionandAlertEvaluation.Rule.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:
-
notificationsEnabled
Whether actions (notifications) are enabled for this alert. Omitted = leave existing value unchanged.
- Parameters:
notificationsEnabled- Whether actions (notifications) are enabled for this alert. Omitted = leave existing value unchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationRules
Replaces the entire notification rule list when present; full-replace, not merge. Omitted = leave existing rules unchanged. An empty list clears all rules (the alert keeps evaluating; only notifications stop).
- Parameters:
notificationRules- Replaces the entire notification rule list when present; full-replace, not merge. Omitted = leave existing rules unchanged. An empty list clears all rules (the alert keeps evaluating; only notifications stop).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationRules
Replaces the entire notification rule list when present; full-replace, not merge. Omitted = leave existing rules unchanged. An empty list clears all rules (the alert keeps evaluating; only notifications stop).
- Parameters:
notificationRules- Replaces the entire notification rule list when present; full-replace, not merge. Omitted = leave existing rules unchanged. An empty list clears all rules (the alert keeps evaluating; only notifications stop).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationRules
UpdateAlertRequest.Builder notificationRules(Consumer<NotificationRule.Builder>... notificationRules) Replaces the entire notification rule list when present; full-replace, not merge. Omitted = leave existing rules unchanged. An empty list clears all rules (the alert keeps evaluating; only notifications stop).
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:
-
overrideConfiguration
UpdateAlertRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateAlertRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-