AWS SDK for C++  1.9.102
AWS SDK for C++
LifecycleHook.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace AutoScaling
22 {
23 namespace Model
24 {
25 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetLifecycleHookName() const{ return m_lifecycleHookName; }
48 
52  inline bool LifecycleHookNameHasBeenSet() const { return m_lifecycleHookNameHasBeenSet; }
53 
57  inline void SetLifecycleHookName(const Aws::String& value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName = value; }
58 
62  inline void SetLifecycleHookName(Aws::String&& value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName = std::move(value); }
63 
67  inline void SetLifecycleHookName(const char* value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName.assign(value); }
68 
72  inline LifecycleHook& WithLifecycleHookName(const Aws::String& value) { SetLifecycleHookName(value); return *this;}
73 
77  inline LifecycleHook& WithLifecycleHookName(Aws::String&& value) { SetLifecycleHookName(std::move(value)); return *this;}
78 
82  inline LifecycleHook& WithLifecycleHookName(const char* value) { SetLifecycleHookName(value); return *this;}
83 
84 
88  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
89 
93  inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
94 
98  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
99 
103  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
104 
108  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
109 
113  inline LifecycleHook& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
114 
118  inline LifecycleHook& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
119 
123  inline LifecycleHook& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
124 
125 
132  inline const Aws::String& GetLifecycleTransition() const{ return m_lifecycleTransition; }
133 
140  inline bool LifecycleTransitionHasBeenSet() const { return m_lifecycleTransitionHasBeenSet; }
141 
148  inline void SetLifecycleTransition(const Aws::String& value) { m_lifecycleTransitionHasBeenSet = true; m_lifecycleTransition = value; }
149 
156  inline void SetLifecycleTransition(Aws::String&& value) { m_lifecycleTransitionHasBeenSet = true; m_lifecycleTransition = std::move(value); }
157 
164  inline void SetLifecycleTransition(const char* value) { m_lifecycleTransitionHasBeenSet = true; m_lifecycleTransition.assign(value); }
165 
172  inline LifecycleHook& WithLifecycleTransition(const Aws::String& value) { SetLifecycleTransition(value); return *this;}
173 
180  inline LifecycleHook& WithLifecycleTransition(Aws::String&& value) { SetLifecycleTransition(std::move(value)); return *this;}
181 
188  inline LifecycleHook& WithLifecycleTransition(const char* value) { SetLifecycleTransition(value); return *this;}
189 
190 
196  inline const Aws::String& GetNotificationTargetARN() const{ return m_notificationTargetARN; }
197 
203  inline bool NotificationTargetARNHasBeenSet() const { return m_notificationTargetARNHasBeenSet; }
204 
210  inline void SetNotificationTargetARN(const Aws::String& value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN = value; }
211 
217  inline void SetNotificationTargetARN(Aws::String&& value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN = std::move(value); }
218 
224  inline void SetNotificationTargetARN(const char* value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN.assign(value); }
225 
231  inline LifecycleHook& WithNotificationTargetARN(const Aws::String& value) { SetNotificationTargetARN(value); return *this;}
232 
238  inline LifecycleHook& WithNotificationTargetARN(Aws::String&& value) { SetNotificationTargetARN(std::move(value)); return *this;}
239 
245  inline LifecycleHook& WithNotificationTargetARN(const char* value) { SetNotificationTargetARN(value); return *this;}
246 
247 
252  inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
253 
258  inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
259 
264  inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
265 
270  inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
271 
276  inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
277 
282  inline LifecycleHook& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
283 
288  inline LifecycleHook& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
289 
294  inline LifecycleHook& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
295 
296 
301  inline const Aws::String& GetNotificationMetadata() const{ return m_notificationMetadata; }
302 
307  inline bool NotificationMetadataHasBeenSet() const { return m_notificationMetadataHasBeenSet; }
308 
313  inline void SetNotificationMetadata(const Aws::String& value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata = value; }
314 
319  inline void SetNotificationMetadata(Aws::String&& value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata = std::move(value); }
320 
325  inline void SetNotificationMetadata(const char* value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata.assign(value); }
326 
331  inline LifecycleHook& WithNotificationMetadata(const Aws::String& value) { SetNotificationMetadata(value); return *this;}
332 
337  inline LifecycleHook& WithNotificationMetadata(Aws::String&& value) { SetNotificationMetadata(std::move(value)); return *this;}
338 
343  inline LifecycleHook& WithNotificationMetadata(const char* value) { SetNotificationMetadata(value); return *this;}
344 
345 
351  inline int GetHeartbeatTimeout() const{ return m_heartbeatTimeout; }
352 
358  inline bool HeartbeatTimeoutHasBeenSet() const { return m_heartbeatTimeoutHasBeenSet; }
359 
365  inline void SetHeartbeatTimeout(int value) { m_heartbeatTimeoutHasBeenSet = true; m_heartbeatTimeout = value; }
366 
372  inline LifecycleHook& WithHeartbeatTimeout(int value) { SetHeartbeatTimeout(value); return *this;}
373 
374 
381  inline int GetGlobalTimeout() const{ return m_globalTimeout; }
382 
389  inline bool GlobalTimeoutHasBeenSet() const { return m_globalTimeoutHasBeenSet; }
390 
397  inline void SetGlobalTimeout(int value) { m_globalTimeoutHasBeenSet = true; m_globalTimeout = value; }
398 
405  inline LifecycleHook& WithGlobalTimeout(int value) { SetGlobalTimeout(value); return *this;}
406 
407 
413  inline const Aws::String& GetDefaultResult() const{ return m_defaultResult; }
414 
420  inline bool DefaultResultHasBeenSet() const { return m_defaultResultHasBeenSet; }
421 
427  inline void SetDefaultResult(const Aws::String& value) { m_defaultResultHasBeenSet = true; m_defaultResult = value; }
428 
434  inline void SetDefaultResult(Aws::String&& value) { m_defaultResultHasBeenSet = true; m_defaultResult = std::move(value); }
435 
441  inline void SetDefaultResult(const char* value) { m_defaultResultHasBeenSet = true; m_defaultResult.assign(value); }
442 
448  inline LifecycleHook& WithDefaultResult(const Aws::String& value) { SetDefaultResult(value); return *this;}
449 
455  inline LifecycleHook& WithDefaultResult(Aws::String&& value) { SetDefaultResult(std::move(value)); return *this;}
456 
462  inline LifecycleHook& WithDefaultResult(const char* value) { SetDefaultResult(value); return *this;}
463 
464  private:
465 
466  Aws::String m_lifecycleHookName;
467  bool m_lifecycleHookNameHasBeenSet;
468 
469  Aws::String m_autoScalingGroupName;
470  bool m_autoScalingGroupNameHasBeenSet;
471 
472  Aws::String m_lifecycleTransition;
473  bool m_lifecycleTransitionHasBeenSet;
474 
475  Aws::String m_notificationTargetARN;
476  bool m_notificationTargetARNHasBeenSet;
477 
478  Aws::String m_roleARN;
479  bool m_roleARNHasBeenSet;
480 
481  Aws::String m_notificationMetadata;
482  bool m_notificationMetadataHasBeenSet;
483 
484  int m_heartbeatTimeout;
485  bool m_heartbeatTimeoutHasBeenSet;
486 
487  int m_globalTimeout;
488  bool m_globalTimeoutHasBeenSet;
489 
490  Aws::String m_defaultResult;
491  bool m_defaultResultHasBeenSet;
492  };
493 
494 } // namespace Model
495 } // namespace AutoScaling
496 } // namespace Aws
Aws::AutoScaling::Model::LifecycleHook::WithDefaultResult
LifecycleHook & WithDefaultResult(Aws::String &&value)
Definition: LifecycleHook.h:455
Aws::AutoScaling::Model::LifecycleHook::WithAutoScalingGroupName
LifecycleHook & WithAutoScalingGroupName(Aws::String &&value)
Definition: LifecycleHook.h:118
Aws::AutoScaling::Model::LifecycleHook::GetLifecycleTransition
const Aws::String & GetLifecycleTransition() const
Definition: LifecycleHook.h:132
Aws::AutoScaling::Model::LifecycleHook::SetGlobalTimeout
void SetGlobalTimeout(int value)
Definition: LifecycleHook.h:397
Aws::AutoScaling::Model::LifecycleHook::DefaultResultHasBeenSet
bool DefaultResultHasBeenSet() const
Definition: LifecycleHook.h:420
Aws::AutoScaling::Model::LifecycleHook::LifecycleTransitionHasBeenSet
bool LifecycleTransitionHasBeenSet() const
Definition: LifecycleHook.h:140
Aws::AutoScaling::Model::LifecycleHook::GetDefaultResult
const Aws::String & GetDefaultResult() const
Definition: LifecycleHook.h:413
Aws::AutoScaling::Model::LifecycleHook::GetLifecycleHookName
const Aws::String & GetLifecycleHookName() const
Definition: LifecycleHook.h:47
Aws::AutoScaling::Model::LifecycleHook::SetNotificationMetadata
void SetNotificationMetadata(const char *value)
Definition: LifecycleHook.h:325
Aws::AutoScaling::Model::LifecycleHook::WithGlobalTimeout
LifecycleHook & WithGlobalTimeout(int value)
Definition: LifecycleHook.h:405
Aws::AutoScaling::Model::LifecycleHook::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::AutoScaling::Model::LifecycleHook::WithNotificationTargetARN
LifecycleHook & WithNotificationTargetARN(const char *value)
Definition: LifecycleHook.h:245
Aws::AutoScaling::Model::LifecycleHook::SetAutoScalingGroupName
void SetAutoScalingGroupName(const Aws::String &value)
Definition: LifecycleHook.h:98
Aws::AutoScaling::Model::LifecycleHook::SetLifecycleHookName
void SetLifecycleHookName(const char *value)
Definition: LifecycleHook.h:67
Aws::AutoScaling::Model::LifecycleHook::SetNotificationTargetARN
void SetNotificationTargetARN(const Aws::String &value)
Definition: LifecycleHook.h:210
Aws::AutoScaling::Model::LifecycleHook::WithRoleARN
LifecycleHook & WithRoleARN(const char *value)
Definition: LifecycleHook.h:294
Aws::AutoScaling::Model::LifecycleHook::RoleARNHasBeenSet
bool RoleARNHasBeenSet() const
Definition: LifecycleHook.h:258
Aws::AutoScaling::Model::LifecycleHook::SetDefaultResult
void SetDefaultResult(const char *value)
Definition: LifecycleHook.h:441
Aws::AutoScaling::Model::LifecycleHook::WithDefaultResult
LifecycleHook & WithDefaultResult(const char *value)
Definition: LifecycleHook.h:462
Aws::AutoScaling::Model::LifecycleHook::WithLifecycleHookName
LifecycleHook & WithLifecycleHookName(const Aws::String &value)
Definition: LifecycleHook.h:72
Aws::AutoScaling::Model::LifecycleHook::SetDefaultResult
void SetDefaultResult(Aws::String &&value)
Definition: LifecycleHook.h:434
Aws::AutoScaling::Model::LifecycleHook::SetLifecycleTransition
void SetLifecycleTransition(const char *value)
Definition: LifecycleHook.h:164
Aws::AutoScaling::Model::LifecycleHook::SetRoleARN
void SetRoleARN(Aws::String &&value)
Definition: LifecycleHook.h:270
Aws::AutoScaling::Model::LifecycleHook::GetAutoScalingGroupName
const Aws::String & GetAutoScalingGroupName() const
Definition: LifecycleHook.h:88
Aws::AutoScaling::Model::LifecycleHook::LifecycleHook
LifecycleHook(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::AutoScaling::Model::LifecycleHook::WithHeartbeatTimeout
LifecycleHook & WithHeartbeatTimeout(int value)
Definition: LifecycleHook.h:372
Aws::AutoScaling::Model::LifecycleHook::WithNotificationMetadata
LifecycleHook & WithNotificationMetadata(const Aws::String &value)
Definition: LifecycleHook.h:331
Aws::AutoScaling::Model::LifecycleHook::LifecycleHook
LifecycleHook()
Aws::AutoScaling::Model::LifecycleHook::WithLifecycleTransition
LifecycleHook & WithLifecycleTransition(const Aws::String &value)
Definition: LifecycleHook.h:172
Aws::AutoScaling::Model::LifecycleHook::SetRoleARN
void SetRoleARN(const Aws::String &value)
Definition: LifecycleHook.h:264
Aws::AutoScaling::Model::LifecycleHook
Definition: LifecycleHook.h:34
Aws::AutoScaling::Model::LifecycleHook::SetNotificationMetadata
void SetNotificationMetadata(Aws::String &&value)
Definition: LifecycleHook.h:319
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::AutoScaling::Model::LifecycleHook::GetGlobalTimeout
int GetGlobalTimeout() const
Definition: LifecycleHook.h:381
Aws::AutoScaling::Model::LifecycleHook::WithLifecycleHookName
LifecycleHook & WithLifecycleHookName(Aws::String &&value)
Definition: LifecycleHook.h:77
Aws::AutoScaling::Model::LifecycleHook::SetDefaultResult
void SetDefaultResult(const Aws::String &value)
Definition: LifecycleHook.h:427
Aws::AutoScaling::Model::LifecycleHook::WithLifecycleTransition
LifecycleHook & WithLifecycleTransition(const char *value)
Definition: LifecycleHook.h:188
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::AutoScaling::Model::LifecycleHook::GlobalTimeoutHasBeenSet
bool GlobalTimeoutHasBeenSet() const
Definition: LifecycleHook.h:389
Aws::AutoScaling::Model::LifecycleHook::WithNotificationMetadata
LifecycleHook & WithNotificationMetadata(Aws::String &&value)
Definition: LifecycleHook.h:337
Aws::AutoScaling::Model::LifecycleHook::SetLifecycleTransition
void SetLifecycleTransition(const Aws::String &value)
Definition: LifecycleHook.h:148
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::LifecycleHook::WithRoleARN
LifecycleHook & WithRoleARN(Aws::String &&value)
Definition: LifecycleHook.h:288
Aws::AutoScaling::Model::LifecycleHook::SetLifecycleHookName
void SetLifecycleHookName(Aws::String &&value)
Definition: LifecycleHook.h:62
Aws::AutoScaling::Model::LifecycleHook::SetLifecycleTransition
void SetLifecycleTransition(Aws::String &&value)
Definition: LifecycleHook.h:156
Aws::AutoScaling::Model::LifecycleHook::NotificationTargetARNHasBeenSet
bool NotificationTargetARNHasBeenSet() const
Definition: LifecycleHook.h:203
AWSString.h
Aws::AutoScaling::Model::LifecycleHook::GetHeartbeatTimeout
int GetHeartbeatTimeout() const
Definition: LifecycleHook.h:351
Aws::AutoScaling::Model::LifecycleHook::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::LifecycleHook::NotificationMetadataHasBeenSet
bool NotificationMetadataHasBeenSet() const
Definition: LifecycleHook.h:307
Aws::AutoScaling::Model::LifecycleHook::SetNotificationMetadata
void SetNotificationMetadata(const Aws::String &value)
Definition: LifecycleHook.h:313
Aws::AutoScaling::Model::LifecycleHook::SetAutoScalingGroupName
void SetAutoScalingGroupName(Aws::String &&value)
Definition: LifecycleHook.h:103
Aws::AutoScaling::Model::LifecycleHook::WithNotificationTargetARN
LifecycleHook & WithNotificationTargetARN(const Aws::String &value)
Definition: LifecycleHook.h:231
Aws::AutoScaling::Model::LifecycleHook::SetLifecycleHookName
void SetLifecycleHookName(const Aws::String &value)
Definition: LifecycleHook.h:57
Aws::AutoScaling::Model::LifecycleHook::SetHeartbeatTimeout
void SetHeartbeatTimeout(int value)
Definition: LifecycleHook.h:365
Aws::AutoScaling::Model::LifecycleHook::WithLifecycleTransition
LifecycleHook & WithLifecycleTransition(Aws::String &&value)
Definition: LifecycleHook.h:180
Aws::AutoScaling::Model::LifecycleHook::LifecycleHookNameHasBeenSet
bool LifecycleHookNameHasBeenSet() const
Definition: LifecycleHook.h:52
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::LifecycleHook::WithRoleARN
LifecycleHook & WithRoleARN(const Aws::String &value)
Definition: LifecycleHook.h:282
Aws::AutoScaling::Model::LifecycleHook::GetRoleARN
const Aws::String & GetRoleARN() const
Definition: LifecycleHook.h:252
Aws::AutoScaling::Model::LifecycleHook::WithNotificationMetadata
LifecycleHook & WithNotificationMetadata(const char *value)
Definition: LifecycleHook.h:343
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::LifecycleHook::SetAutoScalingGroupName
void SetAutoScalingGroupName(const char *value)
Definition: LifecycleHook.h:108
Aws::AutoScaling::Model::LifecycleHook::operator=
LifecycleHook & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::LifecycleHook::SetRoleARN
void SetRoleARN(const char *value)
Definition: LifecycleHook.h:276
Aws::AutoScaling::Model::LifecycleHook::WithNotificationTargetARN
LifecycleHook & WithNotificationTargetARN(Aws::String &&value)
Definition: LifecycleHook.h:238
Aws::AutoScaling::Model::LifecycleHook::GetNotificationTargetARN
const Aws::String & GetNotificationTargetARN() const
Definition: LifecycleHook.h:196
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AutoScaling::Model::LifecycleHook::WithDefaultResult
LifecycleHook & WithDefaultResult(const Aws::String &value)
Definition: LifecycleHook.h:448
index
int index
Definition: cJSON.h:181
Aws::AutoScaling::Model::LifecycleHook::SetNotificationTargetARN
void SetNotificationTargetARN(const char *value)
Definition: LifecycleHook.h:224
Aws::AutoScaling::Model::LifecycleHook::WithLifecycleHookName
LifecycleHook & WithLifecycleHookName(const char *value)
Definition: LifecycleHook.h:82
Aws::AutoScaling::Model::LifecycleHook::WithAutoScalingGroupName
LifecycleHook & WithAutoScalingGroupName(const char *value)
Definition: LifecycleHook.h:123
Aws::AutoScaling::Model::LifecycleHook::WithAutoScalingGroupName
LifecycleHook & WithAutoScalingGroupName(const Aws::String &value)
Definition: LifecycleHook.h:113
Aws::AutoScaling::Model::LifecycleHook::SetNotificationTargetARN
void SetNotificationTargetARN(Aws::String &&value)
Definition: LifecycleHook.h:217
Aws::AutoScaling::Model::LifecycleHook::AutoScalingGroupNameHasBeenSet
bool AutoScalingGroupNameHasBeenSet() const
Definition: LifecycleHook.h:93
Aws::AutoScaling::Model::LifecycleHook::HeartbeatTimeoutHasBeenSet
bool HeartbeatTimeoutHasBeenSet() const
Definition: LifecycleHook.h:358
Aws::AutoScaling::Model::LifecycleHook::GetNotificationMetadata
const Aws::String & GetNotificationMetadata() const
Definition: LifecycleHook.h:301