Class NotificationConfiguration
- java.lang.Object
-
- com.amazonaws.services.autoscaling.model.NotificationConfiguration
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class NotificationConfiguration extends Object implements Serializable, Cloneable
Describes a notification.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NotificationConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationConfiguration
clone()
boolean
equals(Object obj)
String
getAutoScalingGroupName()
The name of the group.String
getNotificationType()
One of the following event notification types: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 group.void
setNotificationType(String notificationType)
One of the following event notification types: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.NotificationConfiguration
withAutoScalingGroupName(String autoScalingGroupName)
The name of the group.NotificationConfiguration
withNotificationType(String notificationType)
One of the following event notification types:NotificationConfiguration
withTopicARN(String topicARN)
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.
-
-
-
Method Detail
-
setAutoScalingGroupName
public void setAutoScalingGroupName(String autoScalingGroupName)
The name of the group.
- Parameters:
autoScalingGroupName
- The name of the group.
-
getAutoScalingGroupName
public String getAutoScalingGroupName()
The name of the group.
- Returns:
- The name of the group.
-
withAutoScalingGroupName
public NotificationConfiguration withAutoScalingGroupName(String autoScalingGroupName)
The name of the group.
- Parameters:
autoScalingGroupName
- The name of the group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTopicARN
public void setTopicARN(String topicARN)
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.
- Parameters:
topicARN
- The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.
-
getTopicARN
public String getTopicARN()
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.
- Returns:
- The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.
-
withTopicARN
public NotificationConfiguration withTopicARN(String topicARN)
The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.
- Parameters:
topicARN
- The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNotificationType
public void setNotificationType(String notificationType)
One of the following event notification types:
-
autoscaling:EC2_INSTANCE_LAUNCH
-
autoscaling:EC2_INSTANCE_LAUNCH_ERROR
-
autoscaling:EC2_INSTANCE_TERMINATE
-
autoscaling:EC2_INSTANCE_TERMINATE_ERROR
-
autoscaling:TEST_NOTIFICATION
- Parameters:
notificationType
- One of the following event notification types:-
autoscaling:EC2_INSTANCE_LAUNCH
-
autoscaling:EC2_INSTANCE_LAUNCH_ERROR
-
autoscaling:EC2_INSTANCE_TERMINATE
-
autoscaling:EC2_INSTANCE_TERMINATE_ERROR
-
autoscaling:TEST_NOTIFICATION
-
-
-
getNotificationType
public String getNotificationType()
One of the following event notification types:
-
autoscaling:EC2_INSTANCE_LAUNCH
-
autoscaling:EC2_INSTANCE_LAUNCH_ERROR
-
autoscaling:EC2_INSTANCE_TERMINATE
-
autoscaling:EC2_INSTANCE_TERMINATE_ERROR
-
autoscaling:TEST_NOTIFICATION
- Returns:
- One of the following event notification types:
-
autoscaling:EC2_INSTANCE_LAUNCH
-
autoscaling:EC2_INSTANCE_LAUNCH_ERROR
-
autoscaling:EC2_INSTANCE_TERMINATE
-
autoscaling:EC2_INSTANCE_TERMINATE_ERROR
-
autoscaling:TEST_NOTIFICATION
-
-
-
withNotificationType
public NotificationConfiguration withNotificationType(String notificationType)
One of the following event notification types:
-
autoscaling:EC2_INSTANCE_LAUNCH
-
autoscaling:EC2_INSTANCE_LAUNCH_ERROR
-
autoscaling:EC2_INSTANCE_TERMINATE
-
autoscaling:EC2_INSTANCE_TERMINATE_ERROR
-
autoscaling:TEST_NOTIFICATION
- Parameters:
notificationType
- One of the following event notification types:-
autoscaling:EC2_INSTANCE_LAUNCH
-
autoscaling:EC2_INSTANCE_LAUNCH_ERROR
-
autoscaling:EC2_INSTANCE_TERMINATE
-
autoscaling:EC2_INSTANCE_TERMINATE_ERROR
-
autoscaling:TEST_NOTIFICATION
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public NotificationConfiguration clone()
-
-