AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
LifecycleHook.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
31 public:
32 AWS_AUTOSCALING_API LifecycleHook() = default;
33 AWS_AUTOSCALING_API LifecycleHook(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_AUTOSCALING_API LifecycleHook& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetLifecycleHookName() const { return m_lifecycleHookName; }
44 inline bool LifecycleHookNameHasBeenSet() const { return m_lifecycleHookNameHasBeenSet; }
45 template <typename LifecycleHookNameT = Aws::String>
46 void SetLifecycleHookName(LifecycleHookNameT&& value) {
47 m_lifecycleHookNameHasBeenSet = true;
48 m_lifecycleHookName = std::forward<LifecycleHookNameT>(value);
49 }
50 template <typename LifecycleHookNameT = Aws::String>
51 LifecycleHook& WithLifecycleHookName(LifecycleHookNameT&& value) {
52 SetLifecycleHookName(std::forward<LifecycleHookNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
62 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
63 template <typename AutoScalingGroupNameT = Aws::String>
64 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) {
65 m_autoScalingGroupNameHasBeenSet = true;
66 m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value);
67 }
68 template <typename AutoScalingGroupNameT = Aws::String>
69 LifecycleHook& WithAutoScalingGroupName(AutoScalingGroupNameT&& value) {
70 SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetLifecycleTransition() const { return m_lifecycleTransition; }
82 inline bool LifecycleTransitionHasBeenSet() const { return m_lifecycleTransitionHasBeenSet; }
83 template <typename LifecycleTransitionT = Aws::String>
84 void SetLifecycleTransition(LifecycleTransitionT&& value) {
85 m_lifecycleTransitionHasBeenSet = true;
86 m_lifecycleTransition = std::forward<LifecycleTransitionT>(value);
87 }
88 template <typename LifecycleTransitionT = Aws::String>
89 LifecycleHook& WithLifecycleTransition(LifecycleTransitionT&& value) {
90 SetLifecycleTransition(std::forward<LifecycleTransitionT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetNotificationTargetARN() const { return m_notificationTargetARN; }
101 inline bool NotificationTargetARNHasBeenSet() const { return m_notificationTargetARNHasBeenSet; }
102 template <typename NotificationTargetARNT = Aws::String>
103 void SetNotificationTargetARN(NotificationTargetARNT&& value) {
104 m_notificationTargetARNHasBeenSet = true;
105 m_notificationTargetARN = std::forward<NotificationTargetARNT>(value);
106 }
107 template <typename NotificationTargetARNT = Aws::String>
108 LifecycleHook& WithNotificationTargetARN(NotificationTargetARNT&& value) {
109 SetNotificationTargetARN(std::forward<NotificationTargetARNT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
120 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
121 template <typename RoleARNT = Aws::String>
122 void SetRoleARN(RoleARNT&& value) {
123 m_roleARNHasBeenSet = true;
124 m_roleARN = std::forward<RoleARNT>(value);
125 }
126 template <typename RoleARNT = Aws::String>
127 LifecycleHook& WithRoleARN(RoleARNT&& value) {
128 SetRoleARN(std::forward<RoleARNT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::String& GetNotificationMetadata() const { return m_notificationMetadata; }
139 inline bool NotificationMetadataHasBeenSet() const { return m_notificationMetadataHasBeenSet; }
140 template <typename NotificationMetadataT = Aws::String>
141 void SetNotificationMetadata(NotificationMetadataT&& value) {
142 m_notificationMetadataHasBeenSet = true;
143 m_notificationMetadata = std::forward<NotificationMetadataT>(value);
144 }
145 template <typename NotificationMetadataT = Aws::String>
146 LifecycleHook& WithNotificationMetadata(NotificationMetadataT&& value) {
147 SetNotificationMetadata(std::forward<NotificationMetadataT>(value));
148 return *this;
149 }
151
153
158 inline int GetHeartbeatTimeout() const { return m_heartbeatTimeout; }
159 inline bool HeartbeatTimeoutHasBeenSet() const { return m_heartbeatTimeoutHasBeenSet; }
160 inline void SetHeartbeatTimeout(int value) {
161 m_heartbeatTimeoutHasBeenSet = true;
162 m_heartbeatTimeout = value;
163 }
165 SetHeartbeatTimeout(value);
166 return *this;
167 }
169
171
176 inline int GetGlobalTimeout() const { return m_globalTimeout; }
177 inline bool GlobalTimeoutHasBeenSet() const { return m_globalTimeoutHasBeenSet; }
178 inline void SetGlobalTimeout(int value) {
179 m_globalTimeoutHasBeenSet = true;
180 m_globalTimeout = value;
181 }
182 inline LifecycleHook& WithGlobalTimeout(int value) {
183 SetGlobalTimeout(value);
184 return *this;
185 }
187
189
194 inline const Aws::String& GetDefaultResult() const { return m_defaultResult; }
195 inline bool DefaultResultHasBeenSet() const { return m_defaultResultHasBeenSet; }
196 template <typename DefaultResultT = Aws::String>
197 void SetDefaultResult(DefaultResultT&& value) {
198 m_defaultResultHasBeenSet = true;
199 m_defaultResult = std::forward<DefaultResultT>(value);
200 }
201 template <typename DefaultResultT = Aws::String>
202 LifecycleHook& WithDefaultResult(DefaultResultT&& value) {
203 SetDefaultResult(std::forward<DefaultResultT>(value));
204 return *this;
205 }
207 private:
208 Aws::String m_lifecycleHookName;
209
210 Aws::String m_autoScalingGroupName;
211
212 Aws::String m_lifecycleTransition;
213
214 Aws::String m_notificationTargetARN;
215
216 Aws::String m_roleARN;
217
218 Aws::String m_notificationMetadata;
219
220 int m_heartbeatTimeout{0};
221
222 int m_globalTimeout{0};
223
224 Aws::String m_defaultResult;
225 bool m_lifecycleHookNameHasBeenSet = false;
226 bool m_autoScalingGroupNameHasBeenSet = false;
227 bool m_lifecycleTransitionHasBeenSet = false;
228 bool m_notificationTargetARNHasBeenSet = false;
229 bool m_roleARNHasBeenSet = false;
230 bool m_notificationMetadataHasBeenSet = false;
231 bool m_heartbeatTimeoutHasBeenSet = false;
232 bool m_globalTimeoutHasBeenSet = false;
233 bool m_defaultResultHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace AutoScaling
238} // namespace Aws
AWS_AUTOSCALING_API LifecycleHook()=default
LifecycleHook & WithDefaultResult(DefaultResultT &&value)
AWS_AUTOSCALING_API LifecycleHook(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetNotificationMetadata(NotificationMetadataT &&value)
void SetLifecycleHookName(LifecycleHookNameT &&value)
AWS_AUTOSCALING_API LifecycleHook & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LifecycleHook & WithRoleARN(RoleARNT &&value)
const Aws::String & GetNotificationTargetARN() const
const Aws::String & GetLifecycleHookName() const
LifecycleHook & WithNotificationTargetARN(NotificationTargetARNT &&value)
const Aws::String & GetDefaultResult() const
LifecycleHook & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
LifecycleHook & WithLifecycleTransition(LifecycleTransitionT &&value)
void SetDefaultResult(DefaultResultT &&value)
const Aws::String & GetAutoScalingGroupName() const
LifecycleHook & WithHeartbeatTimeout(int value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetRoleARN() const
LifecycleHook & WithGlobalTimeout(int value)
LifecycleHook & WithNotificationMetadata(NotificationMetadataT &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetLifecycleTransition() const
void SetNotificationTargetARN(NotificationTargetARNT &&value)
LifecycleHook & WithLifecycleHookName(LifecycleHookNameT &&value)
void SetLifecycleTransition(LifecycleTransitionT &&value)
void SetAutoScalingGroupName(AutoScalingGroupNameT &&value)
const Aws::String & GetNotificationMetadata() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream