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:
  • Constructor Details

    • NotificationConfiguration

      public NotificationConfiguration()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public NotificationConfiguration clone()
      Overrides:
      clone in class Object