/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace AutoScaling { namespace Model { /** *

Describes a notification.

See Also:

AWS * API Reference

*/ class NotificationConfiguration { public: AWS_AUTOSCALING_API NotificationConfiguration(); AWS_AUTOSCALING_API NotificationConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_AUTOSCALING_API NotificationConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The name of the Auto Scaling group.

*/ inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; } /** *

The name of the Auto Scaling group.

*/ inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); } /** *

The name of the Auto Scaling group.

*/ inline NotificationConfiguration& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;} /** *

The name of the Auto Scaling group.

*/ inline NotificationConfiguration& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;} /** *

The name of the Auto Scaling group.

*/ inline NotificationConfiguration& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic.

*/ inline const Aws::String& GetTopicARN() const{ return m_topicARN; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic.

*/ inline bool TopicARNHasBeenSet() const { return m_topicARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic.

*/ inline void SetTopicARN(const Aws::String& value) { m_topicARNHasBeenSet = true; m_topicARN = value; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic.

*/ inline void SetTopicARN(Aws::String&& value) { m_topicARNHasBeenSet = true; m_topicARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic.

*/ inline void SetTopicARN(const char* value) { m_topicARNHasBeenSet = true; m_topicARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic.

*/ inline NotificationConfiguration& WithTopicARN(const Aws::String& value) { SetTopicARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic.

*/ inline NotificationConfiguration& WithTopicARN(Aws::String&& value) { SetTopicARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic.

*/ inline NotificationConfiguration& WithTopicARN(const char* value) { SetTopicARN(value); return *this;} /** *

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

*/ inline const Aws::String& GetNotificationType() const{ return m_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

*/ inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; } /** *

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

*/ inline void SetNotificationType(const Aws::String& value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; } /** *

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

*/ inline void SetNotificationType(Aws::String&& value) { m_notificationTypeHasBeenSet = true; m_notificationType = std::move(value); } /** *

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

*/ inline void SetNotificationType(const char* value) { m_notificationTypeHasBeenSet = true; m_notificationType.assign(value); } /** *

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

*/ inline NotificationConfiguration& WithNotificationType(const Aws::String& value) { SetNotificationType(value); return *this;} /** *

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

*/ inline NotificationConfiguration& WithNotificationType(Aws::String&& value) { SetNotificationType(std::move(value)); return *this;} /** *

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

*/ inline NotificationConfiguration& WithNotificationType(const char* value) { SetNotificationType(value); return *this;} private: Aws::String m_autoScalingGroupName; bool m_autoScalingGroupNameHasBeenSet = false; Aws::String m_topicARN; bool m_topicARNHasBeenSet = false; Aws::String m_notificationType; bool m_notificationTypeHasBeenSet = false; }; } // namespace Model } // namespace AutoScaling } // namespace Aws