AWS SDK for C++

AWS SDK for C++ Version 1.11.911

Loading...
Searching...
No Matches
ManagedNotificationEvent.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/MessageComponents.h>
16#include <aws/notifications/model/NotificationEventAttachment.h>
17#include <aws/notifications/model/NotificationType.h>
18#include <aws/notifications/model/SchemaVersion.h>
19#include <aws/notifications/model/TextPartValue.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace Notifications {
31namespace Model {
32
41 public:
42 AWS_NOTIFICATIONS_API ManagedNotificationEvent() = default;
43 AWS_NOTIFICATIONS_API ManagedNotificationEvent(Aws::Utils::Json::JsonView jsonValue);
45 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
51 inline SchemaVersion GetSchemaVersion() const { return m_schemaVersion; }
52 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
53 inline void SetSchemaVersion(SchemaVersion value) {
54 m_schemaVersionHasBeenSet = true;
55 m_schemaVersion = value;
56 }
58 SetSchemaVersion(value);
59 return *this;
60 }
62
64
67 inline const Aws::String& GetId() const { return m_id; }
68 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
69 template <typename IdT = Aws::String>
70 void SetId(IdT&& value) {
71 m_idHasBeenSet = true;
72 m_id = std::forward<IdT>(value);
73 }
74 template <typename IdT = Aws::String>
76 SetId(std::forward<IdT>(value));
77 return *this;
78 }
80
82
83 inline const MessageComponents& GetMessageComponents() const { return m_messageComponents; }
84 inline bool MessageComponentsHasBeenSet() const { return m_messageComponentsHasBeenSet; }
85 template <typename MessageComponentsT = MessageComponents>
86 void SetMessageComponents(MessageComponentsT&& value) {
87 m_messageComponentsHasBeenSet = true;
88 m_messageComponents = std::forward<MessageComponentsT>(value);
89 }
90 template <typename MessageComponentsT = MessageComponents>
91 ManagedNotificationEvent& WithMessageComponents(MessageComponentsT&& value) {
92 SetMessageComponents(std::forward<MessageComponentsT>(value));
93 return *this;
94 }
96
98
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) {
106 m_sourceEventDetailUrlHasBeenSet = true;
107 m_sourceEventDetailUrl = std::forward<SourceEventDetailUrlT>(value);
108 }
109 template <typename SourceEventDetailUrlT = Aws::String>
110 ManagedNotificationEvent& WithSourceEventDetailUrl(SourceEventDetailUrlT&& value) {
111 SetSourceEventDetailUrl(std::forward<SourceEventDetailUrlT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::String& GetSourceEventDetailUrlDisplayText() const { return m_sourceEventDetailUrlDisplayText; }
122 inline bool SourceEventDetailUrlDisplayTextHasBeenSet() const { return m_sourceEventDetailUrlDisplayTextHasBeenSet; }
123 template <typename SourceEventDetailUrlDisplayTextT = Aws::String>
124 void SetSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT&& value) {
125 m_sourceEventDetailUrlDisplayTextHasBeenSet = true;
126 m_sourceEventDetailUrlDisplayText = std::forward<SourceEventDetailUrlDisplayTextT>(value);
127 }
128 template <typename SourceEventDetailUrlDisplayTextT = Aws::String>
129 ManagedNotificationEvent& WithSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT&& value) {
130 SetSourceEventDetailUrlDisplayText(std::forward<SourceEventDetailUrlDisplayTextT>(value));
131 return *this;
132 }
134
136
150 inline NotificationType GetNotificationType() const { return m_notificationType; }
151 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
153 m_notificationTypeHasBeenSet = true;
154 m_notificationType = value;
155 }
157 SetNotificationType(value);
158 return *this;
159 }
161
163
171 inline EventStatus GetEventStatus() const { return m_eventStatus; }
172 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
173 inline void SetEventStatus(EventStatus value) {
174 m_eventStatusHasBeenSet = true;
175 m_eventStatus = value;
176 }
178 SetEventStatus(value);
179 return *this;
180 }
182
184
187 inline AggregationEventType GetAggregationEventType() const { return m_aggregationEventType; }
188 inline bool AggregationEventTypeHasBeenSet() const { return m_aggregationEventTypeHasBeenSet; }
190 m_aggregationEventTypeHasBeenSet = true;
191 m_aggregationEventType = value;
192 }
195 return *this;
196 }
198
200
201 inline const AggregationSummary& GetAggregationSummary() const { return m_aggregationSummary; }
202 inline bool AggregationSummaryHasBeenSet() const { return m_aggregationSummaryHasBeenSet; }
203 template <typename AggregationSummaryT = AggregationSummary>
204 void SetAggregationSummary(AggregationSummaryT&& value) {
205 m_aggregationSummaryHasBeenSet = true;
206 m_aggregationSummary = std::forward<AggregationSummaryT>(value);
207 }
208 template <typename AggregationSummaryT = AggregationSummary>
209 ManagedNotificationEvent& WithAggregationSummary(AggregationSummaryT&& value) {
210 SetAggregationSummary(std::forward<AggregationSummaryT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
220 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
221 template <typename StartTimeT = Aws::Utils::DateTime>
222 void SetStartTime(StartTimeT&& value) {
223 m_startTimeHasBeenSet = true;
224 m_startTime = std::forward<StartTimeT>(value);
225 }
226 template <typename StartTimeT = Aws::Utils::DateTime>
228 SetStartTime(std::forward<StartTimeT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
238 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
239 template <typename EndTimeT = Aws::Utils::DateTime>
240 void SetEndTime(EndTimeT&& value) {
241 m_endTimeHasBeenSet = true;
242 m_endTime = std::forward<EndTimeT>(value);
243 }
244 template <typename EndTimeT = Aws::Utils::DateTime>
246 SetEndTime(std::forward<EndTimeT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::Map<Aws::String, TextPartValue>& GetTextParts() const { return m_textParts; }
256 inline bool TextPartsHasBeenSet() const { return m_textPartsHasBeenSet; }
257 template <typename TextPartsT = Aws::Map<Aws::String, TextPartValue>>
258 void SetTextParts(TextPartsT&& value) {
259 m_textPartsHasBeenSet = true;
260 m_textParts = std::forward<TextPartsT>(value);
261 }
262 template <typename TextPartsT = Aws::Map<Aws::String, TextPartValue>>
264 SetTextParts(std::forward<TextPartsT>(value));
265 return *this;
266 }
267 template <typename TextPartsKeyT = Aws::String, typename TextPartsValueT = TextPartValue>
268 ManagedNotificationEvent& AddTextParts(TextPartsKeyT&& key, TextPartsValueT&& value) {
269 m_textPartsHasBeenSet = true;
270 m_textParts.emplace(std::forward<TextPartsKeyT>(key), std::forward<TextPartsValueT>(value));
271 return *this;
272 }
274
276
280 inline const Aws::String& GetOrganizationalUnitId() const { return m_organizationalUnitId; }
281 inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; }
282 template <typename OrganizationalUnitIdT = Aws::String>
283 void SetOrganizationalUnitId(OrganizationalUnitIdT&& value) {
284 m_organizationalUnitIdHasBeenSet = true;
285 m_organizationalUnitId = std::forward<OrganizationalUnitIdT>(value);
286 }
287 template <typename OrganizationalUnitIdT = Aws::String>
288 ManagedNotificationEvent& WithOrganizationalUnitId(OrganizationalUnitIdT&& value) {
289 SetOrganizationalUnitId(std::forward<OrganizationalUnitIdT>(value));
290 return *this;
291 }
293
295
298 inline const Aws::Vector<NotificationEventAttachment>& GetAttachments() const { return m_attachments; }
299 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
300 template <typename AttachmentsT = Aws::Vector<NotificationEventAttachment>>
301 void SetAttachments(AttachmentsT&& value) {
302 m_attachmentsHasBeenSet = true;
303 m_attachments = std::forward<AttachmentsT>(value);
304 }
305 template <typename AttachmentsT = Aws::Vector<NotificationEventAttachment>>
307 SetAttachments(std::forward<AttachmentsT>(value));
308 return *this;
309 }
310 template <typename AttachmentsT = NotificationEventAttachment>
312 m_attachmentsHasBeenSet = true;
313 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
314 return *this;
315 }
317 private:
318 SchemaVersion m_schemaVersion{SchemaVersion::NOT_SET};
319
320 Aws::String m_id;
321
322 MessageComponents m_messageComponents;
323
324 Aws::String m_sourceEventDetailUrl;
325
326 Aws::String m_sourceEventDetailUrlDisplayText;
327
329
330 EventStatus m_eventStatus{EventStatus::NOT_SET};
331
333
334 AggregationSummary m_aggregationSummary;
335
336 Aws::Utils::DateTime m_startTime{};
337
338 Aws::Utils::DateTime m_endTime{};
339
341
342 Aws::String m_organizationalUnitId;
343
345 bool m_schemaVersionHasBeenSet = false;
346 bool m_idHasBeenSet = false;
347 bool m_messageComponentsHasBeenSet = false;
348 bool m_sourceEventDetailUrlHasBeenSet = false;
349 bool m_sourceEventDetailUrlDisplayTextHasBeenSet = false;
350 bool m_notificationTypeHasBeenSet = false;
351 bool m_eventStatusHasBeenSet = false;
352 bool m_aggregationEventTypeHasBeenSet = false;
353 bool m_aggregationSummaryHasBeenSet = false;
354 bool m_startTimeHasBeenSet = false;
355 bool m_endTimeHasBeenSet = false;
356 bool m_textPartsHasBeenSet = false;
357 bool m_organizationalUnitIdHasBeenSet = false;
358 bool m_attachmentsHasBeenSet = false;
359};
360
361} // namespace Model
362} // namespace Notifications
363} // namespace Aws
ManagedNotificationEvent & WithNotificationType(NotificationType value)
void SetSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT &&value)
AWS_NOTIFICATIONS_API ManagedNotificationEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
ManagedNotificationEvent & AddAttachments(AttachmentsT &&value)
ManagedNotificationEvent & WithAttachments(AttachmentsT &&value)
ManagedNotificationEvent & WithEndTime(EndTimeT &&value)
const Aws::Map< Aws::String, TextPartValue > & GetTextParts() const
ManagedNotificationEvent & WithStartTime(StartTimeT &&value)
ManagedNotificationEvent & WithTextParts(TextPartsT &&value)
ManagedNotificationEvent & WithSchemaVersion(SchemaVersion value)
AWS_NOTIFICATIONS_API ManagedNotificationEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedNotificationEvent & AddTextParts(TextPartsKeyT &&key, TextPartsValueT &&value)
ManagedNotificationEvent & WithAggregationSummary(AggregationSummaryT &&value)
ManagedNotificationEvent & WithMessageComponents(MessageComponentsT &&value)
ManagedNotificationEvent & WithEventStatus(EventStatus value)
ManagedNotificationEvent & WithSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT &&value)
const Aws::Vector< NotificationEventAttachment > & GetAttachments() const
ManagedNotificationEvent & WithSourceEventDetailUrl(SourceEventDetailUrlT &&value)
ManagedNotificationEvent & WithAggregationEventType(AggregationEventType value)
ManagedNotificationEvent & WithOrganizationalUnitId(OrganizationalUnitIdT &&value)
AWS_NOTIFICATIONS_API ManagedNotificationEvent()=default
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