AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NotificationEvent.h
1
6#pragma once
7#include <aws/notifications/Notifications_EXPORTS.h>
8#include <aws/notifications/model/SchemaVersion.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/notifications/model/SourceEventMetadata.h>
11#include <aws/notifications/model/MessageComponents.h>
12#include <aws/notifications/model/NotificationType.h>
13#include <aws/notifications/model/EventStatus.h>
14#include <aws/notifications/model/AggregationEventType.h>
15#include <aws/notifications/model/AggregationSummary.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19#include <aws/notifications/model/TextPartValue.h>
20#include <aws/notifications/model/MediaElement.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Utils
26{
27namespace Json
28{
29 class JsonValue;
30 class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace Notifications
34{
35namespace Model
36{
37
46 {
47 public:
48 AWS_NOTIFICATIONS_API NotificationEvent() = default;
49 AWS_NOTIFICATIONS_API NotificationEvent(Aws::Utils::Json::JsonView jsonValue);
50 AWS_NOTIFICATIONS_API NotificationEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
51 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
52
53
55
58 inline SchemaVersion GetSchemaVersion() const { return m_schemaVersion; }
59 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
60 inline void SetSchemaVersion(SchemaVersion value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = value; }
61 inline NotificationEvent& WithSchemaVersion(SchemaVersion value) { SetSchemaVersion(value); return *this;}
63
65
68 inline const Aws::String& GetId() const { return m_id; }
69 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
70 template<typename IdT = Aws::String>
71 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
72 template<typename IdT = Aws::String>
73 NotificationEvent& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
75
77
80 inline const SourceEventMetadata& GetSourceEventMetadata() const { return m_sourceEventMetadata; }
81 inline bool SourceEventMetadataHasBeenSet() const { return m_sourceEventMetadataHasBeenSet; }
82 template<typename SourceEventMetadataT = SourceEventMetadata>
83 void SetSourceEventMetadata(SourceEventMetadataT&& value) { m_sourceEventMetadataHasBeenSet = true; m_sourceEventMetadata = std::forward<SourceEventMetadataT>(value); }
84 template<typename SourceEventMetadataT = SourceEventMetadata>
85 NotificationEvent& WithSourceEventMetadata(SourceEventMetadataT&& value) { SetSourceEventMetadata(std::forward<SourceEventMetadataT>(value)); return *this;}
87
89
90 inline const MessageComponents& GetMessageComponents() const { return m_messageComponents; }
91 inline bool MessageComponentsHasBeenSet() const { return m_messageComponentsHasBeenSet; }
92 template<typename MessageComponentsT = MessageComponents>
93 void SetMessageComponents(MessageComponentsT&& value) { m_messageComponentsHasBeenSet = true; m_messageComponents = std::forward<MessageComponentsT>(value); }
94 template<typename MessageComponentsT = MessageComponents>
95 NotificationEvent& WithMessageComponents(MessageComponentsT&& value) { SetMessageComponents(std::forward<MessageComponentsT>(value)); return *this;}
97
99
102 inline const Aws::String& GetSourceEventDetailUrl() const { return m_sourceEventDetailUrl; }
103 inline bool SourceEventDetailUrlHasBeenSet() const { return m_sourceEventDetailUrlHasBeenSet; }
104 template<typename SourceEventDetailUrlT = Aws::String>
105 void SetSourceEventDetailUrl(SourceEventDetailUrlT&& value) { m_sourceEventDetailUrlHasBeenSet = true; m_sourceEventDetailUrl = std::forward<SourceEventDetailUrlT>(value); }
106 template<typename SourceEventDetailUrlT = Aws::String>
107 NotificationEvent& WithSourceEventDetailUrl(SourceEventDetailUrlT&& value) { SetSourceEventDetailUrl(std::forward<SourceEventDetailUrlT>(value)); return *this;}
109
111
114 inline const Aws::String& GetSourceEventDetailUrlDisplayText() const { return m_sourceEventDetailUrlDisplayText; }
115 inline bool SourceEventDetailUrlDisplayTextHasBeenSet() const { return m_sourceEventDetailUrlDisplayTextHasBeenSet; }
116 template<typename SourceEventDetailUrlDisplayTextT = Aws::String>
117 void SetSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT&& value) { m_sourceEventDetailUrlDisplayTextHasBeenSet = true; m_sourceEventDetailUrlDisplayText = std::forward<SourceEventDetailUrlDisplayTextT>(value); }
118 template<typename SourceEventDetailUrlDisplayTextT = Aws::String>
119 NotificationEvent& WithSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT&& value) { SetSourceEventDetailUrlDisplayText(std::forward<SourceEventDetailUrlDisplayTextT>(value)); return *this;}
121
123
137 inline NotificationType GetNotificationType() const { return m_notificationType; }
138 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
139 inline void SetNotificationType(NotificationType value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; }
142
144
152 inline EventStatus GetEventStatus() const { return m_eventStatus; }
153 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
154 inline void SetEventStatus(EventStatus value) { m_eventStatusHasBeenSet = true; m_eventStatus = value; }
155 inline NotificationEvent& WithEventStatus(EventStatus value) { SetEventStatus(value); return *this;}
157
159
169 inline AggregationEventType GetAggregationEventType() const { return m_aggregationEventType; }
170 inline bool AggregationEventTypeHasBeenSet() const { return m_aggregationEventTypeHasBeenSet; }
171 inline void SetAggregationEventType(AggregationEventType value) { m_aggregationEventTypeHasBeenSet = true; m_aggregationEventType = value; }
174
176
181 inline const Aws::String& GetAggregateNotificationEventArn() const { return m_aggregateNotificationEventArn; }
182 inline bool AggregateNotificationEventArnHasBeenSet() const { return m_aggregateNotificationEventArnHasBeenSet; }
183 template<typename AggregateNotificationEventArnT = Aws::String>
184 void SetAggregateNotificationEventArn(AggregateNotificationEventArnT&& value) { m_aggregateNotificationEventArnHasBeenSet = true; m_aggregateNotificationEventArn = std::forward<AggregateNotificationEventArnT>(value); }
185 template<typename AggregateNotificationEventArnT = Aws::String>
186 NotificationEvent& WithAggregateNotificationEventArn(AggregateNotificationEventArnT&& value) { SetAggregateNotificationEventArn(std::forward<AggregateNotificationEventArnT>(value)); return *this;}
188
190
194 inline const AggregationSummary& GetAggregationSummary() const { return m_aggregationSummary; }
195 inline bool AggregationSummaryHasBeenSet() const { return m_aggregationSummaryHasBeenSet; }
196 template<typename AggregationSummaryT = AggregationSummary>
197 void SetAggregationSummary(AggregationSummaryT&& value) { m_aggregationSummaryHasBeenSet = true; m_aggregationSummary = std::forward<AggregationSummaryT>(value); }
198 template<typename AggregationSummaryT = AggregationSummary>
199 NotificationEvent& WithAggregationSummary(AggregationSummaryT&& value) { SetAggregationSummary(std::forward<AggregationSummaryT>(value)); return *this;}
201
203
206 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
207 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
208 template<typename StartTimeT = Aws::Utils::DateTime>
209 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
210 template<typename StartTimeT = Aws::Utils::DateTime>
211 NotificationEvent& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
213
215
218 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
219 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
220 template<typename EndTimeT = Aws::Utils::DateTime>
221 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
222 template<typename EndTimeT = Aws::Utils::DateTime>
223 NotificationEvent& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
225
227
230 inline const Aws::Map<Aws::String, TextPartValue>& GetTextParts() const { return m_textParts; }
231 inline bool TextPartsHasBeenSet() const { return m_textPartsHasBeenSet; }
232 template<typename TextPartsT = Aws::Map<Aws::String, TextPartValue>>
233 void SetTextParts(TextPartsT&& value) { m_textPartsHasBeenSet = true; m_textParts = std::forward<TextPartsT>(value); }
234 template<typename TextPartsT = Aws::Map<Aws::String, TextPartValue>>
235 NotificationEvent& WithTextParts(TextPartsT&& value) { SetTextParts(std::forward<TextPartsT>(value)); return *this;}
236 template<typename TextPartsKeyT = Aws::String, typename TextPartsValueT = TextPartValue>
237 NotificationEvent& AddTextParts(TextPartsKeyT&& key, TextPartsValueT&& value) {
238 m_textPartsHasBeenSet = true; m_textParts.emplace(std::forward<TextPartsKeyT>(key), std::forward<TextPartsValueT>(value)); return *this;
239 }
241
243
246 inline const Aws::Vector<MediaElement>& GetMedia() const { return m_media; }
247 inline bool MediaHasBeenSet() const { return m_mediaHasBeenSet; }
248 template<typename MediaT = Aws::Vector<MediaElement>>
249 void SetMedia(MediaT&& value) { m_mediaHasBeenSet = true; m_media = std::forward<MediaT>(value); }
250 template<typename MediaT = Aws::Vector<MediaElement>>
251 NotificationEvent& WithMedia(MediaT&& value) { SetMedia(std::forward<MediaT>(value)); return *this;}
252 template<typename MediaT = MediaElement>
253 NotificationEvent& AddMedia(MediaT&& value) { m_mediaHasBeenSet = true; m_media.emplace_back(std::forward<MediaT>(value)); return *this; }
255 private:
256
257 SchemaVersion m_schemaVersion{SchemaVersion::NOT_SET};
258 bool m_schemaVersionHasBeenSet = false;
259
260 Aws::String m_id;
261 bool m_idHasBeenSet = false;
262
263 SourceEventMetadata m_sourceEventMetadata;
264 bool m_sourceEventMetadataHasBeenSet = false;
265
266 MessageComponents m_messageComponents;
267 bool m_messageComponentsHasBeenSet = false;
268
269 Aws::String m_sourceEventDetailUrl;
270 bool m_sourceEventDetailUrlHasBeenSet = false;
271
272 Aws::String m_sourceEventDetailUrlDisplayText;
273 bool m_sourceEventDetailUrlDisplayTextHasBeenSet = false;
274
276 bool m_notificationTypeHasBeenSet = false;
277
278 EventStatus m_eventStatus{EventStatus::NOT_SET};
279 bool m_eventStatusHasBeenSet = false;
280
282 bool m_aggregationEventTypeHasBeenSet = false;
283
284 Aws::String m_aggregateNotificationEventArn;
285 bool m_aggregateNotificationEventArnHasBeenSet = false;
286
287 AggregationSummary m_aggregationSummary;
288 bool m_aggregationSummaryHasBeenSet = false;
289
290 Aws::Utils::DateTime m_startTime{};
291 bool m_startTimeHasBeenSet = false;
292
293 Aws::Utils::DateTime m_endTime{};
294 bool m_endTimeHasBeenSet = false;
295
297 bool m_textPartsHasBeenSet = false;
298
300 bool m_mediaHasBeenSet = false;
301 };
302
303} // namespace Model
304} // namespace Notifications
305} // namespace Aws
AWS_NOTIFICATIONS_API NotificationEvent(Aws::Utils::Json::JsonView jsonValue)
NotificationEvent & WithId(IdT &&value)
const MessageComponents & GetMessageComponents() const
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
NotificationEvent & WithEventStatus(EventStatus value)
NotificationEvent & WithSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT &&value)
NotificationEvent & WithMedia(MediaT &&value)
const Aws::Utils::DateTime & GetStartTime() const
NotificationEvent & WithTextParts(TextPartsT &&value)
const AggregationSummary & GetAggregationSummary() const
NotificationEvent & WithStartTime(StartTimeT &&value)
const Aws::String & GetSourceEventDetailUrlDisplayText() const
void SetAggregationSummary(AggregationSummaryT &&value)
NotificationEvent & WithSchemaVersion(SchemaVersion value)
NotificationEvent & WithAggregationEventType(AggregationEventType value)
void SetAggregateNotificationEventArn(AggregateNotificationEventArnT &&value)
NotificationEvent & WithAggregateNotificationEventArn(AggregateNotificationEventArnT &&value)
void SetMessageComponents(MessageComponentsT &&value)
NotificationEvent & WithNotificationType(NotificationType value)
const Aws::String & GetSourceEventDetailUrl() const
void SetSourceEventMetadata(SourceEventMetadataT &&value)
NotificationEvent & WithEndTime(EndTimeT &&value)
NotificationEvent & WithSourceEventMetadata(SourceEventMetadataT &&value)
void SetNotificationType(NotificationType value)
const Aws::Utils::DateTime & GetEndTime() const
NotificationEvent & WithMessageComponents(MessageComponentsT &&value)
const Aws::String & GetAggregateNotificationEventArn() const
void SetSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT &&value)
AWS_NOTIFICATIONS_API NotificationEvent()=default
AggregationEventType GetAggregationEventType() const
const Aws::Map< Aws::String, TextPartValue > & GetTextParts() const
NotificationEvent & WithAggregationSummary(AggregationSummaryT &&value)
AWS_NOTIFICATIONS_API NotificationEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAggregationEventType(AggregationEventType value)
NotificationEvent & AddTextParts(TextPartsKeyT &&key, TextPartsValueT &&value)
NotificationEvent & AddMedia(MediaT &&value)
NotificationEvent & WithSourceEventDetailUrl(SourceEventDetailUrlT &&value)
void SetSourceEventDetailUrl(SourceEventDetailUrlT &&value)
const SourceEventMetadata & GetSourceEventMetadata() const
const Aws::Vector< MediaElement > & GetMedia() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue