AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NotificationEventSummary.h
1
6#pragma once
7#include <aws/notifications/Notifications_EXPORTS.h>
8#include <aws/notifications/model/SchemaVersion.h>
9#include <aws/notifications/model/SourceEventMetadataSummary.h>
10#include <aws/notifications/model/MessageComponentsSummary.h>
11#include <aws/notifications/model/EventStatus.h>
12#include <aws/notifications/model/NotificationType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Notifications
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_NOTIFICATIONS_API NotificationEventSummary() = default;
40 AWS_NOTIFICATIONS_API NotificationEventSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline SchemaVersion GetSchemaVersion() const { return m_schemaVersion; }
50 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
51 inline void SetSchemaVersion(SchemaVersion value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = value; }
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) { m_sourceEventMetadataHasBeenSet = true; m_sourceEventMetadata = std::forward<SourceEventMetadataT>(value); }
63 template<typename SourceEventMetadataT = SourceEventMetadataSummary>
64 NotificationEventSummary& WithSourceEventMetadata(SourceEventMetadataT&& value) { SetSourceEventMetadata(std::forward<SourceEventMetadataT>(value)); return *this;}
66
68
71 inline const MessageComponentsSummary& GetMessageComponents() const { return m_messageComponents; }
72 inline bool MessageComponentsHasBeenSet() const { return m_messageComponentsHasBeenSet; }
73 template<typename MessageComponentsT = MessageComponentsSummary>
74 void SetMessageComponents(MessageComponentsT&& value) { m_messageComponentsHasBeenSet = true; m_messageComponents = std::forward<MessageComponentsT>(value); }
75 template<typename MessageComponentsT = MessageComponentsSummary>
76 NotificationEventSummary& WithMessageComponents(MessageComponentsT&& value) { SetMessageComponents(std::forward<MessageComponentsT>(value)); return *this;}
78
80
88 inline EventStatus GetEventStatus() const { return m_eventStatus; }
89 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
90 inline void SetEventStatus(EventStatus value) { m_eventStatusHasBeenSet = true; m_eventStatus = value; }
93
95
109 inline NotificationType GetNotificationType() const { return m_notificationType; }
110 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
111 inline void SetNotificationType(NotificationType value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; }
114 private:
115
116 SchemaVersion m_schemaVersion{SchemaVersion::NOT_SET};
117 bool m_schemaVersionHasBeenSet = false;
118
119 SourceEventMetadataSummary m_sourceEventMetadata;
120 bool m_sourceEventMetadataHasBeenSet = false;
121
122 MessageComponentsSummary m_messageComponents;
123 bool m_messageComponentsHasBeenSet = false;
124
125 EventStatus m_eventStatus{EventStatus::NOT_SET};
126 bool m_eventStatusHasBeenSet = false;
127
129 bool m_notificationTypeHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Notifications
134} // 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