AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ManagedNotificationEventSummary.h
1
6#pragma once
7#include <aws/notifications/Notifications_EXPORTS.h>
8#include <aws/notifications/model/SchemaVersion.h>
9#include <aws/notifications/model/ManagedSourceEventMetadataSummary.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 ManagedNotificationEventSummary() = default;
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
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) { m_sourceEventMetadataHasBeenSet = true; m_sourceEventMetadata = std::forward<SourceEventMetadataT>(value); }
64 template<typename SourceEventMetadataT = ManagedSourceEventMetadataSummary>
65 ManagedNotificationEventSummary& WithSourceEventMetadata(SourceEventMetadataT&& value) { SetSourceEventMetadata(std::forward<SourceEventMetadataT>(value)); return *this;}
67
69
70 inline const MessageComponentsSummary& GetMessageComponents() const { return m_messageComponents; }
71 inline bool MessageComponentsHasBeenSet() const { return m_messageComponentsHasBeenSet; }
72 template<typename MessageComponentsT = MessageComponentsSummary>
73 void SetMessageComponents(MessageComponentsT&& value) { m_messageComponentsHasBeenSet = true; m_messageComponents = std::forward<MessageComponentsT>(value); }
74 template<typename MessageComponentsT = MessageComponentsSummary>
75 ManagedNotificationEventSummary& WithMessageComponents(MessageComponentsT&& value) { SetMessageComponents(std::forward<MessageComponentsT>(value)); return *this;}
77
79
86 inline EventStatus GetEventStatus() const { return m_eventStatus; }
87 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
88 inline void SetEventStatus(EventStatus value) { m_eventStatusHasBeenSet = true; m_eventStatus = value; }
91
93
107 inline NotificationType GetNotificationType() const { return m_notificationType; }
108 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
109 inline void SetNotificationType(NotificationType value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; }
112 private:
113
114 SchemaVersion m_schemaVersion{SchemaVersion::NOT_SET};
115 bool m_schemaVersionHasBeenSet = false;
116
117 ManagedSourceEventMetadataSummary m_sourceEventMetadata;
118 bool m_sourceEventMetadataHasBeenSet = false;
119
120 MessageComponentsSummary m_messageComponents;
121 bool m_messageComponentsHasBeenSet = false;
122
123 EventStatus m_eventStatus{EventStatus::NOT_SET};
124 bool m_eventStatusHasBeenSet = false;
125
127 bool m_notificationTypeHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace Notifications
132} // 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