AWS SDK for C++

AWS SDK for C++ Version 1.11.709

Loading...
Searching...
No Matches
NotificationEventSummary.h
1
6#pragma once
7#include <aws/notifications/Notifications_EXPORTS.h>
8#include <aws/notifications/model/EventStatus.h>
9#include <aws/notifications/model/MessageComponentsSummary.h>
10#include <aws/notifications/model/NotificationType.h>
11#include <aws/notifications/model/SchemaVersion.h>
12#include <aws/notifications/model/SourceEventMetadataSummary.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Notifications {
24namespace Model {
25
33 public:
34 AWS_NOTIFICATIONS_API NotificationEventSummary() = default;
35 AWS_NOTIFICATIONS_API NotificationEventSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline SchemaVersion GetSchemaVersion() const { return m_schemaVersion; }
44 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
45 inline void SetSchemaVersion(SchemaVersion value) {
46 m_schemaVersionHasBeenSet = true;
47 m_schemaVersion = value;
48 }
50 SetSchemaVersion(value);
51 return *this;
52 }
54
56
59 inline const SourceEventMetadataSummary& GetSourceEventMetadata() const { return m_sourceEventMetadata; }
60 inline bool SourceEventMetadataHasBeenSet() const { return m_sourceEventMetadataHasBeenSet; }
61 template <typename SourceEventMetadataT = SourceEventMetadataSummary>
62 void SetSourceEventMetadata(SourceEventMetadataT&& value) {
63 m_sourceEventMetadataHasBeenSet = true;
64 m_sourceEventMetadata = std::forward<SourceEventMetadataT>(value);
65 }
66 template <typename SourceEventMetadataT = SourceEventMetadataSummary>
67 NotificationEventSummary& WithSourceEventMetadata(SourceEventMetadataT&& value) {
68 SetSourceEventMetadata(std::forward<SourceEventMetadataT>(value));
69 return *this;
70 }
72
74
77 inline const MessageComponentsSummary& GetMessageComponents() const { return m_messageComponents; }
78 inline bool MessageComponentsHasBeenSet() const { return m_messageComponentsHasBeenSet; }
79 template <typename MessageComponentsT = MessageComponentsSummary>
80 void SetMessageComponents(MessageComponentsT&& value) {
81 m_messageComponentsHasBeenSet = true;
82 m_messageComponents = std::forward<MessageComponentsT>(value);
83 }
84 template <typename MessageComponentsT = MessageComponentsSummary>
85 NotificationEventSummary& WithMessageComponents(MessageComponentsT&& value) {
86 SetMessageComponents(std::forward<MessageComponentsT>(value));
87 return *this;
88 }
90
92
100 inline EventStatus GetEventStatus() const { return m_eventStatus; }
101 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
102 inline void SetEventStatus(EventStatus value) {
103 m_eventStatusHasBeenSet = true;
104 m_eventStatus = value;
105 }
107 SetEventStatus(value);
108 return *this;
109 }
111
113
127 inline NotificationType GetNotificationType() const { return m_notificationType; }
128 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
130 m_notificationTypeHasBeenSet = true;
131 m_notificationType = value;
132 }
134 SetNotificationType(value);
135 return *this;
136 }
138 private:
139 SchemaVersion m_schemaVersion{SchemaVersion::NOT_SET};
140
141 SourceEventMetadataSummary m_sourceEventMetadata;
142
143 MessageComponentsSummary m_messageComponents;
144
145 EventStatus m_eventStatus{EventStatus::NOT_SET};
146
148 bool m_schemaVersionHasBeenSet = false;
149 bool m_sourceEventMetadataHasBeenSet = false;
150 bool m_messageComponentsHasBeenSet = false;
151 bool m_eventStatusHasBeenSet = false;
152 bool m_notificationTypeHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace Notifications
157} // namespace Aws
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NOTIFICATIONS_API NotificationEventSummary(Aws::Utils::Json::JsonView jsonValue)
NotificationEventSummary & WithMessageComponents(MessageComponentsT &&value)
NotificationEventSummary & WithEventStatus(EventStatus value)
NotificationEventSummary & WithSchemaVersion(SchemaVersion value)
AWS_NOTIFICATIONS_API NotificationEventSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
NotificationEventSummary & WithNotificationType(NotificationType value)
const MessageComponentsSummary & GetMessageComponents() const
const SourceEventMetadataSummary & GetSourceEventMetadata() const
NotificationEventSummary & WithSourceEventMetadata(SourceEventMetadataT &&value)
AWS_NOTIFICATIONS_API NotificationEventSummary()=default
Aws::Utils::Json::JsonValue JsonValue