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 NotificationConfigurationclone()booleanequals(Object obj)StringgetAutoScalingGroupName()The name of the group.StringgetNotificationType()One of the following event notification types:StringgetTopicARN()The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.inthashCode()voidsetAutoScalingGroupName(String autoScalingGroupName)The name of the group.voidsetNotificationType(String notificationType)One of the following event notification types:voidsetTopicARN(String topicARN)The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic.StringtoString()Returns a string representation of this object; useful for testing and debugging.NotificationConfigurationwithAutoScalingGroupName(String autoScalingGroupName)The name of the group.NotificationConfigurationwithNotificationType(String notificationType)One of the following event notification types:NotificationConfigurationwithTopicARN(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public NotificationConfiguration clone()
-
-