AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
NotificationConfiguration.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace AutoScaling {
20namespace Model {
21
28 public:
29 AWS_AUTOSCALING_API NotificationConfiguration() = default;
30 AWS_AUTOSCALING_API NotificationConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_AUTOSCALING_API NotificationConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
41 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
42 template <typename AutoScalingGroupNameT = Aws::String>
43 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) {
44 m_autoScalingGroupNameHasBeenSet = true;
45 m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value);
46 }
47 template <typename AutoScalingGroupNameT = Aws::String>
48 NotificationConfiguration& WithAutoScalingGroupName(AutoScalingGroupNameT&& value) {
49 SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetTopicARN() const { return m_topicARN; }
59 inline bool TopicARNHasBeenSet() const { return m_topicARNHasBeenSet; }
60 template <typename TopicARNT = Aws::String>
61 void SetTopicARN(TopicARNT&& value) {
62 m_topicARNHasBeenSet = true;
63 m_topicARN = std::forward<TopicARNT>(value);
64 }
65 template <typename TopicARNT = Aws::String>
67 SetTopicARN(std::forward<TopicARNT>(value));
68 return *this;
69 }
71
73
81 inline const Aws::String& GetNotificationType() const { return m_notificationType; }
82 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
83 template <typename NotificationTypeT = Aws::String>
84 void SetNotificationType(NotificationTypeT&& value) {
85 m_notificationTypeHasBeenSet = true;
86 m_notificationType = std::forward<NotificationTypeT>(value);
87 }
88 template <typename NotificationTypeT = Aws::String>
89 NotificationConfiguration& WithNotificationType(NotificationTypeT&& value) {
90 SetNotificationType(std::forward<NotificationTypeT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_autoScalingGroupName;
96
97 Aws::String m_topicARN;
98
99 Aws::String m_notificationType;
100 bool m_autoScalingGroupNameHasBeenSet = false;
101 bool m_topicARNHasBeenSet = false;
102 bool m_notificationTypeHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace AutoScaling
107} // namespace Aws
AWS_AUTOSCALING_API NotificationConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAutoScalingGroupName(AutoScalingGroupNameT &&value)
NotificationConfiguration & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
AWS_AUTOSCALING_API NotificationConfiguration()=default
NotificationConfiguration & WithNotificationType(NotificationTypeT &&value)
NotificationConfiguration & WithTopicARN(TopicARNT &&value)
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
AWS_AUTOSCALING_API NotificationConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream