AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ManagedNotificationChildEventSummary.h
1
6#pragma once
7#include <aws/notifications/Notifications_EXPORTS.h>
8#include <aws/notifications/model/AggregationDetail.h>
9#include <aws/notifications/model/EventStatus.h>
10#include <aws/notifications/model/ManagedSourceEventMetadataSummary.h>
11#include <aws/notifications/model/MessageComponentsSummary.h>
12#include <aws/notifications/model/NotificationType.h>
13#include <aws/notifications/model/SchemaVersion.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Notifications {
25namespace Model {
26
34 public:
35 AWS_NOTIFICATIONS_API ManagedNotificationChildEventSummary() = default;
38 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline SchemaVersion GetSchemaVersion() const { return m_schemaVersion; }
45 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
46 inline void SetSchemaVersion(SchemaVersion value) {
47 m_schemaVersionHasBeenSet = true;
48 m_schemaVersion = value;
49 }
51 SetSchemaVersion(value);
52 return *this;
53 }
55
57
62 inline const ManagedSourceEventMetadataSummary& GetSourceEventMetadata() const { return m_sourceEventMetadata; }
63 inline bool SourceEventMetadataHasBeenSet() const { return m_sourceEventMetadataHasBeenSet; }
64 template <typename SourceEventMetadataT = ManagedSourceEventMetadataSummary>
65 void SetSourceEventMetadata(SourceEventMetadataT&& value) {
66 m_sourceEventMetadataHasBeenSet = true;
67 m_sourceEventMetadata = std::forward<SourceEventMetadataT>(value);
68 }
69 template <typename SourceEventMetadataT = ManagedSourceEventMetadataSummary>
71 SetSourceEventMetadata(std::forward<SourceEventMetadataT>(value));
72 return *this;
73 }
75
77
78 inline const MessageComponentsSummary& GetMessageComponents() const { return m_messageComponents; }
79 inline bool MessageComponentsHasBeenSet() const { return m_messageComponentsHasBeenSet; }
80 template <typename MessageComponentsT = MessageComponentsSummary>
81 void SetMessageComponents(MessageComponentsT&& value) {
82 m_messageComponentsHasBeenSet = true;
83 m_messageComponents = std::forward<MessageComponentsT>(value);
84 }
85 template <typename MessageComponentsT = MessageComponentsSummary>
87 SetMessageComponents(std::forward<MessageComponentsT>(value));
88 return *this;
89 }
91
93
97 inline const AggregationDetail& GetAggregationDetail() const { return m_aggregationDetail; }
98 inline bool AggregationDetailHasBeenSet() const { return m_aggregationDetailHasBeenSet; }
99 template <typename AggregationDetailT = AggregationDetail>
100 void SetAggregationDetail(AggregationDetailT&& value) {
101 m_aggregationDetailHasBeenSet = true;
102 m_aggregationDetail = std::forward<AggregationDetailT>(value);
103 }
104 template <typename AggregationDetailT = AggregationDetail>
106 SetAggregationDetail(std::forward<AggregationDetailT>(value));
107 return *this;
108 }
110
112
120 inline EventStatus GetEventStatus() const { return m_eventStatus; }
121 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
122 inline void SetEventStatus(EventStatus value) {
123 m_eventStatusHasBeenSet = true;
124 m_eventStatus = value;
125 }
127 SetEventStatus(value);
128 return *this;
129 }
131
133
147 inline NotificationType GetNotificationType() const { return m_notificationType; }
148 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
150 m_notificationTypeHasBeenSet = true;
151 m_notificationType = value;
152 }
154 SetNotificationType(value);
155 return *this;
156 }
158 private:
159 SchemaVersion m_schemaVersion{SchemaVersion::NOT_SET};
160
161 ManagedSourceEventMetadataSummary m_sourceEventMetadata;
162
163 MessageComponentsSummary m_messageComponents;
164
165 AggregationDetail m_aggregationDetail;
166
167 EventStatus m_eventStatus{EventStatus::NOT_SET};
168
170 bool m_schemaVersionHasBeenSet = false;
171 bool m_sourceEventMetadataHasBeenSet = false;
172 bool m_messageComponentsHasBeenSet = false;
173 bool m_aggregationDetailHasBeenSet = false;
174 bool m_eventStatusHasBeenSet = false;
175 bool m_notificationTypeHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace Notifications
180} // namespace Aws
ManagedNotificationChildEventSummary & WithEventStatus(EventStatus value)
AWS_NOTIFICATIONS_API ManagedNotificationChildEventSummary(Aws::Utils::Json::JsonView jsonValue)
ManagedNotificationChildEventSummary & WithSchemaVersion(SchemaVersion value)
ManagedNotificationChildEventSummary & WithSourceEventMetadata(SourceEventMetadataT &&value)
AWS_NOTIFICATIONS_API ManagedNotificationChildEventSummary()=default
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
ManagedNotificationChildEventSummary & WithMessageComponents(MessageComponentsT &&value)
ManagedNotificationChildEventSummary & WithNotificationType(NotificationType value)
AWS_NOTIFICATIONS_API ManagedNotificationChildEventSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedNotificationChildEventSummary & WithAggregationDetail(AggregationDetailT &&value)
Aws::Utils::Json::JsonValue JsonValue