AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
StackEvent.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/DetailedStatus.h>
9#include <aws/cloudformation/model/HookFailureMode.h>
10#include <aws/cloudformation/model/HookInvocationPoint.h>
11#include <aws/cloudformation/model/HookStatus.h>
12#include <aws/cloudformation/model/ResourceStatus.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Xml {
22class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace CloudFormation {
26namespace Model {
27
34 public:
35 AWS_CLOUDFORMATION_API StackEvent() = default;
36 AWS_CLOUDFORMATION_API StackEvent(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFORMATION_API StackEvent& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetStackId() const { return m_stackId; }
47 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
48 template <typename StackIdT = Aws::String>
49 void SetStackId(StackIdT&& value) {
50 m_stackIdHasBeenSet = true;
51 m_stackId = std::forward<StackIdT>(value);
52 }
53 template <typename StackIdT = Aws::String>
54 StackEvent& WithStackId(StackIdT&& value) {
55 SetStackId(std::forward<StackIdT>(value));
56 return *this;
57 }
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) {
68 m_eventIdHasBeenSet = true;
69 m_eventId = std::forward<EventIdT>(value);
70 }
71 template <typename EventIdT = Aws::String>
72 StackEvent& WithEventId(EventIdT&& value) {
73 SetEventId(std::forward<EventIdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetStackName() const { return m_stackName; }
83 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
84 template <typename StackNameT = Aws::String>
85 void SetStackName(StackNameT&& value) {
86 m_stackNameHasBeenSet = true;
87 m_stackName = std::forward<StackNameT>(value);
88 }
89 template <typename StackNameT = Aws::String>
90 StackEvent& WithStackName(StackNameT&& value) {
91 SetStackName(std::forward<StackNameT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetOperationId() const { return m_operationId; }
101 inline bool OperationIdHasBeenSet() const { return m_operationIdHasBeenSet; }
102 template <typename OperationIdT = Aws::String>
103 void SetOperationId(OperationIdT&& value) {
104 m_operationIdHasBeenSet = true;
105 m_operationId = std::forward<OperationIdT>(value);
106 }
107 template <typename OperationIdT = Aws::String>
108 StackEvent& WithOperationId(OperationIdT&& value) {
109 SetOperationId(std::forward<OperationIdT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
119 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
120 template <typename LogicalResourceIdT = Aws::String>
121 void SetLogicalResourceId(LogicalResourceIdT&& value) {
122 m_logicalResourceIdHasBeenSet = true;
123 m_logicalResourceId = std::forward<LogicalResourceIdT>(value);
124 }
125 template <typename LogicalResourceIdT = Aws::String>
126 StackEvent& WithLogicalResourceId(LogicalResourceIdT&& value) {
127 SetLogicalResourceId(std::forward<LogicalResourceIdT>(value));
128 return *this;
129 }
131
133
137 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
138 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
139 template <typename PhysicalResourceIdT = Aws::String>
140 void SetPhysicalResourceId(PhysicalResourceIdT&& value) {
141 m_physicalResourceIdHasBeenSet = true;
142 m_physicalResourceId = std::forward<PhysicalResourceIdT>(value);
143 }
144 template <typename PhysicalResourceIdT = Aws::String>
145 StackEvent& WithPhysicalResourceId(PhysicalResourceIdT&& value) {
146 SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value));
147 return *this;
148 }
150
152
158 inline const Aws::String& GetResourceType() const { return m_resourceType; }
159 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
160 template <typename ResourceTypeT = Aws::String>
161 void SetResourceType(ResourceTypeT&& value) {
162 m_resourceTypeHasBeenSet = true;
163 m_resourceType = std::forward<ResourceTypeT>(value);
164 }
165 template <typename ResourceTypeT = Aws::String>
166 StackEvent& WithResourceType(ResourceTypeT&& value) {
167 SetResourceType(std::forward<ResourceTypeT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
177 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
178 template <typename TimestampT = Aws::Utils::DateTime>
179 void SetTimestamp(TimestampT&& value) {
180 m_timestampHasBeenSet = true;
181 m_timestamp = std::forward<TimestampT>(value);
182 }
183 template <typename TimestampT = Aws::Utils::DateTime>
184 StackEvent& WithTimestamp(TimestampT&& value) {
185 SetTimestamp(std::forward<TimestampT>(value));
186 return *this;
187 }
189
191
194 inline ResourceStatus GetResourceStatus() const { return m_resourceStatus; }
195 inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
197 m_resourceStatusHasBeenSet = true;
198 m_resourceStatus = value;
199 }
201 SetResourceStatus(value);
202 return *this;
203 }
205
207
210 inline const Aws::String& GetResourceStatusReason() const { return m_resourceStatusReason; }
211 inline bool ResourceStatusReasonHasBeenSet() const { return m_resourceStatusReasonHasBeenSet; }
212 template <typename ResourceStatusReasonT = Aws::String>
213 void SetResourceStatusReason(ResourceStatusReasonT&& value) {
214 m_resourceStatusReasonHasBeenSet = true;
215 m_resourceStatusReason = std::forward<ResourceStatusReasonT>(value);
216 }
217 template <typename ResourceStatusReasonT = Aws::String>
218 StackEvent& WithResourceStatusReason(ResourceStatusReasonT&& value) {
219 SetResourceStatusReason(std::forward<ResourceStatusReasonT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::String& GetResourceProperties() const { return m_resourceProperties; }
229 inline bool ResourcePropertiesHasBeenSet() const { return m_resourcePropertiesHasBeenSet; }
230 template <typename ResourcePropertiesT = Aws::String>
231 void SetResourceProperties(ResourcePropertiesT&& value) {
232 m_resourcePropertiesHasBeenSet = true;
233 m_resourceProperties = std::forward<ResourcePropertiesT>(value);
234 }
235 template <typename ResourcePropertiesT = Aws::String>
236 StackEvent& WithResourceProperties(ResourcePropertiesT&& value) {
237 SetResourceProperties(std::forward<ResourcePropertiesT>(value));
238 return *this;
239 }
241
243
257 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
258 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
259 template <typename ClientRequestTokenT = Aws::String>
260 void SetClientRequestToken(ClientRequestTokenT&& value) {
261 m_clientRequestTokenHasBeenSet = true;
262 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
263 }
264 template <typename ClientRequestTokenT = Aws::String>
265 StackEvent& WithClientRequestToken(ClientRequestTokenT&& value) {
266 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::String& GetHookType() const { return m_hookType; }
276 inline bool HookTypeHasBeenSet() const { return m_hookTypeHasBeenSet; }
277 template <typename HookTypeT = Aws::String>
278 void SetHookType(HookTypeT&& value) {
279 m_hookTypeHasBeenSet = true;
280 m_hookType = std::forward<HookTypeT>(value);
281 }
282 template <typename HookTypeT = Aws::String>
283 StackEvent& WithHookType(HookTypeT&& value) {
284 SetHookType(std::forward<HookTypeT>(value));
285 return *this;
286 }
288
290
293 inline HookStatus GetHookStatus() const { return m_hookStatus; }
294 inline bool HookStatusHasBeenSet() const { return m_hookStatusHasBeenSet; }
295 inline void SetHookStatus(HookStatus value) {
296 m_hookStatusHasBeenSet = true;
297 m_hookStatus = value;
298 }
300 SetHookStatus(value);
301 return *this;
302 }
304
306
309 inline const Aws::String& GetHookStatusReason() const { return m_hookStatusReason; }
310 inline bool HookStatusReasonHasBeenSet() const { return m_hookStatusReasonHasBeenSet; }
311 template <typename HookStatusReasonT = Aws::String>
312 void SetHookStatusReason(HookStatusReasonT&& value) {
313 m_hookStatusReasonHasBeenSet = true;
314 m_hookStatusReason = std::forward<HookStatusReasonT>(value);
315 }
316 template <typename HookStatusReasonT = Aws::String>
317 StackEvent& WithHookStatusReason(HookStatusReasonT&& value) {
318 SetHookStatusReason(std::forward<HookStatusReasonT>(value));
319 return *this;
320 }
322
324
327 inline HookInvocationPoint GetHookInvocationPoint() const { return m_hookInvocationPoint; }
328 inline bool HookInvocationPointHasBeenSet() const { return m_hookInvocationPointHasBeenSet; }
330 m_hookInvocationPointHasBeenSet = true;
331 m_hookInvocationPoint = value;
332 }
335 return *this;
336 }
338
340
343 inline const Aws::String& GetHookInvocationId() const { return m_hookInvocationId; }
344 inline bool HookInvocationIdHasBeenSet() const { return m_hookInvocationIdHasBeenSet; }
345 template <typename HookInvocationIdT = Aws::String>
346 void SetHookInvocationId(HookInvocationIdT&& value) {
347 m_hookInvocationIdHasBeenSet = true;
348 m_hookInvocationId = std::forward<HookInvocationIdT>(value);
349 }
350 template <typename HookInvocationIdT = Aws::String>
351 StackEvent& WithHookInvocationId(HookInvocationIdT&& value) {
352 SetHookInvocationId(std::forward<HookInvocationIdT>(value));
353 return *this;
354 }
356
358
364 inline HookFailureMode GetHookFailureMode() const { return m_hookFailureMode; }
365 inline bool HookFailureModeHasBeenSet() const { return m_hookFailureModeHasBeenSet; }
367 m_hookFailureModeHasBeenSet = true;
368 m_hookFailureMode = value;
369 }
371 SetHookFailureMode(value);
372 return *this;
373 }
375
377
388 inline DetailedStatus GetDetailedStatus() const { return m_detailedStatus; }
389 inline bool DetailedStatusHasBeenSet() const { return m_detailedStatusHasBeenSet; }
391 m_detailedStatusHasBeenSet = true;
392 m_detailedStatus = value;
393 }
395 SetDetailedStatus(value);
396 return *this;
397 }
399 private:
400 Aws::String m_stackId;
401
402 Aws::String m_eventId;
403
404 Aws::String m_stackName;
405
406 Aws::String m_operationId;
407
408 Aws::String m_logicalResourceId;
409
410 Aws::String m_physicalResourceId;
411
412 Aws::String m_resourceType;
413
414 Aws::Utils::DateTime m_timestamp{};
415
416 ResourceStatus m_resourceStatus{ResourceStatus::NOT_SET};
417
418 Aws::String m_resourceStatusReason;
419
420 Aws::String m_resourceProperties;
421
422 Aws::String m_clientRequestToken;
423
424 Aws::String m_hookType;
425
426 HookStatus m_hookStatus{HookStatus::NOT_SET};
427
428 Aws::String m_hookStatusReason;
429
431
432 Aws::String m_hookInvocationId;
433
434 HookFailureMode m_hookFailureMode{HookFailureMode::NOT_SET};
435
436 DetailedStatus m_detailedStatus{DetailedStatus::NOT_SET};
437 bool m_stackIdHasBeenSet = false;
438 bool m_eventIdHasBeenSet = false;
439 bool m_stackNameHasBeenSet = false;
440 bool m_operationIdHasBeenSet = false;
441 bool m_logicalResourceIdHasBeenSet = false;
442 bool m_physicalResourceIdHasBeenSet = false;
443 bool m_resourceTypeHasBeenSet = false;
444 bool m_timestampHasBeenSet = false;
445 bool m_resourceStatusHasBeenSet = false;
446 bool m_resourceStatusReasonHasBeenSet = false;
447 bool m_resourcePropertiesHasBeenSet = false;
448 bool m_clientRequestTokenHasBeenSet = false;
449 bool m_hookTypeHasBeenSet = false;
450 bool m_hookStatusHasBeenSet = false;
451 bool m_hookStatusReasonHasBeenSet = false;
452 bool m_hookInvocationPointHasBeenSet = false;
453 bool m_hookInvocationIdHasBeenSet = false;
454 bool m_hookFailureModeHasBeenSet = false;
455 bool m_detailedStatusHasBeenSet = false;
456};
457
458} // namespace Model
459} // namespace CloudFormation
460} // namespace Aws
void SetEventId(EventIdT &&value)
Definition StackEvent.h:67
const Aws::String & GetStackId() const
Definition StackEvent.h:46
StackEvent & WithHookStatus(HookStatus value)
Definition StackEvent.h:299
StackEvent & WithEventId(EventIdT &&value)
Definition StackEvent.h:72
StackEvent & WithTimestamp(TimestampT &&value)
Definition StackEvent.h:184
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
StackEvent & WithResourceType(ResourceTypeT &&value)
Definition StackEvent.h:166
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDetailedStatus(DetailedStatus value)
Definition StackEvent.h:390
StackEvent & WithLogicalResourceId(LogicalResourceIdT &&value)
Definition StackEvent.h:126
StackEvent & WithHookStatusReason(HookStatusReasonT &&value)
Definition StackEvent.h:317
AWS_CLOUDFORMATION_API StackEvent & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetHookInvocationId(HookInvocationIdT &&value)
Definition StackEvent.h:346
void SetOperationId(OperationIdT &&value)
Definition StackEvent.h:103
void SetResourceProperties(ResourcePropertiesT &&value)
Definition StackEvent.h:231
const Aws::String & GetClientRequestToken() const
Definition StackEvent.h:257
const Aws::String & GetPhysicalResourceId() const
Definition StackEvent.h:137
StackEvent & WithHookInvocationId(HookInvocationIdT &&value)
Definition StackEvent.h:351
void SetHookFailureMode(HookFailureMode value)
Definition StackEvent.h:366
void SetHookInvocationPoint(HookInvocationPoint value)
Definition StackEvent.h:329
const Aws::String & GetHookType() const
Definition StackEvent.h:275
void SetHookStatusReason(HookStatusReasonT &&value)
Definition StackEvent.h:312
void SetStackId(StackIdT &&value)
Definition StackEvent.h:49
void SetLogicalResourceId(LogicalResourceIdT &&value)
Definition StackEvent.h:121
StackEvent & WithResourceProperties(ResourcePropertiesT &&value)
Definition StackEvent.h:236
void SetStackName(StackNameT &&value)
Definition StackEvent.h:85
const Aws::String & GetStackName() const
Definition StackEvent.h:82
AWS_CLOUDFORMATION_API StackEvent(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API StackEvent()=default
HookFailureMode GetHookFailureMode() const
Definition StackEvent.h:364
StackEvent & WithHookInvocationPoint(HookInvocationPoint value)
Definition StackEvent.h:333
const Aws::Utils::DateTime & GetTimestamp() const
Definition StackEvent.h:176
StackEvent & WithStackName(StackNameT &&value)
Definition StackEvent.h:90
void SetClientRequestToken(ClientRequestTokenT &&value)
Definition StackEvent.h:260
void SetTimestamp(TimestampT &&value)
Definition StackEvent.h:179
const Aws::String & GetResourceStatusReason() const
Definition StackEvent.h:210
DetailedStatus GetDetailedStatus() const
Definition StackEvent.h:388
const Aws::String & GetOperationId() const
Definition StackEvent.h:100
HookInvocationPoint GetHookInvocationPoint() const
Definition StackEvent.h:327
void SetResourceStatus(ResourceStatus value)
Definition StackEvent.h:196
const Aws::String & GetResourceProperties() const
Definition StackEvent.h:228
void SetPhysicalResourceId(PhysicalResourceIdT &&value)
Definition StackEvent.h:140
void SetHookType(HookTypeT &&value)
Definition StackEvent.h:278
StackEvent & WithClientRequestToken(ClientRequestTokenT &&value)
Definition StackEvent.h:265
const Aws::String & GetResourceType() const
Definition StackEvent.h:158
StackEvent & WithPhysicalResourceId(PhysicalResourceIdT &&value)
Definition StackEvent.h:145
const Aws::String & GetLogicalResourceId() const
Definition StackEvent.h:118
void SetResourceType(ResourceTypeT &&value)
Definition StackEvent.h:161
void SetHookStatus(HookStatus value)
Definition StackEvent.h:295
StackEvent & WithResourceStatusReason(ResourceStatusReasonT &&value)
Definition StackEvent.h:218
StackEvent & WithResourceStatus(ResourceStatus value)
Definition StackEvent.h:200
StackEvent & WithDetailedStatus(DetailedStatus value)
Definition StackEvent.h:394
ResourceStatus GetResourceStatus() const
Definition StackEvent.h:194
StackEvent & WithOperationId(OperationIdT &&value)
Definition StackEvent.h:108
void SetResourceStatusReason(ResourceStatusReasonT &&value)
Definition StackEvent.h:213
StackEvent & WithStackId(StackIdT &&value)
Definition StackEvent.h:54
const Aws::String & GetEventId() const
Definition StackEvent.h:64
const Aws::String & GetHookStatusReason() const
Definition StackEvent.h:309
StackEvent & WithHookType(HookTypeT &&value)
Definition StackEvent.h:283
StackEvent & WithHookFailureMode(HookFailureMode value)
Definition StackEvent.h:370
const Aws::String & GetHookInvocationId() const
Definition StackEvent.h:343
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream