AWS SDK for C++

AWS SDK for C++ Version 1.11.713

Loading...
Searching...
No Matches
ManagedNotificationEventSummary.h
1
6#pragma once
7#include <aws/notifications/Notifications_EXPORTS.h>
8#include <aws/notifications/model/EventStatus.h>
9#include <aws/notifications/model/ManagedSourceEventMetadataSummary.h>
10#include <aws/notifications/model/MessageComponentsSummary.h>
11#include <aws/notifications/model/NotificationType.h>
12#include <aws/notifications/model/SchemaVersion.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 ManagedNotificationEventSummary() = default;
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
60 inline const ManagedSourceEventMetadataSummary& GetSourceEventMetadata() const { return m_sourceEventMetadata; }
61 inline bool SourceEventMetadataHasBeenSet() const { return m_sourceEventMetadataHasBeenSet; }
62 template <typename SourceEventMetadataT = ManagedSourceEventMetadataSummary>
63 void SetSourceEventMetadata(SourceEventMetadataT&& value) {
64 m_sourceEventMetadataHasBeenSet = true;
65 m_sourceEventMetadata = std::forward<SourceEventMetadataT>(value);
66 }
67 template <typename SourceEventMetadataT = ManagedSourceEventMetadataSummary>
69 SetSourceEventMetadata(std::forward<SourceEventMetadataT>(value));
70 return *this;
71 }
73
75
76 inline const MessageComponentsSummary& GetMessageComponents() const { return m_messageComponents; }
77 inline bool MessageComponentsHasBeenSet() const { return m_messageComponentsHasBeenSet; }
78 template <typename MessageComponentsT = MessageComponentsSummary>
79 void SetMessageComponents(MessageComponentsT&& value) {
80 m_messageComponentsHasBeenSet = true;
81 m_messageComponents = std::forward<MessageComponentsT>(value);
82 }
83 template <typename MessageComponentsT = MessageComponentsSummary>
85 SetMessageComponents(std::forward<MessageComponentsT>(value));
86 return *this;
87 }
89
91
98 inline EventStatus GetEventStatus() const { return m_eventStatus; }
99 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
100 inline void SetEventStatus(EventStatus value) {
101 m_eventStatusHasBeenSet = true;
102 m_eventStatus = value;
103 }
105 SetEventStatus(value);
106 return *this;
107 }
109
111
125 inline NotificationType GetNotificationType() const { return m_notificationType; }
126 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
128 m_notificationTypeHasBeenSet = true;
129 m_notificationType = value;
130 }
132 SetNotificationType(value);
133 return *this;
134 }
136 private:
137 SchemaVersion m_schemaVersion{SchemaVersion::NOT_SET};
138
139 ManagedSourceEventMetadataSummary m_sourceEventMetadata;
140
141 MessageComponentsSummary m_messageComponents;
142
143 EventStatus m_eventStatus{EventStatus::NOT_SET};
144
146 bool m_schemaVersionHasBeenSet = false;
147 bool m_sourceEventMetadataHasBeenSet = false;
148 bool m_messageComponentsHasBeenSet = false;
149 bool m_eventStatusHasBeenSet = false;
150 bool m_notificationTypeHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace Notifications
155} // namespace Aws
AWS_NOTIFICATIONS_API ManagedNotificationEventSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_NOTIFICATIONS_API ManagedNotificationEventSummary()=default
ManagedNotificationEventSummary & WithSourceEventMetadata(SourceEventMetadataT &&value)
const ManagedSourceEventMetadataSummary & GetSourceEventMetadata() const
ManagedNotificationEventSummary & WithSchemaVersion(SchemaVersion value)
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
ManagedNotificationEventSummary & WithNotificationType(NotificationType value)
AWS_NOTIFICATIONS_API ManagedNotificationEventSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedNotificationEventSummary & WithEventStatus(EventStatus value)
ManagedNotificationEventSummary & WithMessageComponents(MessageComponentsT &&value)
Aws::Utils::Json::JsonValue JsonValue