public class PutNotificationConfigurationRequest extends AmazonWebServiceRequest implements Serializable
PutNotificationConfiguration operation
.
Configures an Auto Scaling group to send notifications when specified events take place. Subscribers to this topic can have messages for events delivered to an endpoint such as a web server or email address.
For more information see Get Email Notifications When Your Auto Scaling Group Changes
A new PutNotificationConfiguration
overwrites an existing
configuration.
NOOP
Constructor and Description |
---|
PutNotificationConfigurationRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name of the Auto Scaling group.
|
List<String> |
getNotificationTypes()
The type of event that will cause the notification to be sent.
|
String |
getTopicARN()
The Amazon Resource Name (ARN) of the Amazon Simple Notification
Service (SNS) topic.
|
int |
hashCode() |
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
void |
setNotificationTypes(Collection<String> notificationTypes)
The type of event that will cause the notification to be sent.
|
void |
setTopicARN(String topicARN)
The Amazon Resource Name (ARN) of the Amazon Simple Notification
Service (SNS) topic.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutNotificationConfigurationRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
PutNotificationConfigurationRequest |
withNotificationTypes(Collection<String> notificationTypes)
The type of event that will cause the notification to be sent.
|
PutNotificationConfigurationRequest |
withNotificationTypes(String... notificationTypes)
The type of event that will cause the notification to be sent.
|
PutNotificationConfigurationRequest |
withTopicARN(String topicARN)
The Amazon Resource Name (ARN) of the Amazon Simple Notification
Service (SNS) topic.
|
copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getAutoScalingGroupName()
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setAutoScalingGroupName(String autoScalingGroupName)
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName
- The name of the Auto Scaling group.public PutNotificationConfigurationRequest withAutoScalingGroupName(String autoScalingGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName
- The name of the Auto Scaling group.public String getTopicARN()
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setTopicARN(String topicARN)
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
topicARN
- The Amazon Resource Name (ARN) of the Amazon Simple Notification
Service (SNS) topic.public PutNotificationConfigurationRequest withTopicARN(String topicARN)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
topicARN
- The Amazon Resource Name (ARN) of the Amazon Simple Notification
Service (SNS) topic.public List<String> getNotificationTypes()
public void setNotificationTypes(Collection<String> notificationTypes)
notificationTypes
- The type of event that will cause the notification to be sent. For
details about notification types supported by Auto Scaling, see
DescribeAutoScalingNotificationTypes.public PutNotificationConfigurationRequest withNotificationTypes(String... notificationTypes)
Returns a reference to this object so that method calls can be chained together.
notificationTypes
- The type of event that will cause the notification to be sent. For
details about notification types supported by Auto Scaling, see
DescribeAutoScalingNotificationTypes.public PutNotificationConfigurationRequest withNotificationTypes(Collection<String> notificationTypes)
Returns a reference to this object so that method calls can be chained together.
notificationTypes
- The type of event that will cause the notification to be sent. For
details about notification types supported by Auto Scaling, see
DescribeAutoScalingNotificationTypes.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.