com.amazonaws.services.autoscaling.model
Class PutNotificationConfigurationRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.autoscaling.model.PutNotificationConfigurationRequest
All Implemented Interfaces:
java.io.Serializable

public class PutNotificationConfigurationRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the 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.

See Also:
AmazonAutoScaling.putNotificationConfiguration(PutNotificationConfigurationRequest), Serialized Form

Constructor Summary
PutNotificationConfigurationRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAutoScalingGroupName()
          The name of the Auto Scaling group.
 java.util.List<java.lang.String> getNotificationTypes()
          The type of event that will cause the notification to be sent.
 java.lang.String getTopicARN()
          The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.
 int hashCode()
           
 void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
          The name of the Auto Scaling group.
 void setNotificationTypes(java.util.Collection<java.lang.String> notificationTypes)
          The type of event that will cause the notification to be sent.
 void setTopicARN(java.lang.String topicARN)
          The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 PutNotificationConfigurationRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
          The name of the Auto Scaling group.
 PutNotificationConfigurationRequest withNotificationTypes(java.util.Collection<java.lang.String> notificationTypes)
          The type of event that will cause the notification to be sent.
 PutNotificationConfigurationRequest withNotificationTypes(java.lang.String... notificationTypes)
          The type of event that will cause the notification to be sent.
 PutNotificationConfigurationRequest withTopicARN(java.lang.String topicARN)
          The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PutNotificationConfigurationRequest

public PutNotificationConfigurationRequest()
Method Detail

getAutoScalingGroupName

public java.lang.String getAutoScalingGroupName()
The name of the Auto Scaling group.

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
The name of the Auto Scaling group.

setAutoScalingGroupName

public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
autoScalingGroupName - The name of the Auto Scaling group.

withAutoScalingGroupName

public PutNotificationConfigurationRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.

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]*

Parameters:
autoScalingGroupName - The name of the Auto Scaling group.
Returns:
A reference to this updated object so that method calls can be chained together.

getTopicARN

public java.lang.String getTopicARN()
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.

setTopicARN

public void setTopicARN(java.lang.String topicARN)
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
topicARN - The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.

withTopicARN

public PutNotificationConfigurationRequest withTopicARN(java.lang.String topicARN)
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.

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]*

Parameters:
topicARN - The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.
Returns:
A reference to this updated object so that method calls can be chained together.

getNotificationTypes

public java.util.List<java.lang.String> getNotificationTypes()
The type of event that will cause the notification to be sent. For details about notification types supported by Auto Scaling, see DescribeAutoScalingNotificationTypes.

Returns:
The type of event that will cause the notification to be sent. For details about notification types supported by Auto Scaling, see DescribeAutoScalingNotificationTypes.

setNotificationTypes

public void setNotificationTypes(java.util.Collection<java.lang.String> notificationTypes)
The type of event that will cause the notification to be sent. For details about notification types supported by Auto Scaling, see DescribeAutoScalingNotificationTypes.

Parameters:
notificationTypes - The type of event that will cause the notification to be sent. For details about notification types supported by Auto Scaling, see DescribeAutoScalingNotificationTypes.

withNotificationTypes

public PutNotificationConfigurationRequest withNotificationTypes(java.lang.String... notificationTypes)
The type of event that will cause the notification to be sent. For details about notification types supported by Auto Scaling, see DescribeAutoScalingNotificationTypes.

Returns a reference to this object so that method calls can be chained together.

Parameters:
notificationTypes - The type of event that will cause the notification to be sent. For details about notification types supported by Auto Scaling, see DescribeAutoScalingNotificationTypes.
Returns:
A reference to this updated object so that method calls can be chained together.

withNotificationTypes

public PutNotificationConfigurationRequest withNotificationTypes(java.util.Collection<java.lang.String> notificationTypes)
The type of event that will cause the notification to be sent. For details about notification types supported by Auto Scaling, see DescribeAutoScalingNotificationTypes.

Returns a reference to this object so that method calls can be chained together.

Parameters:
notificationTypes - The type of event that will cause the notification to be sent. For details about notification types supported by Auto Scaling, see DescribeAutoScalingNotificationTypes.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.