AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StackEvent.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/cloudformation/model/ResourceStatus.h>
12#include <aws/cloudformation/model/HookStatus.h>
13#include <aws/cloudformation/model/HookInvocationPoint.h>
14#include <aws/cloudformation/model/HookFailureMode.h>
15#include <aws/cloudformation/model/DetailedStatus.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace CloudFormation
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_CLOUDFORMATION_API StackEvent() = default;
41 AWS_CLOUDFORMATION_API StackEvent(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_CLOUDFORMATION_API StackEvent& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetStackId() const { return m_stackId; }
53 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
54 template<typename StackIdT = Aws::String>
55 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
56 template<typename StackIdT = Aws::String>
57 StackEvent& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
59
61
64 inline const Aws::String& GetEventId() const { return m_eventId; }
65 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
66 template<typename EventIdT = Aws::String>
67 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet = true; m_eventId = std::forward<EventIdT>(value); }
68 template<typename EventIdT = Aws::String>
69 StackEvent& WithEventId(EventIdT&& value) { SetEventId(std::forward<EventIdT>(value)); return *this;}
71
73
76 inline const Aws::String& GetStackName() const { return m_stackName; }
77 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
78 template<typename StackNameT = Aws::String>
79 void SetStackName(StackNameT&& value) { m_stackNameHasBeenSet = true; m_stackName = std::forward<StackNameT>(value); }
80 template<typename StackNameT = Aws::String>
81 StackEvent& WithStackName(StackNameT&& value) { SetStackName(std::forward<StackNameT>(value)); return *this;}
83
85
88 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
89 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
90 template<typename LogicalResourceIdT = Aws::String>
91 void SetLogicalResourceId(LogicalResourceIdT&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::forward<LogicalResourceIdT>(value); }
92 template<typename LogicalResourceIdT = Aws::String>
93 StackEvent& WithLogicalResourceId(LogicalResourceIdT&& value) { SetLogicalResourceId(std::forward<LogicalResourceIdT>(value)); return *this;}
95
97
101 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
102 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
103 template<typename PhysicalResourceIdT = Aws::String>
104 void SetPhysicalResourceId(PhysicalResourceIdT&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::forward<PhysicalResourceIdT>(value); }
105 template<typename PhysicalResourceIdT = Aws::String>
106 StackEvent& WithPhysicalResourceId(PhysicalResourceIdT&& value) { SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value)); return *this;}
108
110
116 inline const Aws::String& GetResourceType() const { return m_resourceType; }
117 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
118 template<typename ResourceTypeT = Aws::String>
119 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
120 template<typename ResourceTypeT = Aws::String>
121 StackEvent& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
123
125
128 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
129 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
130 template<typename TimestampT = Aws::Utils::DateTime>
131 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
132 template<typename TimestampT = Aws::Utils::DateTime>
133 StackEvent& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
135
137
140 inline ResourceStatus GetResourceStatus() const { return m_resourceStatus; }
141 inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
142 inline void SetResourceStatus(ResourceStatus value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = value; }
143 inline StackEvent& WithResourceStatus(ResourceStatus value) { SetResourceStatus(value); return *this;}
145
147
150 inline const Aws::String& GetResourceStatusReason() const { return m_resourceStatusReason; }
151 inline bool ResourceStatusReasonHasBeenSet() const { return m_resourceStatusReasonHasBeenSet; }
152 template<typename ResourceStatusReasonT = Aws::String>
153 void SetResourceStatusReason(ResourceStatusReasonT&& value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason = std::forward<ResourceStatusReasonT>(value); }
154 template<typename ResourceStatusReasonT = Aws::String>
155 StackEvent& WithResourceStatusReason(ResourceStatusReasonT&& value) { SetResourceStatusReason(std::forward<ResourceStatusReasonT>(value)); return *this;}
157
159
162 inline const Aws::String& GetResourceProperties() const { return m_resourceProperties; }
163 inline bool ResourcePropertiesHasBeenSet() const { return m_resourcePropertiesHasBeenSet; }
164 template<typename ResourcePropertiesT = Aws::String>
165 void SetResourceProperties(ResourcePropertiesT&& value) { m_resourcePropertiesHasBeenSet = true; m_resourceProperties = std::forward<ResourcePropertiesT>(value); }
166 template<typename ResourcePropertiesT = Aws::String>
167 StackEvent& WithResourceProperties(ResourcePropertiesT&& value) { SetResourceProperties(std::forward<ResourcePropertiesT>(value)); return *this;}
169
171
185 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
186 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
187 template<typename ClientRequestTokenT = Aws::String>
188 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
189 template<typename ClientRequestTokenT = Aws::String>
190 StackEvent& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
192
194
197 inline const Aws::String& GetHookType() const { return m_hookType; }
198 inline bool HookTypeHasBeenSet() const { return m_hookTypeHasBeenSet; }
199 template<typename HookTypeT = Aws::String>
200 void SetHookType(HookTypeT&& value) { m_hookTypeHasBeenSet = true; m_hookType = std::forward<HookTypeT>(value); }
201 template<typename HookTypeT = Aws::String>
202 StackEvent& WithHookType(HookTypeT&& value) { SetHookType(std::forward<HookTypeT>(value)); return *this;}
204
206
209 inline HookStatus GetHookStatus() const { return m_hookStatus; }
210 inline bool HookStatusHasBeenSet() const { return m_hookStatusHasBeenSet; }
211 inline void SetHookStatus(HookStatus value) { m_hookStatusHasBeenSet = true; m_hookStatus = value; }
212 inline StackEvent& WithHookStatus(HookStatus value) { SetHookStatus(value); return *this;}
214
216
219 inline const Aws::String& GetHookStatusReason() const { return m_hookStatusReason; }
220 inline bool HookStatusReasonHasBeenSet() const { return m_hookStatusReasonHasBeenSet; }
221 template<typename HookStatusReasonT = Aws::String>
222 void SetHookStatusReason(HookStatusReasonT&& value) { m_hookStatusReasonHasBeenSet = true; m_hookStatusReason = std::forward<HookStatusReasonT>(value); }
223 template<typename HookStatusReasonT = Aws::String>
224 StackEvent& WithHookStatusReason(HookStatusReasonT&& value) { SetHookStatusReason(std::forward<HookStatusReasonT>(value)); return *this;}
226
228
232 inline HookInvocationPoint GetHookInvocationPoint() const { return m_hookInvocationPoint; }
233 inline bool HookInvocationPointHasBeenSet() const { return m_hookInvocationPointHasBeenSet; }
234 inline void SetHookInvocationPoint(HookInvocationPoint value) { m_hookInvocationPointHasBeenSet = true; m_hookInvocationPoint = value; }
237
239
245 inline HookFailureMode GetHookFailureMode() const { return m_hookFailureMode; }
246 inline bool HookFailureModeHasBeenSet() const { return m_hookFailureModeHasBeenSet; }
247 inline void SetHookFailureMode(HookFailureMode value) { m_hookFailureModeHasBeenSet = true; m_hookFailureMode = value; }
248 inline StackEvent& WithHookFailureMode(HookFailureMode value) { SetHookFailureMode(value); return *this;}
250
252
263 inline DetailedStatus GetDetailedStatus() const { return m_detailedStatus; }
264 inline bool DetailedStatusHasBeenSet() const { return m_detailedStatusHasBeenSet; }
265 inline void SetDetailedStatus(DetailedStatus value) { m_detailedStatusHasBeenSet = true; m_detailedStatus = value; }
266 inline StackEvent& WithDetailedStatus(DetailedStatus value) { SetDetailedStatus(value); return *this;}
268 private:
269
270 Aws::String m_stackId;
271 bool m_stackIdHasBeenSet = false;
272
273 Aws::String m_eventId;
274 bool m_eventIdHasBeenSet = false;
275
276 Aws::String m_stackName;
277 bool m_stackNameHasBeenSet = false;
278
279 Aws::String m_logicalResourceId;
280 bool m_logicalResourceIdHasBeenSet = false;
281
282 Aws::String m_physicalResourceId;
283 bool m_physicalResourceIdHasBeenSet = false;
284
285 Aws::String m_resourceType;
286 bool m_resourceTypeHasBeenSet = false;
287
288 Aws::Utils::DateTime m_timestamp{};
289 bool m_timestampHasBeenSet = false;
290
291 ResourceStatus m_resourceStatus{ResourceStatus::NOT_SET};
292 bool m_resourceStatusHasBeenSet = false;
293
294 Aws::String m_resourceStatusReason;
295 bool m_resourceStatusReasonHasBeenSet = false;
296
297 Aws::String m_resourceProperties;
298 bool m_resourcePropertiesHasBeenSet = false;
299
300 Aws::String m_clientRequestToken;
301 bool m_clientRequestTokenHasBeenSet = false;
302
303 Aws::String m_hookType;
304 bool m_hookTypeHasBeenSet = false;
305
306 HookStatus m_hookStatus{HookStatus::NOT_SET};
307 bool m_hookStatusHasBeenSet = false;
308
309 Aws::String m_hookStatusReason;
310 bool m_hookStatusReasonHasBeenSet = false;
311
313 bool m_hookInvocationPointHasBeenSet = false;
314
315 HookFailureMode m_hookFailureMode{HookFailureMode::NOT_SET};
316 bool m_hookFailureModeHasBeenSet = false;
317
318 DetailedStatus m_detailedStatus{DetailedStatus::NOT_SET};
319 bool m_detailedStatusHasBeenSet = false;
320 };
321
322} // namespace Model
323} // namespace CloudFormation
324} // namespace Aws
void SetEventId(EventIdT &&value)
Definition StackEvent.h:67
const Aws::String & GetStackId() const
Definition StackEvent.h:52
StackEvent & WithHookStatus(HookStatus value)
Definition StackEvent.h:212
StackEvent & WithEventId(EventIdT &&value)
Definition StackEvent.h:69
StackEvent & WithTimestamp(TimestampT &&value)
Definition StackEvent.h:133
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
StackEvent & WithResourceType(ResourceTypeT &&value)
Definition StackEvent.h:121
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDetailedStatus(DetailedStatus value)
Definition StackEvent.h:265
StackEvent & WithLogicalResourceId(LogicalResourceIdT &&value)
Definition StackEvent.h:93
StackEvent & WithHookStatusReason(HookStatusReasonT &&value)
Definition StackEvent.h:224
AWS_CLOUDFORMATION_API StackEvent & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetResourceProperties(ResourcePropertiesT &&value)
Definition StackEvent.h:165
const Aws::String & GetClientRequestToken() const
Definition StackEvent.h:185
const Aws::String & GetPhysicalResourceId() const
Definition StackEvent.h:101
void SetHookFailureMode(HookFailureMode value)
Definition StackEvent.h:247
void SetHookInvocationPoint(HookInvocationPoint value)
Definition StackEvent.h:234
const Aws::String & GetHookType() const
Definition StackEvent.h:197
void SetHookStatusReason(HookStatusReasonT &&value)
Definition StackEvent.h:222
void SetStackId(StackIdT &&value)
Definition StackEvent.h:55
void SetLogicalResourceId(LogicalResourceIdT &&value)
Definition StackEvent.h:91
StackEvent & WithResourceProperties(ResourcePropertiesT &&value)
Definition StackEvent.h:167
void SetStackName(StackNameT &&value)
Definition StackEvent.h:79
const Aws::String & GetStackName() const
Definition StackEvent.h:76
AWS_CLOUDFORMATION_API StackEvent(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API StackEvent()=default
HookFailureMode GetHookFailureMode() const
Definition StackEvent.h:245
StackEvent & WithHookInvocationPoint(HookInvocationPoint value)
Definition StackEvent.h:235
const Aws::Utils::DateTime & GetTimestamp() const
Definition StackEvent.h:128
StackEvent & WithStackName(StackNameT &&value)
Definition StackEvent.h:81
void SetClientRequestToken(ClientRequestTokenT &&value)
Definition StackEvent.h:188
void SetTimestamp(TimestampT &&value)
Definition StackEvent.h:131
const Aws::String & GetResourceStatusReason() const
Definition StackEvent.h:150
DetailedStatus GetDetailedStatus() const
Definition StackEvent.h:263
HookInvocationPoint GetHookInvocationPoint() const
Definition StackEvent.h:232
void SetResourceStatus(ResourceStatus value)
Definition StackEvent.h:142
const Aws::String & GetResourceProperties() const
Definition StackEvent.h:162
void SetPhysicalResourceId(PhysicalResourceIdT &&value)
Definition StackEvent.h:104
void SetHookType(HookTypeT &&value)
Definition StackEvent.h:200
StackEvent & WithClientRequestToken(ClientRequestTokenT &&value)
Definition StackEvent.h:190
const Aws::String & GetResourceType() const
Definition StackEvent.h:116
StackEvent & WithPhysicalResourceId(PhysicalResourceIdT &&value)
Definition StackEvent.h:106
const Aws::String & GetLogicalResourceId() const
Definition StackEvent.h:88
void SetResourceType(ResourceTypeT &&value)
Definition StackEvent.h:119
void SetHookStatus(HookStatus value)
Definition StackEvent.h:211
StackEvent & WithResourceStatusReason(ResourceStatusReasonT &&value)
Definition StackEvent.h:155
StackEvent & WithResourceStatus(ResourceStatus value)
Definition StackEvent.h:143
StackEvent & WithDetailedStatus(DetailedStatus value)
Definition StackEvent.h:266
ResourceStatus GetResourceStatus() const
Definition StackEvent.h:140
void SetResourceStatusReason(ResourceStatusReasonT &&value)
Definition StackEvent.h:153
StackEvent & WithStackId(StackIdT &&value)
Definition StackEvent.h:57
const Aws::String & GetEventId() const
Definition StackEvent.h:64
const Aws::String & GetHookStatusReason() const
Definition StackEvent.h:219
StackEvent & WithHookType(HookTypeT &&value)
Definition StackEvent.h:202
StackEvent & WithHookFailureMode(HookFailureMode value)
Definition StackEvent.h:248
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream