AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ManagedNotificationChildEvent.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/MessageComponents.h>
11#include <aws/notifications/model/NotificationType.h>
12#include <aws/notifications/model/EventStatus.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/notifications/model/AggregationDetail.h>
16#include <aws/notifications/model/TextPartValue.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Notifications
30{
31namespace Model
32{
33
42 {
43 public:
44 AWS_NOTIFICATIONS_API ManagedNotificationChildEvent() = default;
47 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline SchemaVersion GetSchemaVersion() const { return m_schemaVersion; }
55 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
56 inline void SetSchemaVersion(SchemaVersion value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = value; }
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) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
68 template<typename IdT = Aws::String>
69 ManagedNotificationChildEvent& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
71
73
74 inline const MessageComponents& GetMessageComponents() const { return m_messageComponents; }
75 inline bool MessageComponentsHasBeenSet() const { return m_messageComponentsHasBeenSet; }
76 template<typename MessageComponentsT = MessageComponents>
77 void SetMessageComponents(MessageComponentsT&& value) { m_messageComponentsHasBeenSet = true; m_messageComponents = std::forward<MessageComponentsT>(value); }
78 template<typename MessageComponentsT = MessageComponents>
79 ManagedNotificationChildEvent& WithMessageComponents(MessageComponentsT&& value) { SetMessageComponents(std::forward<MessageComponentsT>(value)); return *this;}
81
83
86 inline const Aws::String& GetSourceEventDetailUrl() const { return m_sourceEventDetailUrl; }
87 inline bool SourceEventDetailUrlHasBeenSet() const { return m_sourceEventDetailUrlHasBeenSet; }
88 template<typename SourceEventDetailUrlT = Aws::String>
89 void SetSourceEventDetailUrl(SourceEventDetailUrlT&& value) { m_sourceEventDetailUrlHasBeenSet = true; m_sourceEventDetailUrl = std::forward<SourceEventDetailUrlT>(value); }
90 template<typename SourceEventDetailUrlT = Aws::String>
91 ManagedNotificationChildEvent& WithSourceEventDetailUrl(SourceEventDetailUrlT&& value) { SetSourceEventDetailUrl(std::forward<SourceEventDetailUrlT>(value)); return *this;}
93
95
98 inline const Aws::String& GetSourceEventDetailUrlDisplayText() const { return m_sourceEventDetailUrlDisplayText; }
99 inline bool SourceEventDetailUrlDisplayTextHasBeenSet() const { return m_sourceEventDetailUrlDisplayTextHasBeenSet; }
100 template<typename SourceEventDetailUrlDisplayTextT = Aws::String>
101 void SetSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT&& value) { m_sourceEventDetailUrlDisplayTextHasBeenSet = true; m_sourceEventDetailUrlDisplayText = std::forward<SourceEventDetailUrlDisplayTextT>(value); }
102 template<typename SourceEventDetailUrlDisplayTextT = Aws::String>
103 ManagedNotificationChildEvent& WithSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT&& value) { SetSourceEventDetailUrlDisplayText(std::forward<SourceEventDetailUrlDisplayTextT>(value)); return *this;}
105
107
121 inline NotificationType GetNotificationType() const { return m_notificationType; }
122 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
123 inline void SetNotificationType(NotificationType value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; }
126
128
135 inline EventStatus GetEventStatus() const { return m_eventStatus; }
136 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
137 inline void SetEventStatus(EventStatus value) { m_eventStatusHasBeenSet = true; m_eventStatus = value; }
140
142
146 inline const Aws::String& GetAggregateManagedNotificationEventArn() const { return m_aggregateManagedNotificationEventArn; }
147 inline bool AggregateManagedNotificationEventArnHasBeenSet() const { return m_aggregateManagedNotificationEventArnHasBeenSet; }
148 template<typename AggregateManagedNotificationEventArnT = Aws::String>
149 void SetAggregateManagedNotificationEventArn(AggregateManagedNotificationEventArnT&& value) { m_aggregateManagedNotificationEventArnHasBeenSet = true; m_aggregateManagedNotificationEventArn = std::forward<AggregateManagedNotificationEventArnT>(value); }
150 template<typename AggregateManagedNotificationEventArnT = Aws::String>
151 ManagedNotificationChildEvent& WithAggregateManagedNotificationEventArn(AggregateManagedNotificationEventArnT&& value) { SetAggregateManagedNotificationEventArn(std::forward<AggregateManagedNotificationEventArnT>(value)); return *this;}
153
155
158 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
159 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
160 template<typename StartTimeT = Aws::Utils::DateTime>
161 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
162 template<typename StartTimeT = Aws::Utils::DateTime>
163 ManagedNotificationChildEvent& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
165
167
170 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
171 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
172 template<typename EndTimeT = Aws::Utils::DateTime>
173 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
174 template<typename EndTimeT = Aws::Utils::DateTime>
175 ManagedNotificationChildEvent& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
177
179
182 inline const Aws::Map<Aws::String, TextPartValue>& GetTextParts() const { return m_textParts; }
183 inline bool TextPartsHasBeenSet() const { return m_textPartsHasBeenSet; }
184 template<typename TextPartsT = Aws::Map<Aws::String, TextPartValue>>
185 void SetTextParts(TextPartsT&& value) { m_textPartsHasBeenSet = true; m_textParts = std::forward<TextPartsT>(value); }
186 template<typename TextPartsT = Aws::Map<Aws::String, TextPartValue>>
187 ManagedNotificationChildEvent& WithTextParts(TextPartsT&& value) { SetTextParts(std::forward<TextPartsT>(value)); return *this;}
188 template<typename TextPartsKeyT = Aws::String, typename TextPartsValueT = TextPartValue>
189 ManagedNotificationChildEvent& AddTextParts(TextPartsKeyT&& key, TextPartsValueT&& value) {
190 m_textPartsHasBeenSet = true; m_textParts.emplace(std::forward<TextPartsKeyT>(key), std::forward<TextPartsValueT>(value)); return *this;
191 }
193
195
199 inline const Aws::String& GetOrganizationalUnitId() const { return m_organizationalUnitId; }
200 inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; }
201 template<typename OrganizationalUnitIdT = Aws::String>
202 void SetOrganizationalUnitId(OrganizationalUnitIdT&& value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId = std::forward<OrganizationalUnitIdT>(value); }
203 template<typename OrganizationalUnitIdT = Aws::String>
204 ManagedNotificationChildEvent& WithOrganizationalUnitId(OrganizationalUnitIdT&& value) { SetOrganizationalUnitId(std::forward<OrganizationalUnitIdT>(value)); return *this;}
206
208
212 inline const AggregationDetail& GetAggregationDetail() const { return m_aggregationDetail; }
213 inline bool AggregationDetailHasBeenSet() const { return m_aggregationDetailHasBeenSet; }
214 template<typename AggregationDetailT = AggregationDetail>
215 void SetAggregationDetail(AggregationDetailT&& value) { m_aggregationDetailHasBeenSet = true; m_aggregationDetail = std::forward<AggregationDetailT>(value); }
216 template<typename AggregationDetailT = AggregationDetail>
217 ManagedNotificationChildEvent& WithAggregationDetail(AggregationDetailT&& value) { SetAggregationDetail(std::forward<AggregationDetailT>(value)); return *this;}
219 private:
220
221 SchemaVersion m_schemaVersion{SchemaVersion::NOT_SET};
222 bool m_schemaVersionHasBeenSet = false;
223
224 Aws::String m_id;
225 bool m_idHasBeenSet = false;
226
227 MessageComponents m_messageComponents;
228 bool m_messageComponentsHasBeenSet = false;
229
230 Aws::String m_sourceEventDetailUrl;
231 bool m_sourceEventDetailUrlHasBeenSet = false;
232
233 Aws::String m_sourceEventDetailUrlDisplayText;
234 bool m_sourceEventDetailUrlDisplayTextHasBeenSet = false;
235
237 bool m_notificationTypeHasBeenSet = false;
238
239 EventStatus m_eventStatus{EventStatus::NOT_SET};
240 bool m_eventStatusHasBeenSet = false;
241
242 Aws::String m_aggregateManagedNotificationEventArn;
243 bool m_aggregateManagedNotificationEventArnHasBeenSet = false;
244
245 Aws::Utils::DateTime m_startTime{};
246 bool m_startTimeHasBeenSet = false;
247
248 Aws::Utils::DateTime m_endTime{};
249 bool m_endTimeHasBeenSet = false;
250
252 bool m_textPartsHasBeenSet = false;
253
254 Aws::String m_organizationalUnitId;
255 bool m_organizationalUnitIdHasBeenSet = false;
256
257 AggregationDetail m_aggregationDetail;
258 bool m_aggregationDetailHasBeenSet = false;
259 };
260
261} // namespace Model
262} // namespace Notifications
263} // 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