Class NotificationConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.NotificationConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NotificationConfiguration>
- Enclosing interface:
- NotificationConfiguration
@Stability(Stable)
public static final class NotificationConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<NotificationConfiguration>
A builder for
NotificationConfiguration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.scalingEvents(ScalingEvents scalingEvents) Sets the value ofNotificationConfiguration.getScalingEvents()Sets the value ofNotificationConfiguration.getTopic()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
topic
Sets the value ofNotificationConfiguration.getTopic()- Parameters:
topic- SNS topic to send notifications about fleet scaling events. This parameter is required.- Returns:
this
-
scalingEvents
@Stability(Stable) public NotificationConfiguration.Builder scalingEvents(ScalingEvents scalingEvents) Sets the value ofNotificationConfiguration.getScalingEvents()- Parameters:
scalingEvents- Which fleet scaling events triggers a notification.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NotificationConfiguration>- Returns:
- a new instance of
NotificationConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-