AWS SDK for C++  1.9.106
AWS SDK for C++
LifecycleHookSpecification.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 
50  {
51  public:
55 
56  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
57  void OutputToStream(Aws::OStream& oStream, const char* location) const;
58 
59 
63  inline const Aws::String& GetLifecycleHookName() const{ return m_lifecycleHookName; }
64 
68  inline bool LifecycleHookNameHasBeenSet() const { return m_lifecycleHookNameHasBeenSet; }
69 
73  inline void SetLifecycleHookName(const Aws::String& value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName = value; }
74 
78  inline void SetLifecycleHookName(Aws::String&& value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName = std::move(value); }
79 
83  inline void SetLifecycleHookName(const char* value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName.assign(value); }
84 
88  inline LifecycleHookSpecification& WithLifecycleHookName(const Aws::String& value) { SetLifecycleHookName(value); return *this;}
89 
93  inline LifecycleHookSpecification& WithLifecycleHookName(Aws::String&& value) { SetLifecycleHookName(std::move(value)); return *this;}
94 
98  inline LifecycleHookSpecification& WithLifecycleHookName(const char* value) { SetLifecycleHookName(value); return *this;}
99 
100 
106  inline const Aws::String& GetLifecycleTransition() const{ return m_lifecycleTransition; }
107 
113  inline bool LifecycleTransitionHasBeenSet() const { return m_lifecycleTransitionHasBeenSet; }
114 
120  inline void SetLifecycleTransition(const Aws::String& value) { m_lifecycleTransitionHasBeenSet = true; m_lifecycleTransition = value; }
121 
127  inline void SetLifecycleTransition(Aws::String&& value) { m_lifecycleTransitionHasBeenSet = true; m_lifecycleTransition = std::move(value); }
128 
134  inline void SetLifecycleTransition(const char* value) { m_lifecycleTransitionHasBeenSet = true; m_lifecycleTransition.assign(value); }
135 
141  inline LifecycleHookSpecification& WithLifecycleTransition(const Aws::String& value) { SetLifecycleTransition(value); return *this;}
142 
148  inline LifecycleHookSpecification& WithLifecycleTransition(Aws::String&& value) { SetLifecycleTransition(std::move(value)); return *this;}
149 
155  inline LifecycleHookSpecification& WithLifecycleTransition(const char* value) { SetLifecycleTransition(value); return *this;}
156 
157 
162  inline const Aws::String& GetNotificationMetadata() const{ return m_notificationMetadata; }
163 
168  inline bool NotificationMetadataHasBeenSet() const { return m_notificationMetadataHasBeenSet; }
169 
174  inline void SetNotificationMetadata(const Aws::String& value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata = value; }
175 
180  inline void SetNotificationMetadata(Aws::String&& value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata = std::move(value); }
181 
186  inline void SetNotificationMetadata(const char* value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata.assign(value); }
187 
192  inline LifecycleHookSpecification& WithNotificationMetadata(const Aws::String& value) { SetNotificationMetadata(value); return *this;}
193 
198  inline LifecycleHookSpecification& WithNotificationMetadata(Aws::String&& value) { SetNotificationMetadata(std::move(value)); return *this;}
199 
204  inline LifecycleHookSpecification& WithNotificationMetadata(const char* value) { SetNotificationMetadata(value); return *this;}
205 
206 
214  inline int GetHeartbeatTimeout() const{ return m_heartbeatTimeout; }
215 
223  inline bool HeartbeatTimeoutHasBeenSet() const { return m_heartbeatTimeoutHasBeenSet; }
224 
232  inline void SetHeartbeatTimeout(int value) { m_heartbeatTimeoutHasBeenSet = true; m_heartbeatTimeout = value; }
233 
241  inline LifecycleHookSpecification& WithHeartbeatTimeout(int value) { SetHeartbeatTimeout(value); return *this;}
242 
243 
250  inline const Aws::String& GetDefaultResult() const{ return m_defaultResult; }
251 
258  inline bool DefaultResultHasBeenSet() const { return m_defaultResultHasBeenSet; }
259 
266  inline void SetDefaultResult(const Aws::String& value) { m_defaultResultHasBeenSet = true; m_defaultResult = value; }
267 
274  inline void SetDefaultResult(Aws::String&& value) { m_defaultResultHasBeenSet = true; m_defaultResult = std::move(value); }
275 
282  inline void SetDefaultResult(const char* value) { m_defaultResultHasBeenSet = true; m_defaultResult.assign(value); }
283 
290  inline LifecycleHookSpecification& WithDefaultResult(const Aws::String& value) { SetDefaultResult(value); return *this;}
291 
298  inline LifecycleHookSpecification& WithDefaultResult(Aws::String&& value) { SetDefaultResult(std::move(value)); return *this;}
299 
306  inline LifecycleHookSpecification& WithDefaultResult(const char* value) { SetDefaultResult(value); return *this;}
307 
308 
314  inline const Aws::String& GetNotificationTargetARN() const{ return m_notificationTargetARN; }
315 
321  inline bool NotificationTargetARNHasBeenSet() const { return m_notificationTargetARNHasBeenSet; }
322 
328  inline void SetNotificationTargetARN(const Aws::String& value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN = value; }
329 
335  inline void SetNotificationTargetARN(Aws::String&& value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN = std::move(value); }
336 
342  inline void SetNotificationTargetARN(const char* value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN.assign(value); }
343 
349  inline LifecycleHookSpecification& WithNotificationTargetARN(const Aws::String& value) { SetNotificationTargetARN(value); return *this;}
350 
356  inline LifecycleHookSpecification& WithNotificationTargetARN(Aws::String&& value) { SetNotificationTargetARN(std::move(value)); return *this;}
357 
363  inline LifecycleHookSpecification& WithNotificationTargetARN(const char* value) { SetNotificationTargetARN(value); return *this;}
364 
365 
371  inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
372 
378  inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
379 
385  inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
386 
392  inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
393 
399  inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
400 
406  inline LifecycleHookSpecification& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
407 
413  inline LifecycleHookSpecification& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
414 
420  inline LifecycleHookSpecification& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
421 
422  private:
423 
424  Aws::String m_lifecycleHookName;
425  bool m_lifecycleHookNameHasBeenSet;
426 
427  Aws::String m_lifecycleTransition;
428  bool m_lifecycleTransitionHasBeenSet;
429 
430  Aws::String m_notificationMetadata;
431  bool m_notificationMetadataHasBeenSet;
432 
433  int m_heartbeatTimeout;
434  bool m_heartbeatTimeoutHasBeenSet;
435 
436  Aws::String m_defaultResult;
437  bool m_defaultResultHasBeenSet;
438 
439  Aws::String m_notificationTargetARN;
440  bool m_notificationTargetARNHasBeenSet;
441 
442  Aws::String m_roleARN;
443  bool m_roleARNHasBeenSet;
444  };
445 
446 } // namespace Model
447 } // namespace AutoScaling
448 } // namespace Aws
Aws::AutoScaling::Model::LifecycleHookSpecification::SetLifecycleHookName
void SetLifecycleHookName(const char *value)
Definition: LifecycleHookSpecification.h:83
Aws::AutoScaling::Model::LifecycleHookSpecification::WithDefaultResult
LifecycleHookSpecification & WithDefaultResult(Aws::String &&value)
Definition: LifecycleHookSpecification.h:298
Aws::AutoScaling::Model::LifecycleHookSpecification::GetNotificationTargetARN
const Aws::String & GetNotificationTargetARN() const
Definition: LifecycleHookSpecification.h:314
Aws::AutoScaling::Model::LifecycleHookSpecification::WithDefaultResult
LifecycleHookSpecification & WithDefaultResult(const char *value)
Definition: LifecycleHookSpecification.h:306
Aws::AutoScaling::Model::LifecycleHookSpecification::WithRoleARN
LifecycleHookSpecification & WithRoleARN(Aws::String &&value)
Definition: LifecycleHookSpecification.h:413
Aws::AutoScaling::Model::LifecycleHookSpecification::LifecycleTransitionHasBeenSet
bool LifecycleTransitionHasBeenSet() const
Definition: LifecycleHookSpecification.h:113
Aws::AutoScaling::Model::LifecycleHookSpecification
Definition: LifecycleHookSpecification.h:50
Aws::AutoScaling::Model::LifecycleHookSpecification::WithNotificationMetadata
LifecycleHookSpecification & WithNotificationMetadata(const char *value)
Definition: LifecycleHookSpecification.h:204
Aws::AutoScaling::Model::LifecycleHookSpecification::GetNotificationMetadata
const Aws::String & GetNotificationMetadata() const
Definition: LifecycleHookSpecification.h:162
Aws::AutoScaling::Model::LifecycleHookSpecification::WithNotificationTargetARN
LifecycleHookSpecification & WithNotificationTargetARN(const char *value)
Definition: LifecycleHookSpecification.h:363
Aws::AutoScaling::Model::LifecycleHookSpecification::SetLifecycleHookName
void SetLifecycleHookName(Aws::String &&value)
Definition: LifecycleHookSpecification.h:78
Aws::AutoScaling::Model::LifecycleHookSpecification::WithLifecycleTransition
LifecycleHookSpecification & WithLifecycleTransition(const Aws::String &value)
Definition: LifecycleHookSpecification.h:141
Aws::AutoScaling::Model::LifecycleHookSpecification::SetNotificationTargetARN
void SetNotificationTargetARN(const char *value)
Definition: LifecycleHookSpecification.h:342
Aws::AutoScaling::Model::LifecycleHookSpecification::SetDefaultResult
void SetDefaultResult(const char *value)
Definition: LifecycleHookSpecification.h:282
Aws::AutoScaling::Model::LifecycleHookSpecification::WithRoleARN
LifecycleHookSpecification & WithRoleARN(const char *value)
Definition: LifecycleHookSpecification.h:420
Aws::AutoScaling::Model::LifecycleHookSpecification::DefaultResultHasBeenSet
bool DefaultResultHasBeenSet() const
Definition: LifecycleHookSpecification.h:258
Aws::AutoScaling::Model::LifecycleHookSpecification::SetHeartbeatTimeout
void SetHeartbeatTimeout(int value)
Definition: LifecycleHookSpecification.h:232
Aws::AutoScaling::Model::LifecycleHookSpecification::SetRoleARN
void SetRoleARN(const Aws::String &value)
Definition: LifecycleHookSpecification.h:385
Aws::AutoScaling::Model::LifecycleHookSpecification::WithNotificationTargetARN
LifecycleHookSpecification & WithNotificationTargetARN(Aws::String &&value)
Definition: LifecycleHookSpecification.h:356
Aws::AutoScaling::Model::LifecycleHookSpecification::WithLifecycleTransition
LifecycleHookSpecification & WithLifecycleTransition(const char *value)
Definition: LifecycleHookSpecification.h:155
Aws::AutoScaling::Model::LifecycleHookSpecification::SetNotificationMetadata
void SetNotificationMetadata(const char *value)
Definition: LifecycleHookSpecification.h:186
AWSStreamFwd.h
Aws::AutoScaling::Model::LifecycleHookSpecification::WithRoleARN
LifecycleHookSpecification & WithRoleARN(const Aws::String &value)
Definition: LifecycleHookSpecification.h:406
Aws::AutoScaling::Model::LifecycleHookSpecification::WithLifecycleHookName
LifecycleHookSpecification & WithLifecycleHookName(const Aws::String &value)
Definition: LifecycleHookSpecification.h:88
Aws::AutoScaling::Model::LifecycleHookSpecification::LifecycleHookNameHasBeenSet
bool LifecycleHookNameHasBeenSet() const
Definition: LifecycleHookSpecification.h:68
Aws::AutoScaling::Model::LifecycleHookSpecification::operator=
LifecycleHookSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::AutoScaling::Model::LifecycleHookSpecification::SetDefaultResult
void SetDefaultResult(const Aws::String &value)
Definition: LifecycleHookSpecification.h:266
Aws::AutoScaling::Model::LifecycleHookSpecification::LifecycleHookSpecification
LifecycleHookSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::AutoScaling::Model::LifecycleHookSpecification::GetHeartbeatTimeout
int GetHeartbeatTimeout() const
Definition: LifecycleHookSpecification.h:214
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::AutoScaling::Model::LifecycleHookSpecification::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::AutoScaling::Model::LifecycleHookSpecification::GetLifecycleTransition
const Aws::String & GetLifecycleTransition() const
Definition: LifecycleHookSpecification.h:106
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::LifecycleHookSpecification::WithNotificationMetadata
LifecycleHookSpecification & WithNotificationMetadata(const Aws::String &value)
Definition: LifecycleHookSpecification.h:192
Aws::AutoScaling::Model::LifecycleHookSpecification::WithHeartbeatTimeout
LifecycleHookSpecification & WithHeartbeatTimeout(int value)
Definition: LifecycleHookSpecification.h:241
Aws::AutoScaling::Model::LifecycleHookSpecification::RoleARNHasBeenSet
bool RoleARNHasBeenSet() const
Definition: LifecycleHookSpecification.h:378
AWSString.h
Aws::AutoScaling::Model::LifecycleHookSpecification::WithLifecycleHookName
LifecycleHookSpecification & WithLifecycleHookName(const char *value)
Definition: LifecycleHookSpecification.h:98
Aws::AutoScaling::Model::LifecycleHookSpecification::WithNotificationMetadata
LifecycleHookSpecification & WithNotificationMetadata(Aws::String &&value)
Definition: LifecycleHookSpecification.h:198
Aws::AutoScaling::Model::LifecycleHookSpecification::WithLifecycleHookName
LifecycleHookSpecification & WithLifecycleHookName(Aws::String &&value)
Definition: LifecycleHookSpecification.h:93
Aws::AutoScaling::Model::LifecycleHookSpecification::WithNotificationTargetARN
LifecycleHookSpecification & WithNotificationTargetARN(const Aws::String &value)
Definition: LifecycleHookSpecification.h:349
Aws::AutoScaling::Model::LifecycleHookSpecification::SetNotificationMetadata
void SetNotificationMetadata(Aws::String &&value)
Definition: LifecycleHookSpecification.h:180
Aws::AutoScaling::Model::LifecycleHookSpecification::SetLifecycleHookName
void SetLifecycleHookName(const Aws::String &value)
Definition: LifecycleHookSpecification.h:73
Aws::AutoScaling::Model::LifecycleHookSpecification::SetRoleARN
void SetRoleARN(Aws::String &&value)
Definition: LifecycleHookSpecification.h:392
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::LifecycleHookSpecification::GetDefaultResult
const Aws::String & GetDefaultResult() const
Definition: LifecycleHookSpecification.h:250
Aws::AutoScaling::Model::LifecycleHookSpecification::SetLifecycleTransition
void SetLifecycleTransition(Aws::String &&value)
Definition: LifecycleHookSpecification.h:127
Aws::AutoScaling::Model::LifecycleHookSpecification::GetLifecycleHookName
const Aws::String & GetLifecycleHookName() const
Definition: LifecycleHookSpecification.h:63
Aws::AutoScaling::Model::LifecycleHookSpecification::SetNotificationTargetARN
void SetNotificationTargetARN(const Aws::String &value)
Definition: LifecycleHookSpecification.h:328
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::LifecycleHookSpecification::SetNotificationMetadata
void SetNotificationMetadata(const Aws::String &value)
Definition: LifecycleHookSpecification.h:174
Aws::AutoScaling::Model::LifecycleHookSpecification::LifecycleHookSpecification
LifecycleHookSpecification()
Aws::AutoScaling::Model::LifecycleHookSpecification::GetRoleARN
const Aws::String & GetRoleARN() const
Definition: LifecycleHookSpecification.h:371
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AutoScaling::Model::LifecycleHookSpecification::SetLifecycleTransition
void SetLifecycleTransition(const Aws::String &value)
Definition: LifecycleHookSpecification.h:120
index
int index
Definition: cJSON.h:181
Aws::AutoScaling::Model::LifecycleHookSpecification::NotificationTargetARNHasBeenSet
bool NotificationTargetARNHasBeenSet() const
Definition: LifecycleHookSpecification.h:321
Aws::AutoScaling::Model::LifecycleHookSpecification::SetDefaultResult
void SetDefaultResult(Aws::String &&value)
Definition: LifecycleHookSpecification.h:274
Aws::AutoScaling::Model::LifecycleHookSpecification::WithDefaultResult
LifecycleHookSpecification & WithDefaultResult(const Aws::String &value)
Definition: LifecycleHookSpecification.h:290
Aws::AutoScaling::Model::LifecycleHookSpecification::HeartbeatTimeoutHasBeenSet
bool HeartbeatTimeoutHasBeenSet() const
Definition: LifecycleHookSpecification.h:223
Aws::AutoScaling::Model::LifecycleHookSpecification::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::AutoScaling::Model::LifecycleHookSpecification::SetLifecycleTransition
void SetLifecycleTransition(const char *value)
Definition: LifecycleHookSpecification.h:134
Aws::AutoScaling::Model::LifecycleHookSpecification::WithLifecycleTransition
LifecycleHookSpecification & WithLifecycleTransition(Aws::String &&value)
Definition: LifecycleHookSpecification.h:148
Aws::AutoScaling::Model::LifecycleHookSpecification::SetRoleARN
void SetRoleARN(const char *value)
Definition: LifecycleHookSpecification.h:399
Aws::AutoScaling::Model::LifecycleHookSpecification::SetNotificationTargetARN
void SetNotificationTargetARN(Aws::String &&value)
Definition: LifecycleHookSpecification.h:335
Aws::AutoScaling::Model::LifecycleHookSpecification::NotificationMetadataHasBeenSet
bool NotificationMetadataHasBeenSet() const
Definition: LifecycleHookSpecification.h:168