AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
NotificationEvent.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/notifications/Notifications_EXPORTS.h>
12#include <aws/notifications/model/AggregationEventType.h>
13#include <aws/notifications/model/AggregationSummary.h>
14#include <aws/notifications/model/EventStatus.h>
15#include <aws/notifications/model/MediaElement.h>
16#include <aws/notifications/model/MessageComponents.h>
17#include <aws/notifications/model/NotificationType.h>
18#include <aws/notifications/model/SchemaVersion.h>
19#include <aws/notifications/model/SourceEventMetadata.h>
20#include <aws/notifications/model/TextPartValue.h>
21
22#include <utility>
23
24namespace Aws {
25namespace Utils {
26namespace Json {
27class JsonValue;
28class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace Notifications {
32namespace Model {
33
42 public:
43 AWS_NOTIFICATIONS_API NotificationEvent() = default;
44 AWS_NOTIFICATIONS_API NotificationEvent(Aws::Utils::Json::JsonView jsonValue);
45 AWS_NOTIFICATIONS_API NotificationEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
47
49
52 inline SchemaVersion GetSchemaVersion() const { return m_schemaVersion; }
53 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
54 inline void SetSchemaVersion(SchemaVersion value) {
55 m_schemaVersionHasBeenSet = true;
56 m_schemaVersion = value;
57 }
59 SetSchemaVersion(value);
60 return *this;
61 }
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) {
72 m_idHasBeenSet = true;
73 m_id = std::forward<IdT>(value);
74 }
75 template <typename IdT = Aws::String>
76 NotificationEvent& WithId(IdT&& value) {
77 SetId(std::forward<IdT>(value));
78 return *this;
79 }
81
83
86 inline const SourceEventMetadata& GetSourceEventMetadata() const { return m_sourceEventMetadata; }
87 inline bool SourceEventMetadataHasBeenSet() const { return m_sourceEventMetadataHasBeenSet; }
88 template <typename SourceEventMetadataT = SourceEventMetadata>
89 void SetSourceEventMetadata(SourceEventMetadataT&& value) {
90 m_sourceEventMetadataHasBeenSet = true;
91 m_sourceEventMetadata = std::forward<SourceEventMetadataT>(value);
92 }
93 template <typename SourceEventMetadataT = SourceEventMetadata>
94 NotificationEvent& WithSourceEventMetadata(SourceEventMetadataT&& value) {
95 SetSourceEventMetadata(std::forward<SourceEventMetadataT>(value));
96 return *this;
97 }
99
101
102 inline const MessageComponents& GetMessageComponents() const { return m_messageComponents; }
103 inline bool MessageComponentsHasBeenSet() const { return m_messageComponentsHasBeenSet; }
104 template <typename MessageComponentsT = MessageComponents>
105 void SetMessageComponents(MessageComponentsT&& value) {
106 m_messageComponentsHasBeenSet = true;
107 m_messageComponents = std::forward<MessageComponentsT>(value);
108 }
109 template <typename MessageComponentsT = MessageComponents>
110 NotificationEvent& WithMessageComponents(MessageComponentsT&& value) {
111 SetMessageComponents(std::forward<MessageComponentsT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetSourceEventDetailUrl() const { return m_sourceEventDetailUrl; }
121 inline bool SourceEventDetailUrlHasBeenSet() const { return m_sourceEventDetailUrlHasBeenSet; }
122 template <typename SourceEventDetailUrlT = Aws::String>
123 void SetSourceEventDetailUrl(SourceEventDetailUrlT&& value) {
124 m_sourceEventDetailUrlHasBeenSet = true;
125 m_sourceEventDetailUrl = std::forward<SourceEventDetailUrlT>(value);
126 }
127 template <typename SourceEventDetailUrlT = Aws::String>
128 NotificationEvent& WithSourceEventDetailUrl(SourceEventDetailUrlT&& value) {
129 SetSourceEventDetailUrl(std::forward<SourceEventDetailUrlT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetSourceEventDetailUrlDisplayText() const { return m_sourceEventDetailUrlDisplayText; }
139 inline bool SourceEventDetailUrlDisplayTextHasBeenSet() const { return m_sourceEventDetailUrlDisplayTextHasBeenSet; }
140 template <typename SourceEventDetailUrlDisplayTextT = Aws::String>
141 void SetSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT&& value) {
142 m_sourceEventDetailUrlDisplayTextHasBeenSet = true;
143 m_sourceEventDetailUrlDisplayText = std::forward<SourceEventDetailUrlDisplayTextT>(value);
144 }
145 template <typename SourceEventDetailUrlDisplayTextT = Aws::String>
146 NotificationEvent& WithSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT&& value) {
147 SetSourceEventDetailUrlDisplayText(std::forward<SourceEventDetailUrlDisplayTextT>(value));
148 return *this;
149 }
151
153
167 inline NotificationType GetNotificationType() const { return m_notificationType; }
168 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
170 m_notificationTypeHasBeenSet = true;
171 m_notificationType = value;
172 }
174 SetNotificationType(value);
175 return *this;
176 }
178
180
188 inline EventStatus GetEventStatus() const { return m_eventStatus; }
189 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
190 inline void SetEventStatus(EventStatus value) {
191 m_eventStatusHasBeenSet = true;
192 m_eventStatus = value;
193 }
195 SetEventStatus(value);
196 return *this;
197 }
199
201
211 inline AggregationEventType GetAggregationEventType() const { return m_aggregationEventType; }
212 inline bool AggregationEventTypeHasBeenSet() const { return m_aggregationEventTypeHasBeenSet; }
214 m_aggregationEventTypeHasBeenSet = true;
215 m_aggregationEventType = value;
216 }
219 return *this;
220 }
222
224
229 inline const Aws::String& GetAggregateNotificationEventArn() const { return m_aggregateNotificationEventArn; }
230 inline bool AggregateNotificationEventArnHasBeenSet() const { return m_aggregateNotificationEventArnHasBeenSet; }
231 template <typename AggregateNotificationEventArnT = Aws::String>
232 void SetAggregateNotificationEventArn(AggregateNotificationEventArnT&& value) {
233 m_aggregateNotificationEventArnHasBeenSet = true;
234 m_aggregateNotificationEventArn = std::forward<AggregateNotificationEventArnT>(value);
235 }
236 template <typename AggregateNotificationEventArnT = Aws::String>
237 NotificationEvent& WithAggregateNotificationEventArn(AggregateNotificationEventArnT&& value) {
238 SetAggregateNotificationEventArn(std::forward<AggregateNotificationEventArnT>(value));
239 return *this;
240 }
242
244
248 inline const AggregationSummary& GetAggregationSummary() const { return m_aggregationSummary; }
249 inline bool AggregationSummaryHasBeenSet() const { return m_aggregationSummaryHasBeenSet; }
250 template <typename AggregationSummaryT = AggregationSummary>
251 void SetAggregationSummary(AggregationSummaryT&& value) {
252 m_aggregationSummaryHasBeenSet = true;
253 m_aggregationSummary = std::forward<AggregationSummaryT>(value);
254 }
255 template <typename AggregationSummaryT = AggregationSummary>
256 NotificationEvent& WithAggregationSummary(AggregationSummaryT&& value) {
257 SetAggregationSummary(std::forward<AggregationSummaryT>(value));
258 return *this;
259 }
261
263
266 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
267 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
268 template <typename StartTimeT = Aws::Utils::DateTime>
269 void SetStartTime(StartTimeT&& value) {
270 m_startTimeHasBeenSet = true;
271 m_startTime = std::forward<StartTimeT>(value);
272 }
273 template <typename StartTimeT = Aws::Utils::DateTime>
274 NotificationEvent& WithStartTime(StartTimeT&& value) {
275 SetStartTime(std::forward<StartTimeT>(value));
276 return *this;
277 }
279
281
284 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
285 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
286 template <typename EndTimeT = Aws::Utils::DateTime>
287 void SetEndTime(EndTimeT&& value) {
288 m_endTimeHasBeenSet = true;
289 m_endTime = std::forward<EndTimeT>(value);
290 }
291 template <typename EndTimeT = Aws::Utils::DateTime>
292 NotificationEvent& WithEndTime(EndTimeT&& value) {
293 SetEndTime(std::forward<EndTimeT>(value));
294 return *this;
295 }
297
299
302 inline const Aws::Map<Aws::String, TextPartValue>& GetTextParts() const { return m_textParts; }
303 inline bool TextPartsHasBeenSet() const { return m_textPartsHasBeenSet; }
304 template <typename TextPartsT = Aws::Map<Aws::String, TextPartValue>>
305 void SetTextParts(TextPartsT&& value) {
306 m_textPartsHasBeenSet = true;
307 m_textParts = std::forward<TextPartsT>(value);
308 }
309 template <typename TextPartsT = Aws::Map<Aws::String, TextPartValue>>
310 NotificationEvent& WithTextParts(TextPartsT&& value) {
311 SetTextParts(std::forward<TextPartsT>(value));
312 return *this;
313 }
314 template <typename TextPartsKeyT = Aws::String, typename TextPartsValueT = TextPartValue>
315 NotificationEvent& AddTextParts(TextPartsKeyT&& key, TextPartsValueT&& value) {
316 m_textPartsHasBeenSet = true;
317 m_textParts.emplace(std::forward<TextPartsKeyT>(key), std::forward<TextPartsValueT>(value));
318 return *this;
319 }
321
323
326 inline const Aws::Vector<MediaElement>& GetMedia() const { return m_media; }
327 inline bool MediaHasBeenSet() const { return m_mediaHasBeenSet; }
328 template <typename MediaT = Aws::Vector<MediaElement>>
329 void SetMedia(MediaT&& value) {
330 m_mediaHasBeenSet = true;
331 m_media = std::forward<MediaT>(value);
332 }
333 template <typename MediaT = Aws::Vector<MediaElement>>
334 NotificationEvent& WithMedia(MediaT&& value) {
335 SetMedia(std::forward<MediaT>(value));
336 return *this;
337 }
338 template <typename MediaT = MediaElement>
339 NotificationEvent& AddMedia(MediaT&& value) {
340 m_mediaHasBeenSet = true;
341 m_media.emplace_back(std::forward<MediaT>(value));
342 return *this;
343 }
345
347
351 inline const Aws::String& GetOrganizationalUnitId() const { return m_organizationalUnitId; }
352 inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; }
353 template <typename OrganizationalUnitIdT = Aws::String>
354 void SetOrganizationalUnitId(OrganizationalUnitIdT&& value) {
355 m_organizationalUnitIdHasBeenSet = true;
356 m_organizationalUnitId = std::forward<OrganizationalUnitIdT>(value);
357 }
358 template <typename OrganizationalUnitIdT = Aws::String>
359 NotificationEvent& WithOrganizationalUnitId(OrganizationalUnitIdT&& value) {
360 SetOrganizationalUnitId(std::forward<OrganizationalUnitIdT>(value));
361 return *this;
362 }
364 private:
365 SchemaVersion m_schemaVersion{SchemaVersion::NOT_SET};
366
367 Aws::String m_id;
368
369 SourceEventMetadata m_sourceEventMetadata;
370
371 MessageComponents m_messageComponents;
372
373 Aws::String m_sourceEventDetailUrl;
374
375 Aws::String m_sourceEventDetailUrlDisplayText;
376
378
379 EventStatus m_eventStatus{EventStatus::NOT_SET};
380
382
383 Aws::String m_aggregateNotificationEventArn;
384
385 AggregationSummary m_aggregationSummary;
386
387 Aws::Utils::DateTime m_startTime{};
388
389 Aws::Utils::DateTime m_endTime{};
390
392
394
395 Aws::String m_organizationalUnitId;
396 bool m_schemaVersionHasBeenSet = false;
397 bool m_idHasBeenSet = false;
398 bool m_sourceEventMetadataHasBeenSet = false;
399 bool m_messageComponentsHasBeenSet = false;
400 bool m_sourceEventDetailUrlHasBeenSet = false;
401 bool m_sourceEventDetailUrlDisplayTextHasBeenSet = false;
402 bool m_notificationTypeHasBeenSet = false;
403 bool m_eventStatusHasBeenSet = false;
404 bool m_aggregationEventTypeHasBeenSet = false;
405 bool m_aggregateNotificationEventArnHasBeenSet = false;
406 bool m_aggregationSummaryHasBeenSet = false;
407 bool m_startTimeHasBeenSet = false;
408 bool m_endTimeHasBeenSet = false;
409 bool m_textPartsHasBeenSet = false;
410 bool m_mediaHasBeenSet = false;
411 bool m_organizationalUnitIdHasBeenSet = false;
412};
413
414} // namespace Model
415} // namespace Notifications
416} // 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)
const Aws::String & GetOrganizationalUnitId() const
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)
void SetOrganizationalUnitId(OrganizationalUnitIdT &&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
NotificationEvent & WithOrganizationalUnitId(OrganizationalUnitIdT &&value)
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