AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
OperationEvent.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/BeaconStackOperationStatus.h>
9#include <aws/cloudformation/model/DetailedStatus.h>
10#include <aws/cloudformation/model/EventType.h>
11#include <aws/cloudformation/model/HookFailureMode.h>
12#include <aws/cloudformation/model/HookInvocationPoint.h>
13#include <aws/cloudformation/model/HookStatus.h>
14#include <aws/cloudformation/model/OperationType.h>
15#include <aws/cloudformation/model/ResourceStatus.h>
16#include <aws/cloudformation/model/ValidationStatus.h>
17#include <aws/core/utils/DateTime.h>
18#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
19#include <aws/core/utils/memory/stl/AWSString.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Xml {
26class XmlNode;
27} // namespace Xml
28} // namespace Utils
29namespace CloudFormation {
30namespace Model {
31
39 public:
40 AWS_CLOUDFORMATION_API OperationEvent() = default;
41 AWS_CLOUDFORMATION_API OperationEvent(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_CLOUDFORMATION_API OperationEvent& 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
48
51 inline const Aws::String& GetEventId() const { return m_eventId; }
52 inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
53 template <typename EventIdT = Aws::String>
54 void SetEventId(EventIdT&& value) {
55 m_eventIdHasBeenSet = true;
56 m_eventId = std::forward<EventIdT>(value);
57 }
58 template <typename EventIdT = Aws::String>
59 OperationEvent& WithEventId(EventIdT&& value) {
60 SetEventId(std::forward<EventIdT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetStackId() const { return m_stackId; }
70 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
71 template <typename StackIdT = Aws::String>
72 void SetStackId(StackIdT&& value) {
73 m_stackIdHasBeenSet = true;
74 m_stackId = std::forward<StackIdT>(value);
75 }
76 template <typename StackIdT = Aws::String>
77 OperationEvent& WithStackId(StackIdT&& value) {
78 SetStackId(std::forward<StackIdT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetOperationId() const { return m_operationId; }
88 inline bool OperationIdHasBeenSet() const { return m_operationIdHasBeenSet; }
89 template <typename OperationIdT = Aws::String>
90 void SetOperationId(OperationIdT&& value) {
91 m_operationIdHasBeenSet = true;
92 m_operationId = std::forward<OperationIdT>(value);
93 }
94 template <typename OperationIdT = Aws::String>
95 OperationEvent& WithOperationId(OperationIdT&& value) {
96 SetOperationId(std::forward<OperationIdT>(value));
97 return *this;
98 }
100
102
105 inline OperationType GetOperationType() const { return m_operationType; }
106 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
107 inline void SetOperationType(OperationType value) {
108 m_operationTypeHasBeenSet = true;
109 m_operationType = value;
110 }
112 SetOperationType(value);
113 return *this;
114 }
116
118
121 inline BeaconStackOperationStatus GetOperationStatus() const { return m_operationStatus; }
122 inline bool OperationStatusHasBeenSet() const { return m_operationStatusHasBeenSet; }
124 m_operationStatusHasBeenSet = true;
125 m_operationStatus = value;
126 }
128 SetOperationStatus(value);
129 return *this;
130 }
132
134
137 inline EventType GetEventType() const { return m_eventType; }
138 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
139 inline void SetEventType(EventType value) {
140 m_eventTypeHasBeenSet = true;
141 m_eventType = value;
142 }
144 SetEventType(value);
145 return *this;
146 }
148
150
153 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
154 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
155 template <typename LogicalResourceIdT = Aws::String>
156 void SetLogicalResourceId(LogicalResourceIdT&& value) {
157 m_logicalResourceIdHasBeenSet = true;
158 m_logicalResourceId = std::forward<LogicalResourceIdT>(value);
159 }
160 template <typename LogicalResourceIdT = Aws::String>
161 OperationEvent& WithLogicalResourceId(LogicalResourceIdT&& value) {
162 SetLogicalResourceId(std::forward<LogicalResourceIdT>(value));
163 return *this;
164 }
166
168
172 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
173 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
174 template <typename PhysicalResourceIdT = Aws::String>
175 void SetPhysicalResourceId(PhysicalResourceIdT&& value) {
176 m_physicalResourceIdHasBeenSet = true;
177 m_physicalResourceId = std::forward<PhysicalResourceIdT>(value);
178 }
179 template <typename PhysicalResourceIdT = Aws::String>
180 OperationEvent& WithPhysicalResourceId(PhysicalResourceIdT&& value) {
181 SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetResourceType() const { return m_resourceType; }
191 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
192 template <typename ResourceTypeT = Aws::String>
193 void SetResourceType(ResourceTypeT&& value) {
194 m_resourceTypeHasBeenSet = true;
195 m_resourceType = std::forward<ResourceTypeT>(value);
196 }
197 template <typename ResourceTypeT = Aws::String>
198 OperationEvent& WithResourceType(ResourceTypeT&& value) {
199 SetResourceType(std::forward<ResourceTypeT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
209 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
210 template <typename TimestampT = Aws::Utils::DateTime>
211 void SetTimestamp(TimestampT&& value) {
212 m_timestampHasBeenSet = true;
213 m_timestamp = std::forward<TimestampT>(value);
214 }
215 template <typename TimestampT = Aws::Utils::DateTime>
216 OperationEvent& WithTimestamp(TimestampT&& value) {
217 SetTimestamp(std::forward<TimestampT>(value));
218 return *this;
219 }
221
223
226 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
227 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
228 template <typename StartTimeT = Aws::Utils::DateTime>
229 void SetStartTime(StartTimeT&& value) {
230 m_startTimeHasBeenSet = true;
231 m_startTime = std::forward<StartTimeT>(value);
232 }
233 template <typename StartTimeT = Aws::Utils::DateTime>
234 OperationEvent& WithStartTime(StartTimeT&& value) {
235 SetStartTime(std::forward<StartTimeT>(value));
236 return *this;
237 }
239
241
244 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
245 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
246 template <typename EndTimeT = Aws::Utils::DateTime>
247 void SetEndTime(EndTimeT&& value) {
248 m_endTimeHasBeenSet = true;
249 m_endTime = std::forward<EndTimeT>(value);
250 }
251 template <typename EndTimeT = Aws::Utils::DateTime>
252 OperationEvent& WithEndTime(EndTimeT&& value) {
253 SetEndTime(std::forward<EndTimeT>(value));
254 return *this;
255 }
257
259
262 inline ResourceStatus GetResourceStatus() const { return m_resourceStatus; }
263 inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
265 m_resourceStatusHasBeenSet = true;
266 m_resourceStatus = value;
267 }
269 SetResourceStatus(value);
270 return *this;
271 }
273
275
278 inline const Aws::String& GetResourceStatusReason() const { return m_resourceStatusReason; }
279 inline bool ResourceStatusReasonHasBeenSet() const { return m_resourceStatusReasonHasBeenSet; }
280 template <typename ResourceStatusReasonT = Aws::String>
281 void SetResourceStatusReason(ResourceStatusReasonT&& value) {
282 m_resourceStatusReasonHasBeenSet = true;
283 m_resourceStatusReason = std::forward<ResourceStatusReasonT>(value);
284 }
285 template <typename ResourceStatusReasonT = Aws::String>
286 OperationEvent& WithResourceStatusReason(ResourceStatusReasonT&& value) {
287 SetResourceStatusReason(std::forward<ResourceStatusReasonT>(value));
288 return *this;
289 }
291
293
296 inline const Aws::String& GetResourceProperties() const { return m_resourceProperties; }
297 inline bool ResourcePropertiesHasBeenSet() const { return m_resourcePropertiesHasBeenSet; }
298 template <typename ResourcePropertiesT = Aws::String>
299 void SetResourceProperties(ResourcePropertiesT&& value) {
300 m_resourcePropertiesHasBeenSet = true;
301 m_resourceProperties = std::forward<ResourcePropertiesT>(value);
302 }
303 template <typename ResourcePropertiesT = Aws::String>
304 OperationEvent& WithResourceProperties(ResourcePropertiesT&& value) {
305 SetResourceProperties(std::forward<ResourcePropertiesT>(value));
306 return *this;
307 }
309
311
314 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
315 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
316 template <typename ClientRequestTokenT = Aws::String>
317 void SetClientRequestToken(ClientRequestTokenT&& value) {
318 m_clientRequestTokenHasBeenSet = true;
319 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
320 }
321 template <typename ClientRequestTokenT = Aws::String>
322 OperationEvent& WithClientRequestToken(ClientRequestTokenT&& value) {
323 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
324 return *this;
325 }
327
329
332 inline const Aws::String& GetHookType() const { return m_hookType; }
333 inline bool HookTypeHasBeenSet() const { return m_hookTypeHasBeenSet; }
334 template <typename HookTypeT = Aws::String>
335 void SetHookType(HookTypeT&& value) {
336 m_hookTypeHasBeenSet = true;
337 m_hookType = std::forward<HookTypeT>(value);
338 }
339 template <typename HookTypeT = Aws::String>
340 OperationEvent& WithHookType(HookTypeT&& value) {
341 SetHookType(std::forward<HookTypeT>(value));
342 return *this;
343 }
345
347
350 inline HookStatus GetHookStatus() const { return m_hookStatus; }
351 inline bool HookStatusHasBeenSet() const { return m_hookStatusHasBeenSet; }
352 inline void SetHookStatus(HookStatus value) {
353 m_hookStatusHasBeenSet = true;
354 m_hookStatus = value;
355 }
357 SetHookStatus(value);
358 return *this;
359 }
361
363
366 inline const Aws::String& GetHookStatusReason() const { return m_hookStatusReason; }
367 inline bool HookStatusReasonHasBeenSet() const { return m_hookStatusReasonHasBeenSet; }
368 template <typename HookStatusReasonT = Aws::String>
369 void SetHookStatusReason(HookStatusReasonT&& value) {
370 m_hookStatusReasonHasBeenSet = true;
371 m_hookStatusReason = std::forward<HookStatusReasonT>(value);
372 }
373 template <typename HookStatusReasonT = Aws::String>
374 OperationEvent& WithHookStatusReason(HookStatusReasonT&& value) {
375 SetHookStatusReason(std::forward<HookStatusReasonT>(value));
376 return *this;
377 }
379
381
384 inline HookInvocationPoint GetHookInvocationPoint() const { return m_hookInvocationPoint; }
385 inline bool HookInvocationPointHasBeenSet() const { return m_hookInvocationPointHasBeenSet; }
387 m_hookInvocationPointHasBeenSet = true;
388 m_hookInvocationPoint = value;
389 }
392 return *this;
393 }
395
397
400 inline HookFailureMode GetHookFailureMode() const { return m_hookFailureMode; }
401 inline bool HookFailureModeHasBeenSet() const { return m_hookFailureModeHasBeenSet; }
403 m_hookFailureModeHasBeenSet = true;
404 m_hookFailureMode = value;
405 }
407 SetHookFailureMode(value);
408 return *this;
409 }
411
413
416 inline DetailedStatus GetDetailedStatus() const { return m_detailedStatus; }
417 inline bool DetailedStatusHasBeenSet() const { return m_detailedStatusHasBeenSet; }
419 m_detailedStatusHasBeenSet = true;
420 m_detailedStatus = value;
421 }
423 SetDetailedStatus(value);
424 return *this;
425 }
427
429
432 inline HookFailureMode GetValidationFailureMode() const { return m_validationFailureMode; }
433 inline bool ValidationFailureModeHasBeenSet() const { return m_validationFailureModeHasBeenSet; }
435 m_validationFailureModeHasBeenSet = true;
436 m_validationFailureMode = value;
437 }
440 return *this;
441 }
443
445
448 inline const Aws::String& GetValidationName() const { return m_validationName; }
449 inline bool ValidationNameHasBeenSet() const { return m_validationNameHasBeenSet; }
450 template <typename ValidationNameT = Aws::String>
451 void SetValidationName(ValidationNameT&& value) {
452 m_validationNameHasBeenSet = true;
453 m_validationName = std::forward<ValidationNameT>(value);
454 }
455 template <typename ValidationNameT = Aws::String>
456 OperationEvent& WithValidationName(ValidationNameT&& value) {
457 SetValidationName(std::forward<ValidationNameT>(value));
458 return *this;
459 }
461
463
466 inline ValidationStatus GetValidationStatus() const { return m_validationStatus; }
467 inline bool ValidationStatusHasBeenSet() const { return m_validationStatusHasBeenSet; }
469 m_validationStatusHasBeenSet = true;
470 m_validationStatus = value;
471 }
473 SetValidationStatus(value);
474 return *this;
475 }
477
479
482 inline const Aws::String& GetValidationStatusReason() const { return m_validationStatusReason; }
483 inline bool ValidationStatusReasonHasBeenSet() const { return m_validationStatusReasonHasBeenSet; }
484 template <typename ValidationStatusReasonT = Aws::String>
485 void SetValidationStatusReason(ValidationStatusReasonT&& value) {
486 m_validationStatusReasonHasBeenSet = true;
487 m_validationStatusReason = std::forward<ValidationStatusReasonT>(value);
488 }
489 template <typename ValidationStatusReasonT = Aws::String>
490 OperationEvent& WithValidationStatusReason(ValidationStatusReasonT&& value) {
491 SetValidationStatusReason(std::forward<ValidationStatusReasonT>(value));
492 return *this;
493 }
495
497
500 inline const Aws::String& GetValidationPath() const { return m_validationPath; }
501 inline bool ValidationPathHasBeenSet() const { return m_validationPathHasBeenSet; }
502 template <typename ValidationPathT = Aws::String>
503 void SetValidationPath(ValidationPathT&& value) {
504 m_validationPathHasBeenSet = true;
505 m_validationPath = std::forward<ValidationPathT>(value);
506 }
507 template <typename ValidationPathT = Aws::String>
508 OperationEvent& WithValidationPath(ValidationPathT&& value) {
509 SetValidationPath(std::forward<ValidationPathT>(value));
510 return *this;
511 }
513 private:
514 Aws::String m_eventId;
515
516 Aws::String m_stackId;
517
518 Aws::String m_operationId;
519
520 OperationType m_operationType{OperationType::NOT_SET};
521
523
524 EventType m_eventType{EventType::NOT_SET};
525
526 Aws::String m_logicalResourceId;
527
528 Aws::String m_physicalResourceId;
529
530 Aws::String m_resourceType;
531
532 Aws::Utils::DateTime m_timestamp{};
533
534 Aws::Utils::DateTime m_startTime{};
535
536 Aws::Utils::DateTime m_endTime{};
537
538 ResourceStatus m_resourceStatus{ResourceStatus::NOT_SET};
539
540 Aws::String m_resourceStatusReason;
541
542 Aws::String m_resourceProperties;
543
544 Aws::String m_clientRequestToken;
545
546 Aws::String m_hookType;
547
548 HookStatus m_hookStatus{HookStatus::NOT_SET};
549
550 Aws::String m_hookStatusReason;
551
553
554 HookFailureMode m_hookFailureMode{HookFailureMode::NOT_SET};
555
556 DetailedStatus m_detailedStatus{DetailedStatus::NOT_SET};
557
558 HookFailureMode m_validationFailureMode{HookFailureMode::NOT_SET};
559
560 Aws::String m_validationName;
561
563
564 Aws::String m_validationStatusReason;
565
566 Aws::String m_validationPath;
567 bool m_eventIdHasBeenSet = false;
568 bool m_stackIdHasBeenSet = false;
569 bool m_operationIdHasBeenSet = false;
570 bool m_operationTypeHasBeenSet = false;
571 bool m_operationStatusHasBeenSet = false;
572 bool m_eventTypeHasBeenSet = false;
573 bool m_logicalResourceIdHasBeenSet = false;
574 bool m_physicalResourceIdHasBeenSet = false;
575 bool m_resourceTypeHasBeenSet = false;
576 bool m_timestampHasBeenSet = false;
577 bool m_startTimeHasBeenSet = false;
578 bool m_endTimeHasBeenSet = false;
579 bool m_resourceStatusHasBeenSet = false;
580 bool m_resourceStatusReasonHasBeenSet = false;
581 bool m_resourcePropertiesHasBeenSet = false;
582 bool m_clientRequestTokenHasBeenSet = false;
583 bool m_hookTypeHasBeenSet = false;
584 bool m_hookStatusHasBeenSet = false;
585 bool m_hookStatusReasonHasBeenSet = false;
586 bool m_hookInvocationPointHasBeenSet = false;
587 bool m_hookFailureModeHasBeenSet = false;
588 bool m_detailedStatusHasBeenSet = false;
589 bool m_validationFailureModeHasBeenSet = false;
590 bool m_validationNameHasBeenSet = false;
591 bool m_validationStatusHasBeenSet = false;
592 bool m_validationStatusReasonHasBeenSet = false;
593 bool m_validationPathHasBeenSet = false;
594};
595
596} // namespace Model
597} // namespace CloudFormation
598} // namespace Aws
HookInvocationPoint GetHookInvocationPoint() const
void SetResourceStatus(ResourceStatus value)
OperationEvent & WithStackId(StackIdT &&value)
const Aws::String & GetValidationStatusReason() const
void SetValidationStatus(ValidationStatus value)
OperationEvent & WithHookInvocationPoint(HookInvocationPoint value)
void SetHookInvocationPoint(HookInvocationPoint value)
const Aws::String & GetResourceType() const
AWS_CLOUDFORMATION_API OperationEvent & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
OperationEvent & WithPhysicalResourceId(PhysicalResourceIdT &&value)
OperationEvent & WithEventType(EventType value)
AWS_CLOUDFORMATION_API OperationEvent()=default
const Aws::String & GetHookStatusReason() const
OperationEvent & WithOperationType(OperationType value)
OperationEvent & WithOperationId(OperationIdT &&value)
void SetLogicalResourceId(LogicalResourceIdT &&value)
const Aws::String & GetResourceStatusReason() const
BeaconStackOperationStatus GetOperationStatus() const
OperationEvent & WithHookType(HookTypeT &&value)
OperationEvent & WithEndTime(EndTimeT &&value)
HookFailureMode GetValidationFailureMode() const
void SetPhysicalResourceId(PhysicalResourceIdT &&value)
const Aws::Utils::DateTime & GetEndTime() const
OperationEvent & WithValidationPath(ValidationPathT &&value)
const Aws::String & GetEventId() const
const Aws::String & GetResourceProperties() const
void SetResourceType(ResourceTypeT &&value)
const Aws::String & GetOperationId() const
const Aws::Utils::DateTime & GetStartTime() const
void SetOperationId(OperationIdT &&value)
void SetResourceStatusReason(ResourceStatusReasonT &&value)
OperationEvent & WithValidationFailureMode(HookFailureMode value)
OperationEvent & WithHookFailureMode(HookFailureMode value)
OperationEvent & WithResourceType(ResourceTypeT &&value)
OperationEvent & WithValidationStatusReason(ValidationStatusReasonT &&value)
void SetHookStatusReason(HookStatusReasonT &&value)
void SetDetailedStatus(DetailedStatus value)
void SetValidationPath(ValidationPathT &&value)
OperationEvent & WithLogicalResourceId(LogicalResourceIdT &&value)
OperationEvent & WithEventId(EventIdT &&value)
OperationEvent & WithHookStatus(HookStatus value)
const Aws::String & GetValidationPath() const
void SetHookFailureMode(HookFailureMode value)
OperationEvent & WithTimestamp(TimestampT &&value)
const Aws::String & GetValidationName() const
const Aws::String & GetStackId() const
OperationEvent & WithDetailedStatus(DetailedStatus value)
OperationEvent & WithOperationStatus(BeaconStackOperationStatus value)
void SetClientRequestToken(ClientRequestTokenT &&value)
OperationEvent & WithHookStatusReason(HookStatusReasonT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
OperationEvent & WithResourceStatus(ResourceStatus value)
void SetValidationFailureMode(HookFailureMode value)
void SetOperationStatus(BeaconStackOperationStatus value)
OperationEvent & WithClientRequestToken(ClientRequestTokenT &&value)
void SetResourceProperties(ResourcePropertiesT &&value)
const Aws::String & GetHookType() const
OperationEvent & WithStartTime(StartTimeT &&value)
OperationEvent & WithValidationName(ValidationNameT &&value)
void SetValidationName(ValidationNameT &&value)
AWS_CLOUDFORMATION_API OperationEvent(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetLogicalResourceId() const
OperationEvent & WithResourceStatusReason(ResourceStatusReasonT &&value)
const Aws::Utils::DateTime & GetTimestamp() const
void SetValidationStatusReason(ValidationStatusReasonT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
OperationEvent & WithResourceProperties(ResourcePropertiesT &&value)
const Aws::String & GetClientRequestToken() const
OperationEvent & WithValidationStatus(ValidationStatus value)
const Aws::String & GetPhysicalResourceId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream