AWS SDK for C++

AWS SDK for C++ Version 1.11.713

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/notifications/Notifications_EXPORTS.h>
11#include <aws/notifications/model/AggregationEventType.h>
12#include <aws/notifications/model/AggregationSummary.h>
13#include <aws/notifications/model/EventStatus.h>
14#include <aws/notifications/model/MessageComponents.h>
15#include <aws/notifications/model/NotificationType.h>
16#include <aws/notifications/model/SchemaVersion.h>
17#include <aws/notifications/model/TextPartValue.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Notifications {
29namespace Model {
30
39 public:
40 AWS_NOTIFICATIONS_API ManagedNotificationEvent() = default;
41 AWS_NOTIFICATIONS_API ManagedNotificationEvent(Aws::Utils::Json::JsonView jsonValue);
43 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline SchemaVersion GetSchemaVersion() const { return m_schemaVersion; }
50 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
51 inline void SetSchemaVersion(SchemaVersion value) {
52 m_schemaVersionHasBeenSet = true;
53 m_schemaVersion = value;
54 }
56 SetSchemaVersion(value);
57 return *this;
58 }
60
62
65 inline const Aws::String& GetId() const { return m_id; }
66 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
67 template <typename IdT = Aws::String>
68 void SetId(IdT&& value) {
69 m_idHasBeenSet = true;
70 m_id = std::forward<IdT>(value);
71 }
72 template <typename IdT = Aws::String>
74 SetId(std::forward<IdT>(value));
75 return *this;
76 }
78
80
81 inline const MessageComponents& GetMessageComponents() const { return m_messageComponents; }
82 inline bool MessageComponentsHasBeenSet() const { return m_messageComponentsHasBeenSet; }
83 template <typename MessageComponentsT = MessageComponents>
84 void SetMessageComponents(MessageComponentsT&& value) {
85 m_messageComponentsHasBeenSet = true;
86 m_messageComponents = std::forward<MessageComponentsT>(value);
87 }
88 template <typename MessageComponentsT = MessageComponents>
89 ManagedNotificationEvent& WithMessageComponents(MessageComponentsT&& value) {
90 SetMessageComponents(std::forward<MessageComponentsT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetSourceEventDetailUrl() const { return m_sourceEventDetailUrl; }
101 inline bool SourceEventDetailUrlHasBeenSet() const { return m_sourceEventDetailUrlHasBeenSet; }
102 template <typename SourceEventDetailUrlT = Aws::String>
103 void SetSourceEventDetailUrl(SourceEventDetailUrlT&& value) {
104 m_sourceEventDetailUrlHasBeenSet = true;
105 m_sourceEventDetailUrl = std::forward<SourceEventDetailUrlT>(value);
106 }
107 template <typename SourceEventDetailUrlT = Aws::String>
108 ManagedNotificationEvent& WithSourceEventDetailUrl(SourceEventDetailUrlT&& value) {
109 SetSourceEventDetailUrl(std::forward<SourceEventDetailUrlT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetSourceEventDetailUrlDisplayText() const { return m_sourceEventDetailUrlDisplayText; }
120 inline bool SourceEventDetailUrlDisplayTextHasBeenSet() const { return m_sourceEventDetailUrlDisplayTextHasBeenSet; }
121 template <typename SourceEventDetailUrlDisplayTextT = Aws::String>
122 void SetSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT&& value) {
123 m_sourceEventDetailUrlDisplayTextHasBeenSet = true;
124 m_sourceEventDetailUrlDisplayText = std::forward<SourceEventDetailUrlDisplayTextT>(value);
125 }
126 template <typename SourceEventDetailUrlDisplayTextT = Aws::String>
127 ManagedNotificationEvent& WithSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT&& value) {
128 SetSourceEventDetailUrlDisplayText(std::forward<SourceEventDetailUrlDisplayTextT>(value));
129 return *this;
130 }
132
134
148 inline NotificationType GetNotificationType() const { return m_notificationType; }
149 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
151 m_notificationTypeHasBeenSet = true;
152 m_notificationType = value;
153 }
155 SetNotificationType(value);
156 return *this;
157 }
159
161
169 inline EventStatus GetEventStatus() const { return m_eventStatus; }
170 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
171 inline void SetEventStatus(EventStatus value) {
172 m_eventStatusHasBeenSet = true;
173 m_eventStatus = value;
174 }
176 SetEventStatus(value);
177 return *this;
178 }
180
182
185 inline AggregationEventType GetAggregationEventType() const { return m_aggregationEventType; }
186 inline bool AggregationEventTypeHasBeenSet() const { return m_aggregationEventTypeHasBeenSet; }
188 m_aggregationEventTypeHasBeenSet = true;
189 m_aggregationEventType = value;
190 }
193 return *this;
194 }
196
198
199 inline const AggregationSummary& GetAggregationSummary() const { return m_aggregationSummary; }
200 inline bool AggregationSummaryHasBeenSet() const { return m_aggregationSummaryHasBeenSet; }
201 template <typename AggregationSummaryT = AggregationSummary>
202 void SetAggregationSummary(AggregationSummaryT&& value) {
203 m_aggregationSummaryHasBeenSet = true;
204 m_aggregationSummary = std::forward<AggregationSummaryT>(value);
205 }
206 template <typename AggregationSummaryT = AggregationSummary>
207 ManagedNotificationEvent& WithAggregationSummary(AggregationSummaryT&& value) {
208 SetAggregationSummary(std::forward<AggregationSummaryT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
218 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
219 template <typename StartTimeT = Aws::Utils::DateTime>
220 void SetStartTime(StartTimeT&& value) {
221 m_startTimeHasBeenSet = true;
222 m_startTime = std::forward<StartTimeT>(value);
223 }
224 template <typename StartTimeT = Aws::Utils::DateTime>
226 SetStartTime(std::forward<StartTimeT>(value));
227 return *this;
228 }
230
232
235 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
236 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
237 template <typename EndTimeT = Aws::Utils::DateTime>
238 void SetEndTime(EndTimeT&& value) {
239 m_endTimeHasBeenSet = true;
240 m_endTime = std::forward<EndTimeT>(value);
241 }
242 template <typename EndTimeT = Aws::Utils::DateTime>
244 SetEndTime(std::forward<EndTimeT>(value));
245 return *this;
246 }
248
250
253 inline const Aws::Map<Aws::String, TextPartValue>& GetTextParts() const { return m_textParts; }
254 inline bool TextPartsHasBeenSet() const { return m_textPartsHasBeenSet; }
255 template <typename TextPartsT = Aws::Map<Aws::String, TextPartValue>>
256 void SetTextParts(TextPartsT&& value) {
257 m_textPartsHasBeenSet = true;
258 m_textParts = std::forward<TextPartsT>(value);
259 }
260 template <typename TextPartsT = Aws::Map<Aws::String, TextPartValue>>
262 SetTextParts(std::forward<TextPartsT>(value));
263 return *this;
264 }
265 template <typename TextPartsKeyT = Aws::String, typename TextPartsValueT = TextPartValue>
266 ManagedNotificationEvent& AddTextParts(TextPartsKeyT&& key, TextPartsValueT&& value) {
267 m_textPartsHasBeenSet = true;
268 m_textParts.emplace(std::forward<TextPartsKeyT>(key), std::forward<TextPartsValueT>(value));
269 return *this;
270 }
272
274
278 inline const Aws::String& GetOrganizationalUnitId() const { return m_organizationalUnitId; }
279 inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; }
280 template <typename OrganizationalUnitIdT = Aws::String>
281 void SetOrganizationalUnitId(OrganizationalUnitIdT&& value) {
282 m_organizationalUnitIdHasBeenSet = true;
283 m_organizationalUnitId = std::forward<OrganizationalUnitIdT>(value);
284 }
285 template <typename OrganizationalUnitIdT = Aws::String>
286 ManagedNotificationEvent& WithOrganizationalUnitId(OrganizationalUnitIdT&& value) {
287 SetOrganizationalUnitId(std::forward<OrganizationalUnitIdT>(value));
288 return *this;
289 }
291 private:
292 SchemaVersion m_schemaVersion{SchemaVersion::NOT_SET};
293
294 Aws::String m_id;
295
296 MessageComponents m_messageComponents;
297
298 Aws::String m_sourceEventDetailUrl;
299
300 Aws::String m_sourceEventDetailUrlDisplayText;
301
303
304 EventStatus m_eventStatus{EventStatus::NOT_SET};
305
307
308 AggregationSummary m_aggregationSummary;
309
310 Aws::Utils::DateTime m_startTime{};
311
312 Aws::Utils::DateTime m_endTime{};
313
315
316 Aws::String m_organizationalUnitId;
317 bool m_schemaVersionHasBeenSet = false;
318 bool m_idHasBeenSet = false;
319 bool m_messageComponentsHasBeenSet = false;
320 bool m_sourceEventDetailUrlHasBeenSet = false;
321 bool m_sourceEventDetailUrlDisplayTextHasBeenSet = false;
322 bool m_notificationTypeHasBeenSet = false;
323 bool m_eventStatusHasBeenSet = false;
324 bool m_aggregationEventTypeHasBeenSet = false;
325 bool m_aggregationSummaryHasBeenSet = false;
326 bool m_startTimeHasBeenSet = false;
327 bool m_endTimeHasBeenSet = false;
328 bool m_textPartsHasBeenSet = false;
329 bool m_organizationalUnitIdHasBeenSet = false;
330};
331
332} // namespace Model
333} // namespace Notifications
334} // 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 & 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)
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
Aws::Utils::Json::JsonValue JsonValue