Interface AlarmNotification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AlarmNotification.Builder,
,AlarmNotification> SdkBuilder<AlarmNotification.Builder,
,AlarmNotification> SdkPojo
- Enclosing class:
AlarmNotification
public static interface AlarmNotification.Builder
extends SdkPojo, CopyableBuilder<AlarmNotification.Builder,AlarmNotification>
-
Method Summary
Modifier and TypeMethodDescriptionnotificationActions
(Collection<NotificationAction> notificationActions) Contains the notification settings of an alarm model.notificationActions
(Consumer<NotificationAction.Builder>... notificationActions) Contains the notification settings of an alarm model.notificationActions
(NotificationAction... notificationActions) Contains the notification settings of an alarm model.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
notificationActions
Contains the notification settings of an alarm model. The settings apply to all alarms that were created based on this alarm model.
- Parameters:
notificationActions
- Contains the notification settings of an alarm model. The settings apply to all alarms that were created based on this alarm model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationActions
Contains the notification settings of an alarm model. The settings apply to all alarms that were created based on this alarm model.
- Parameters:
notificationActions
- Contains the notification settings of an alarm model. The settings apply to all alarms that were created based on this alarm model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notificationActions
AlarmNotification.Builder notificationActions(Consumer<NotificationAction.Builder>... notificationActions) Contains the notification settings of an alarm model. The settings apply to all alarms that were created based on this alarm model.
This is a convenience method that creates an instance of theNotificationAction.Builder
avoiding the need to create one manually viaNotificationAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonotificationActions(List<NotificationAction>)
.- Parameters:
notificationActions
- a consumer that will call methods onNotificationAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-