AWS SDK for C++

AWS SDK for C++ Version 1.11.712

Loading...
Searching...
No Matches
ManagedNotificationChildEvent.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/AggregationDetail.h>
12#include <aws/notifications/model/EventStatus.h>
13#include <aws/notifications/model/MessageComponents.h>
14#include <aws/notifications/model/NotificationType.h>
15#include <aws/notifications/model/SchemaVersion.h>
16#include <aws/notifications/model/TextPartValue.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Notifications {
28namespace Model {
29
38 public:
39 AWS_NOTIFICATIONS_API ManagedNotificationChildEvent() = default;
42 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline SchemaVersion GetSchemaVersion() const { return m_schemaVersion; }
49 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
50 inline void SetSchemaVersion(SchemaVersion value) {
51 m_schemaVersionHasBeenSet = true;
52 m_schemaVersion = value;
53 }
55 SetSchemaVersion(value);
56 return *this;
57 }
59
61
64 inline const Aws::String& GetId() const { return m_id; }
65 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
66 template <typename IdT = Aws::String>
67 void SetId(IdT&& value) {
68 m_idHasBeenSet = true;
69 m_id = std::forward<IdT>(value);
70 }
71 template <typename IdT = Aws::String>
73 SetId(std::forward<IdT>(value));
74 return *this;
75 }
77
79
80 inline const MessageComponents& GetMessageComponents() const { return m_messageComponents; }
81 inline bool MessageComponentsHasBeenSet() const { return m_messageComponentsHasBeenSet; }
82 template <typename MessageComponentsT = MessageComponents>
83 void SetMessageComponents(MessageComponentsT&& value) {
84 m_messageComponentsHasBeenSet = true;
85 m_messageComponents = std::forward<MessageComponentsT>(value);
86 }
87 template <typename MessageComponentsT = MessageComponents>
89 SetMessageComponents(std::forward<MessageComponentsT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetSourceEventDetailUrl() const { return m_sourceEventDetailUrl; }
99 inline bool SourceEventDetailUrlHasBeenSet() const { return m_sourceEventDetailUrlHasBeenSet; }
100 template <typename SourceEventDetailUrlT = Aws::String>
101 void SetSourceEventDetailUrl(SourceEventDetailUrlT&& value) {
102 m_sourceEventDetailUrlHasBeenSet = true;
103 m_sourceEventDetailUrl = std::forward<SourceEventDetailUrlT>(value);
104 }
105 template <typename SourceEventDetailUrlT = Aws::String>
107 SetSourceEventDetailUrl(std::forward<SourceEventDetailUrlT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetSourceEventDetailUrlDisplayText() const { return m_sourceEventDetailUrlDisplayText; }
117 inline bool SourceEventDetailUrlDisplayTextHasBeenSet() const { return m_sourceEventDetailUrlDisplayTextHasBeenSet; }
118 template <typename SourceEventDetailUrlDisplayTextT = Aws::String>
119 void SetSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT&& value) {
120 m_sourceEventDetailUrlDisplayTextHasBeenSet = true;
121 m_sourceEventDetailUrlDisplayText = std::forward<SourceEventDetailUrlDisplayTextT>(value);
122 }
123 template <typename SourceEventDetailUrlDisplayTextT = Aws::String>
124 ManagedNotificationChildEvent& WithSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT&& value) {
125 SetSourceEventDetailUrlDisplayText(std::forward<SourceEventDetailUrlDisplayTextT>(value));
126 return *this;
127 }
129
131
145 inline NotificationType GetNotificationType() const { return m_notificationType; }
146 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
148 m_notificationTypeHasBeenSet = true;
149 m_notificationType = value;
150 }
152 SetNotificationType(value);
153 return *this;
154 }
156
158
165 inline EventStatus GetEventStatus() const { return m_eventStatus; }
166 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
167 inline void SetEventStatus(EventStatus value) {
168 m_eventStatusHasBeenSet = true;
169 m_eventStatus = value;
170 }
172 SetEventStatus(value);
173 return *this;
174 }
176
178
182 inline const Aws::String& GetAggregateManagedNotificationEventArn() const { return m_aggregateManagedNotificationEventArn; }
183 inline bool AggregateManagedNotificationEventArnHasBeenSet() const { return m_aggregateManagedNotificationEventArnHasBeenSet; }
184 template <typename AggregateManagedNotificationEventArnT = Aws::String>
185 void SetAggregateManagedNotificationEventArn(AggregateManagedNotificationEventArnT&& value) {
186 m_aggregateManagedNotificationEventArnHasBeenSet = true;
187 m_aggregateManagedNotificationEventArn = std::forward<AggregateManagedNotificationEventArnT>(value);
188 }
189 template <typename AggregateManagedNotificationEventArnT = Aws::String>
190 ManagedNotificationChildEvent& WithAggregateManagedNotificationEventArn(AggregateManagedNotificationEventArnT&& value) {
191 SetAggregateManagedNotificationEventArn(std::forward<AggregateManagedNotificationEventArnT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
201 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
202 template <typename StartTimeT = Aws::Utils::DateTime>
203 void SetStartTime(StartTimeT&& value) {
204 m_startTimeHasBeenSet = true;
205 m_startTime = std::forward<StartTimeT>(value);
206 }
207 template <typename StartTimeT = Aws::Utils::DateTime>
209 SetStartTime(std::forward<StartTimeT>(value));
210 return *this;
211 }
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) {
222 m_endTimeHasBeenSet = true;
223 m_endTime = std::forward<EndTimeT>(value);
224 }
225 template <typename EndTimeT = Aws::Utils::DateTime>
227 SetEndTime(std::forward<EndTimeT>(value));
228 return *this;
229 }
231
233
236 inline const Aws::Map<Aws::String, TextPartValue>& GetTextParts() const { return m_textParts; }
237 inline bool TextPartsHasBeenSet() const { return m_textPartsHasBeenSet; }
238 template <typename TextPartsT = Aws::Map<Aws::String, TextPartValue>>
239 void SetTextParts(TextPartsT&& value) {
240 m_textPartsHasBeenSet = true;
241 m_textParts = std::forward<TextPartsT>(value);
242 }
243 template <typename TextPartsT = Aws::Map<Aws::String, TextPartValue>>
245 SetTextParts(std::forward<TextPartsT>(value));
246 return *this;
247 }
248 template <typename TextPartsKeyT = Aws::String, typename TextPartsValueT = TextPartValue>
249 ManagedNotificationChildEvent& AddTextParts(TextPartsKeyT&& key, TextPartsValueT&& value) {
250 m_textPartsHasBeenSet = true;
251 m_textParts.emplace(std::forward<TextPartsKeyT>(key), std::forward<TextPartsValueT>(value));
252 return *this;
253 }
255
257
261 inline const Aws::String& GetOrganizationalUnitId() const { return m_organizationalUnitId; }
262 inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; }
263 template <typename OrganizationalUnitIdT = Aws::String>
264 void SetOrganizationalUnitId(OrganizationalUnitIdT&& value) {
265 m_organizationalUnitIdHasBeenSet = true;
266 m_organizationalUnitId = std::forward<OrganizationalUnitIdT>(value);
267 }
268 template <typename OrganizationalUnitIdT = Aws::String>
270 SetOrganizationalUnitId(std::forward<OrganizationalUnitIdT>(value));
271 return *this;
272 }
274
276
280 inline const AggregationDetail& GetAggregationDetail() const { return m_aggregationDetail; }
281 inline bool AggregationDetailHasBeenSet() const { return m_aggregationDetailHasBeenSet; }
282 template <typename AggregationDetailT = AggregationDetail>
283 void SetAggregationDetail(AggregationDetailT&& value) {
284 m_aggregationDetailHasBeenSet = true;
285 m_aggregationDetail = std::forward<AggregationDetailT>(value);
286 }
287 template <typename AggregationDetailT = AggregationDetail>
289 SetAggregationDetail(std::forward<AggregationDetailT>(value));
290 return *this;
291 }
293 private:
294 SchemaVersion m_schemaVersion{SchemaVersion::NOT_SET};
295
296 Aws::String m_id;
297
298 MessageComponents m_messageComponents;
299
300 Aws::String m_sourceEventDetailUrl;
301
302 Aws::String m_sourceEventDetailUrlDisplayText;
303
305
306 EventStatus m_eventStatus{EventStatus::NOT_SET};
307
308 Aws::String m_aggregateManagedNotificationEventArn;
309
310 Aws::Utils::DateTime m_startTime{};
311
312 Aws::Utils::DateTime m_endTime{};
313
315
316 Aws::String m_organizationalUnitId;
317
318 AggregationDetail m_aggregationDetail;
319 bool m_schemaVersionHasBeenSet = false;
320 bool m_idHasBeenSet = false;
321 bool m_messageComponentsHasBeenSet = false;
322 bool m_sourceEventDetailUrlHasBeenSet = false;
323 bool m_sourceEventDetailUrlDisplayTextHasBeenSet = false;
324 bool m_notificationTypeHasBeenSet = false;
325 bool m_eventStatusHasBeenSet = false;
326 bool m_aggregateManagedNotificationEventArnHasBeenSet = false;
327 bool m_startTimeHasBeenSet = false;
328 bool m_endTimeHasBeenSet = false;
329 bool m_textPartsHasBeenSet = false;
330 bool m_organizationalUnitIdHasBeenSet = false;
331 bool m_aggregationDetailHasBeenSet = false;
332};
333
334} // namespace Model
335} // namespace Notifications
336} // namespace Aws
ManagedNotificationChildEvent & WithTextParts(TextPartsT &&value)
ManagedNotificationChildEvent & WithMessageComponents(MessageComponentsT &&value)
ManagedNotificationChildEvent & WithSourceEventDetailUrl(SourceEventDetailUrlT &&value)
AWS_NOTIFICATIONS_API ManagedNotificationChildEvent()=default
ManagedNotificationChildEvent & WithSchemaVersion(SchemaVersion value)
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT &&value)
ManagedNotificationChildEvent & WithNotificationType(NotificationType value)
void SetAggregateManagedNotificationEventArn(AggregateManagedNotificationEventArnT &&value)
ManagedNotificationChildEvent & WithOrganizationalUnitId(OrganizationalUnitIdT &&value)
ManagedNotificationChildEvent & WithAggregationDetail(AggregationDetailT &&value)
const Aws::Map< Aws::String, TextPartValue > & GetTextParts() const
ManagedNotificationChildEvent & WithSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT &&value)
AWS_NOTIFICATIONS_API ManagedNotificationChildEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedNotificationChildEvent & AddTextParts(TextPartsKeyT &&key, TextPartsValueT &&value)
ManagedNotificationChildEvent & WithStartTime(StartTimeT &&value)
ManagedNotificationChildEvent & WithAggregateManagedNotificationEventArn(AggregateManagedNotificationEventArnT &&value)
ManagedNotificationChildEvent & WithEventStatus(EventStatus value)
ManagedNotificationChildEvent & WithEndTime(EndTimeT &&value)
AWS_NOTIFICATIONS_API ManagedNotificationChildEvent(Aws::Utils::Json::JsonView jsonValue)
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