AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LifecycleHookSpecification.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
36 {
37 public:
38 AWS_AUTOSCALING_API LifecycleHookSpecification();
39 AWS_AUTOSCALING_API LifecycleHookSpecification(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetLifecycleHookName() const{ return m_lifecycleHookName; }
51 inline bool LifecycleHookNameHasBeenSet() const { return m_lifecycleHookNameHasBeenSet; }
52 inline void SetLifecycleHookName(const Aws::String& value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName = value; }
53 inline void SetLifecycleHookName(Aws::String&& value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName = std::move(value); }
54 inline void SetLifecycleHookName(const char* value) { m_lifecycleHookNameHasBeenSet = true; m_lifecycleHookName.assign(value); }
56 inline LifecycleHookSpecification& WithLifecycleHookName(Aws::String&& value) { SetLifecycleHookName(std::move(value)); return *this;}
57 inline LifecycleHookSpecification& WithLifecycleHookName(const char* value) { SetLifecycleHookName(value); return *this;}
59
61
68 inline const Aws::String& GetLifecycleTransition() const{ return m_lifecycleTransition; }
69 inline bool LifecycleTransitionHasBeenSet() const { return m_lifecycleTransitionHasBeenSet; }
70 inline void SetLifecycleTransition(const Aws::String& value) { m_lifecycleTransitionHasBeenSet = true; m_lifecycleTransition = value; }
71 inline void SetLifecycleTransition(Aws::String&& value) { m_lifecycleTransitionHasBeenSet = true; m_lifecycleTransition = std::move(value); }
72 inline void SetLifecycleTransition(const char* value) { m_lifecycleTransitionHasBeenSet = true; m_lifecycleTransition.assign(value); }
74 inline LifecycleHookSpecification& WithLifecycleTransition(Aws::String&& value) { SetLifecycleTransition(std::move(value)); return *this;}
75 inline LifecycleHookSpecification& WithLifecycleTransition(const char* value) { SetLifecycleTransition(value); return *this;}
77
79
83 inline const Aws::String& GetNotificationMetadata() const{ return m_notificationMetadata; }
84 inline bool NotificationMetadataHasBeenSet() const { return m_notificationMetadataHasBeenSet; }
85 inline void SetNotificationMetadata(const Aws::String& value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata = value; }
86 inline void SetNotificationMetadata(Aws::String&& value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata = std::move(value); }
87 inline void SetNotificationMetadata(const char* value) { m_notificationMetadataHasBeenSet = true; m_notificationMetadata.assign(value); }
90 inline LifecycleHookSpecification& WithNotificationMetadata(const char* value) { SetNotificationMetadata(value); return *this;}
92
94
99 inline int GetHeartbeatTimeout() const{ return m_heartbeatTimeout; }
100 inline bool HeartbeatTimeoutHasBeenSet() const { return m_heartbeatTimeoutHasBeenSet; }
101 inline void SetHeartbeatTimeout(int value) { m_heartbeatTimeoutHasBeenSet = true; m_heartbeatTimeout = value; }
102 inline LifecycleHookSpecification& WithHeartbeatTimeout(int value) { SetHeartbeatTimeout(value); return *this;}
104
106
112 inline const Aws::String& GetDefaultResult() const{ return m_defaultResult; }
113 inline bool DefaultResultHasBeenSet() const { return m_defaultResultHasBeenSet; }
114 inline void SetDefaultResult(const Aws::String& value) { m_defaultResultHasBeenSet = true; m_defaultResult = value; }
115 inline void SetDefaultResult(Aws::String&& value) { m_defaultResultHasBeenSet = true; m_defaultResult = std::move(value); }
116 inline void SetDefaultResult(const char* value) { m_defaultResultHasBeenSet = true; m_defaultResult.assign(value); }
117 inline LifecycleHookSpecification& WithDefaultResult(const Aws::String& value) { SetDefaultResult(value); return *this;}
118 inline LifecycleHookSpecification& WithDefaultResult(Aws::String&& value) { SetDefaultResult(std::move(value)); return *this;}
119 inline LifecycleHookSpecification& WithDefaultResult(const char* value) { SetDefaultResult(value); return *this;}
121
123
128 inline const Aws::String& GetNotificationTargetARN() const{ return m_notificationTargetARN; }
129 inline bool NotificationTargetARNHasBeenSet() const { return m_notificationTargetARNHasBeenSet; }
130 inline void SetNotificationTargetARN(const Aws::String& value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN = value; }
131 inline void SetNotificationTargetARN(Aws::String&& value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN = std::move(value); }
132 inline void SetNotificationTargetARN(const char* value) { m_notificationTargetARNHasBeenSet = true; m_notificationTargetARN.assign(value); }
135 inline LifecycleHookSpecification& WithNotificationTargetARN(const char* value) { SetNotificationTargetARN(value); return *this;}
137
139
147 inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
148 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
149 inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
150 inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
151 inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
152 inline LifecycleHookSpecification& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
153 inline LifecycleHookSpecification& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
154 inline LifecycleHookSpecification& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
156 private:
157
158 Aws::String m_lifecycleHookName;
159 bool m_lifecycleHookNameHasBeenSet = false;
160
161 Aws::String m_lifecycleTransition;
162 bool m_lifecycleTransitionHasBeenSet = false;
163
164 Aws::String m_notificationMetadata;
165 bool m_notificationMetadataHasBeenSet = false;
166
167 int m_heartbeatTimeout;
168 bool m_heartbeatTimeoutHasBeenSet = false;
169
170 Aws::String m_defaultResult;
171 bool m_defaultResultHasBeenSet = false;
172
173 Aws::String m_notificationTargetARN;
174 bool m_notificationTargetARNHasBeenSet = false;
175
176 Aws::String m_roleARN;
177 bool m_roleARNHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace AutoScaling
182} // namespace Aws
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LifecycleHookSpecification & WithLifecycleHookName(const char *value)
LifecycleHookSpecification & WithLifecycleHookName(Aws::String &&value)
LifecycleHookSpecification & WithNotificationMetadata(Aws::String &&value)
LifecycleHookSpecification & WithDefaultResult(const char *value)
LifecycleHookSpecification & WithDefaultResult(const Aws::String &value)
LifecycleHookSpecification & WithRoleARN(const Aws::String &value)
LifecycleHookSpecification & WithNotificationMetadata(const char *value)
AWS_AUTOSCALING_API LifecycleHookSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
LifecycleHookSpecification & WithHeartbeatTimeout(int value)
LifecycleHookSpecification & WithRoleARN(Aws::String &&value)
LifecycleHookSpecification & WithNotificationMetadata(const Aws::String &value)
LifecycleHookSpecification & WithRoleARN(const char *value)
LifecycleHookSpecification & WithNotificationTargetARN(const Aws::String &value)
AWS_AUTOSCALING_API LifecycleHookSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LifecycleHookSpecification & WithNotificationTargetARN(Aws::String &&value)
LifecycleHookSpecification & WithLifecycleTransition(const Aws::String &value)
LifecycleHookSpecification & WithDefaultResult(Aws::String &&value)
LifecycleHookSpecification & WithLifecycleTransition(const char *value)
LifecycleHookSpecification & WithLifecycleHookName(const Aws::String &value)
LifecycleHookSpecification & WithLifecycleTransition(Aws::String &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LifecycleHookSpecification & WithNotificationTargetARN(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream