Interface NotificationRule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<NotificationRule.Builder,,NotificationRule> SdkBuilder<NotificationRule.Builder,,NotificationRule> SdkPojo
- Enclosing class:
NotificationRule
@Mutable
@NotThreadSafe
public static interface NotificationRule.Builder
extends SdkPojo, CopyableBuilder<NotificationRule.Builder,NotificationRule>
-
Method Summary
Modifier and TypeMethodDescriptiondefault NotificationRule.Buildertarget(Consumer<NotificationTarget.Builder> target) The destination for notifications from this rule.target(NotificationTarget target) The destination for notifications from this rule.default NotificationRule.Buildertrigger(Consumer<NotificationTrigger.Builder> trigger) The conditions that trigger this notification rule.trigger(NotificationTrigger trigger) The conditions that trigger this notification rule.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
-
trigger
The conditions that trigger this notification rule.
- Parameters:
trigger- The conditions that trigger this notification rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trigger
The conditions that trigger this notification rule.
This is a convenience method that creates an instance of theNotificationTrigger.Builderavoiding the need to create one manually viaNotificationTrigger.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totrigger(NotificationTrigger).- Parameters:
trigger- a consumer that will call methods onNotificationTrigger.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
target
The destination for notifications from this rule.
- Parameters:
target- The destination for notifications from this rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
The destination for notifications from this rule.
This is a convenience method that creates an instance of theNotificationTarget.Builderavoiding the need to create one manually viaNotificationTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totarget(NotificationTarget).- Parameters:
target- a consumer that will call methods onNotificationTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-