Interface CreateAlertRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchOmniRequest.Builder,CopyableBuilder<CreateAlertRequest.Builder,,CreateAlertRequest> SdkBuilder<CreateAlertRequest.Builder,,CreateAlertRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateAlertRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Idempotency token for safe retries.description(String description) An optional description of the alert.Alert name, for display.notificationRules(Collection<NotificationRule> notificationRules) The notification rules that determine when and where notifications are sent.notificationRules(Consumer<NotificationRule.Builder>... notificationRules) The notification rules that determine when and where notifications are sent.notificationRules(NotificationRule... notificationRules) The notification rules that determine when and where notifications are sent.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 the alert uses to evaluate its query and execute notifications.default CreateAlertRequest.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 to create the alert in.The tags to associate with the alert.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 to create the alert in.
- Parameters:
spaceId- The unique ID of the space to create the alert in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
profileId
The ID of the access profile the alert uses to evaluate its query and execute notifications. The caller supplies it: there is no managed alert profile, and the service does not pick one on the caller's behalf.
- Parameters:
profileId- The ID of the access profile the alert uses to evaluate its query and execute notifications. The caller supplies it: there is no managed alert profile, and the service does not pick one on the caller's behalf.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
Alert name, for display. Max 256 (the AlarmName budget). Not the alert's identity: the backend mints a separate uuid as the
, so the name need not be unique within a space and addressing an alert never depends on it. UpdateAlert accepts a new name to rename the alert.invalid reference
AlertId- Parameters:
name- Alert name, for display. Max 256 (the AlarmName budget). Not the alert's identity: the backend mints a separate uuid as the, so the name need not be unique within a space and addressing an alert never depends on it. UpdateAlert accepts a new name to rename the alert.invalid reference
AlertId- 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.
-
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:
-
notificationsEnabled
Whether actions (notifications) are enabled for this alert. Defaults to true when omitted.
- Parameters:
notificationsEnabled- Whether actions (notifications) are enabled for this alert. Defaults to true when omitted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to associate with the alert.
- Parameters:
tags- The tags to associate with the alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationRules
The notification rules that determine when and where notifications are sent.
- Parameters:
notificationRules- The notification rules that determine when and where notifications are sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationRules
The notification rules that determine when and where notifications are sent.
- Parameters:
notificationRules- The notification rules that determine when and where notifications are sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationRules
CreateAlertRequest.Builder notificationRules(Consumer<NotificationRule.Builder>... notificationRules) The notification rules that determine when and where notifications are sent.
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:
-
clientToken
Idempotency token for safe retries. Retrying with the same token within the idempotency window returns the original alert instead of creating a duplicate.
- Parameters:
clientToken- Idempotency token for safe retries. Retrying with the same token within the idempotency window returns the original alert instead of creating a duplicate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateAlertRequest.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
CreateAlertRequest.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.
-