AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace AutoScaling
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_AUTOSCALING_API LifecycleHook();
38 AWS_AUTOSCALING_API LifecycleHook(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_AUTOSCALING_API LifecycleHook& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetLifecycleHookName() const{ return m_lifecycleHookName; }
50 inline bool LifecycleHookNameHasBeenSet() const { return m_lifecycleHookNameHasBeenSet; }
51 inline void SetLifecycleHookName(const Aws::String& value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName = value; }
52 inline void SetLifecycleHookName(Aws::String&& value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName = std::move(value); }
53 inline void SetLifecycleHookName(const char* value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName.assign(value); }
54 inline LifecycleHook& WithLifecycleHookName(const Aws::String& value) { SetLifecycleHookName(value); return *this;}
55 inline LifecycleHook& WithLifecycleHookName(Aws::String&& value) { SetLifecycleHookName(std::move(value)); return *this;}
56 inline LifecycleHook& WithLifecycleHookName(const char* value) { SetLifecycleHookName(value); return *this;}
58
60
63 inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
64 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
65 inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
66 inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
67 inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
68 inline LifecycleHook& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
69 inline LifecycleHook& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
70 inline LifecycleHook& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
72
74
79 inline const Aws::String& GetLifecycleTransition() const{ return m_lifecycleTransition; }
80 inline bool LifecycleTransitionHasBeenSet() const { return m_lifecycleTransitionHasBeenSet; }
81 inline void SetLifecycleTransition(const Aws::String& value) { m_lifecycleTransitionHasBeenSet = true; m_lifecycleTransition = value; }
82 inline void SetLifecycleTransition(Aws::String&& value) { m_lifecycleTransitionHasBeenSet = true; m_lifecycleTransition = std::move(value); }
83 inline void SetLifecycleTransition(const char* value) { m_lifecycleTransitionHasBeenSet = true; m_lifecycleTransition.assign(value); }
84 inline LifecycleHook& WithLifecycleTransition(const Aws::String& value) { SetLifecycleTransition(value); return *this;}
85 inline LifecycleHook& WithLifecycleTransition(Aws::String&& value) { SetLifecycleTransition(std::move(value)); return *this;}
86 inline LifecycleHook& WithLifecycleTransition(const char* value) { SetLifecycleTransition(value); return *this;}
88
90
94 inline const Aws::String& GetNotificationTargetARN() const{ return m_notificationTargetARN; }
95 inline bool NotificationTargetARNHasBeenSet() const { return m_notificationTargetARNHasBeenSet; }
96 inline void SetNotificationTargetARN(const Aws::String& value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN = value; }
97 inline void SetNotificationTargetARN(Aws::String&& value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN = std::move(value); }
98 inline void SetNotificationTargetARN(const char* value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN.assign(value); }
99 inline LifecycleHook& WithNotificationTargetARN(const Aws::String& value) { SetNotificationTargetARN(value); return *this;}
100 inline LifecycleHook& WithNotificationTargetARN(Aws::String&& value) { SetNotificationTargetARN(std::move(value)); return *this;}
101 inline LifecycleHook& WithNotificationTargetARN(const char* value) { SetNotificationTargetARN(value); return *this;}
103
105
109 inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
110 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
111 inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
112 inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
113 inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
114 inline LifecycleHook& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
115 inline LifecycleHook& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
116 inline LifecycleHook& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
118
120
124 inline const Aws::String& GetNotificationMetadata() const{ return m_notificationMetadata; }
125 inline bool NotificationMetadataHasBeenSet() const { return m_notificationMetadataHasBeenSet; }
126 inline void SetNotificationMetadata(const Aws::String& value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata = value; }
127 inline void SetNotificationMetadata(Aws::String&& value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata = std::move(value); }
128 inline void SetNotificationMetadata(const char* value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata.assign(value); }
129 inline LifecycleHook& WithNotificationMetadata(const Aws::String& value) { SetNotificationMetadata(value); return *this;}
130 inline LifecycleHook& WithNotificationMetadata(Aws::String&& value) { SetNotificationMetadata(std::move(value)); return *this;}
131 inline LifecycleHook& WithNotificationMetadata(const char* value) { SetNotificationMetadata(value); return *this;}
133
135
140 inline int GetHeartbeatTimeout() const{ return m_heartbeatTimeout; }
141 inline bool HeartbeatTimeoutHasBeenSet() const { return m_heartbeatTimeoutHasBeenSet; }
142 inline void SetHeartbeatTimeout(int value) { m_heartbeatTimeoutHasBeenSet = true; m_heartbeatTimeout = value; }
143 inline LifecycleHook& WithHeartbeatTimeout(int value) { SetHeartbeatTimeout(value); return *this;}
145
147
152 inline int GetGlobalTimeout() const{ return m_globalTimeout; }
153 inline bool GlobalTimeoutHasBeenSet() const { return m_globalTimeoutHasBeenSet; }
154 inline void SetGlobalTimeout(int value) { m_globalTimeoutHasBeenSet = true; m_globalTimeout = value; }
155 inline LifecycleHook& WithGlobalTimeout(int value) { SetGlobalTimeout(value); return *this;}
157
159
164 inline const Aws::String& GetDefaultResult() const{ return m_defaultResult; }
165 inline bool DefaultResultHasBeenSet() const { return m_defaultResultHasBeenSet; }
166 inline void SetDefaultResult(const Aws::String& value) { m_defaultResultHasBeenSet = true; m_defaultResult = value; }
167 inline void SetDefaultResult(Aws::String&& value) { m_defaultResultHasBeenSet = true; m_defaultResult = std::move(value); }
168 inline void SetDefaultResult(const char* value) { m_defaultResultHasBeenSet = true; m_defaultResult.assign(value); }
169 inline LifecycleHook& WithDefaultResult(const Aws::String& value) { SetDefaultResult(value); return *this;}
170 inline LifecycleHook& WithDefaultResult(Aws::String&& value) { SetDefaultResult(std::move(value)); return *this;}
171 inline LifecycleHook& WithDefaultResult(const char* value) { SetDefaultResult(value); return *this;}
173 private:
174
175 Aws::String m_lifecycleHookName;
176 bool m_lifecycleHookNameHasBeenSet = false;
177
178 Aws::String m_autoScalingGroupName;
179 bool m_autoScalingGroupNameHasBeenSet = false;
180
181 Aws::String m_lifecycleTransition;
182 bool m_lifecycleTransitionHasBeenSet = false;
183
184 Aws::String m_notificationTargetARN;
185 bool m_notificationTargetARNHasBeenSet = false;
186
187 Aws::String m_roleARN;
188 bool m_roleARNHasBeenSet = false;
189
190 Aws::String m_notificationMetadata;
191 bool m_notificationMetadataHasBeenSet = false;
192
193 int m_heartbeatTimeout;
194 bool m_heartbeatTimeoutHasBeenSet = false;
195
196 int m_globalTimeout;
197 bool m_globalTimeoutHasBeenSet = false;
198
199 Aws::String m_defaultResult;
200 bool m_defaultResultHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace AutoScaling
205} // namespace Aws
void SetDefaultResult(const char *value)
LifecycleHook & WithRoleARN(Aws::String &&value)
void SetRoleARN(const Aws::String &value)
LifecycleHook & WithLifecycleHookName(Aws::String &&value)
LifecycleHook & WithLifecycleHookName(const char *value)
LifecycleHook & WithNotificationMetadata(Aws::String &&value)
void SetLifecycleHookName(const char *value)
LifecycleHook & WithLifecycleTransition(const char *value)
AWS_AUTOSCALING_API LifecycleHook(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDefaultResult(const Aws::String &value)
LifecycleHook & WithNotificationTargetARN(const Aws::String &value)
AWS_AUTOSCALING_API LifecycleHook & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetNotificationTargetARN(const char *value)
void SetNotificationMetadata(const Aws::String &value)
const Aws::String & GetNotificationTargetARN() const
void SetNotificationTargetARN(const Aws::String &value)
LifecycleHook & WithLifecycleHookName(const Aws::String &value)
void SetRoleARN(Aws::String &&value)
void SetNotificationTargetARN(Aws::String &&value)
LifecycleHook & WithNotificationMetadata(const Aws::String &value)
void SetNotificationMetadata(const char *value)
const Aws::String & GetLifecycleHookName() const
LifecycleHook & WithNotificationMetadata(const char *value)
void SetAutoScalingGroupName(Aws::String &&value)
const Aws::String & GetDefaultResult() const
LifecycleHook & WithRoleARN(const Aws::String &value)
LifecycleHook & WithRoleARN(const char *value)
void SetLifecycleTransition(const char *value)
void SetAutoScalingGroupName(const Aws::String &value)
void SetNotificationMetadata(Aws::String &&value)
LifecycleHook & WithAutoScalingGroupName(const Aws::String &value)
LifecycleHook & WithLifecycleTransition(Aws::String &&value)
LifecycleHook & WithDefaultResult(const Aws::String &value)
void SetLifecycleHookName(const Aws::String &value)
LifecycleHook & WithNotificationTargetARN(const char *value)
const Aws::String & GetAutoScalingGroupName() const
void SetLifecycleHookName(Aws::String &&value)
LifecycleHook & WithAutoScalingGroupName(const char *value)
LifecycleHook & WithHeartbeatTimeout(int value)
LifecycleHook & WithLifecycleTransition(const Aws::String &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 & WithDefaultResult(Aws::String &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetLifecycleTransition(const Aws::String &value)
LifecycleHook & WithNotificationTargetARN(Aws::String &&value)
const Aws::String & GetLifecycleTransition() const
void SetAutoScalingGroupName(const char *value)
LifecycleHook & WithAutoScalingGroupName(Aws::String &&value)
void SetLifecycleTransition(Aws::String &&value)
const Aws::String & GetNotificationMetadata() const
void SetDefaultResult(Aws::String &&value)
LifecycleHook & WithDefaultResult(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream