AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ManagedNotificationEvent.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/notifications/model/AggregationEventType.h>
14#include <aws/notifications/model/AggregationSummary.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <aws/notifications/model/TextPartValue.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace Notifications
31{
32namespace Model
33{
34
43 {
44 public:
45 AWS_NOTIFICATIONS_API ManagedNotificationEvent() = default;
46 AWS_NOTIFICATIONS_API ManagedNotificationEvent(Aws::Utils::Json::JsonView jsonValue);
48 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline SchemaVersion GetSchemaVersion() const { return m_schemaVersion; }
56 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
57 inline void SetSchemaVersion(SchemaVersion value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = value; }
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) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
69 template<typename IdT = Aws::String>
70 ManagedNotificationEvent& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
72
74
75 inline const MessageComponents& GetMessageComponents() const { return m_messageComponents; }
76 inline bool MessageComponentsHasBeenSet() const { return m_messageComponentsHasBeenSet; }
77 template<typename MessageComponentsT = MessageComponents>
78 void SetMessageComponents(MessageComponentsT&& value) { m_messageComponentsHasBeenSet = true; m_messageComponents = std::forward<MessageComponentsT>(value); }
79 template<typename MessageComponentsT = MessageComponents>
80 ManagedNotificationEvent& WithMessageComponents(MessageComponentsT&& value) { SetMessageComponents(std::forward<MessageComponentsT>(value)); return *this;}
82
84
88 inline const Aws::String& GetSourceEventDetailUrl() const { return m_sourceEventDetailUrl; }
89 inline bool SourceEventDetailUrlHasBeenSet() const { return m_sourceEventDetailUrlHasBeenSet; }
90 template<typename SourceEventDetailUrlT = Aws::String>
91 void SetSourceEventDetailUrl(SourceEventDetailUrlT&& value) { m_sourceEventDetailUrlHasBeenSet = true; m_sourceEventDetailUrl = std::forward<SourceEventDetailUrlT>(value); }
92 template<typename SourceEventDetailUrlT = Aws::String>
93 ManagedNotificationEvent& WithSourceEventDetailUrl(SourceEventDetailUrlT&& value) { SetSourceEventDetailUrl(std::forward<SourceEventDetailUrlT>(value)); return *this;}
95
97
101 inline const Aws::String& GetSourceEventDetailUrlDisplayText() const { return m_sourceEventDetailUrlDisplayText; }
102 inline bool SourceEventDetailUrlDisplayTextHasBeenSet() const { return m_sourceEventDetailUrlDisplayTextHasBeenSet; }
103 template<typename SourceEventDetailUrlDisplayTextT = Aws::String>
104 void SetSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT&& value) { m_sourceEventDetailUrlDisplayTextHasBeenSet = true; m_sourceEventDetailUrlDisplayText = std::forward<SourceEventDetailUrlDisplayTextT>(value); }
105 template<typename SourceEventDetailUrlDisplayTextT = Aws::String>
106 ManagedNotificationEvent& WithSourceEventDetailUrlDisplayText(SourceEventDetailUrlDisplayTextT&& value) { SetSourceEventDetailUrlDisplayText(std::forward<SourceEventDetailUrlDisplayTextT>(value)); return *this;}
108
110
124 inline NotificationType GetNotificationType() const { return m_notificationType; }
125 inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; }
126 inline void SetNotificationType(NotificationType value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; }
129
131
139 inline EventStatus GetEventStatus() const { return m_eventStatus; }
140 inline bool EventStatusHasBeenSet() const { return m_eventStatusHasBeenSet; }
141 inline void SetEventStatus(EventStatus value) { m_eventStatusHasBeenSet = true; m_eventStatus = value; }
144
146
149 inline AggregationEventType GetAggregationEventType() const { return m_aggregationEventType; }
150 inline bool AggregationEventTypeHasBeenSet() const { return m_aggregationEventTypeHasBeenSet; }
151 inline void SetAggregationEventType(AggregationEventType value) { m_aggregationEventTypeHasBeenSet = true; m_aggregationEventType = value; }
154
156
157 inline const AggregationSummary& GetAggregationSummary() const { return m_aggregationSummary; }
158 inline bool AggregationSummaryHasBeenSet() const { return m_aggregationSummaryHasBeenSet; }
159 template<typename AggregationSummaryT = AggregationSummary>
160 void SetAggregationSummary(AggregationSummaryT&& value) { m_aggregationSummaryHasBeenSet = true; m_aggregationSummary = std::forward<AggregationSummaryT>(value); }
161 template<typename AggregationSummaryT = AggregationSummary>
162 ManagedNotificationEvent& WithAggregationSummary(AggregationSummaryT&& value) { SetAggregationSummary(std::forward<AggregationSummaryT>(value)); return *this;}
164
166
169 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
170 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
171 template<typename StartTimeT = Aws::Utils::DateTime>
172 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
173 template<typename StartTimeT = Aws::Utils::DateTime>
174 ManagedNotificationEvent& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
176
178
181 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
182 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
183 template<typename EndTimeT = Aws::Utils::DateTime>
184 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
185 template<typename EndTimeT = Aws::Utils::DateTime>
186 ManagedNotificationEvent& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
188
190
193 inline const Aws::Map<Aws::String, TextPartValue>& GetTextParts() const { return m_textParts; }
194 inline bool TextPartsHasBeenSet() const { return m_textPartsHasBeenSet; }
195 template<typename TextPartsT = Aws::Map<Aws::String, TextPartValue>>
196 void SetTextParts(TextPartsT&& value) { m_textPartsHasBeenSet = true; m_textParts = std::forward<TextPartsT>(value); }
197 template<typename TextPartsT = Aws::Map<Aws::String, TextPartValue>>
198 ManagedNotificationEvent& WithTextParts(TextPartsT&& value) { SetTextParts(std::forward<TextPartsT>(value)); return *this;}
199 template<typename TextPartsKeyT = Aws::String, typename TextPartsValueT = TextPartValue>
200 ManagedNotificationEvent& AddTextParts(TextPartsKeyT&& key, TextPartsValueT&& value) {
201 m_textPartsHasBeenSet = true; m_textParts.emplace(std::forward<TextPartsKeyT>(key), std::forward<TextPartsValueT>(value)); return *this;
202 }
204
206
210 inline const Aws::String& GetOrganizationalUnitId() const { return m_organizationalUnitId; }
211 inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; }
212 template<typename OrganizationalUnitIdT = Aws::String>
213 void SetOrganizationalUnitId(OrganizationalUnitIdT&& value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId = std::forward<OrganizationalUnitIdT>(value); }
214 template<typename OrganizationalUnitIdT = Aws::String>
215 ManagedNotificationEvent& WithOrganizationalUnitId(OrganizationalUnitIdT&& value) { SetOrganizationalUnitId(std::forward<OrganizationalUnitIdT>(value)); return *this;}
217 private:
218
219 SchemaVersion m_schemaVersion{SchemaVersion::NOT_SET};
220 bool m_schemaVersionHasBeenSet = false;
221
222 Aws::String m_id;
223 bool m_idHasBeenSet = false;
224
225 MessageComponents m_messageComponents;
226 bool m_messageComponentsHasBeenSet = false;
227
228 Aws::String m_sourceEventDetailUrl;
229 bool m_sourceEventDetailUrlHasBeenSet = false;
230
231 Aws::String m_sourceEventDetailUrlDisplayText;
232 bool m_sourceEventDetailUrlDisplayTextHasBeenSet = false;
233
235 bool m_notificationTypeHasBeenSet = false;
236
237 EventStatus m_eventStatus{EventStatus::NOT_SET};
238 bool m_eventStatusHasBeenSet = false;
239
241 bool m_aggregationEventTypeHasBeenSet = false;
242
243 AggregationSummary m_aggregationSummary;
244 bool m_aggregationSummaryHasBeenSet = false;
245
246 Aws::Utils::DateTime m_startTime{};
247 bool m_startTimeHasBeenSet = false;
248
249 Aws::Utils::DateTime m_endTime{};
250 bool m_endTimeHasBeenSet = false;
251
253 bool m_textPartsHasBeenSet = false;
254
255 Aws::String m_organizationalUnitId;
256 bool m_organizationalUnitIdHasBeenSet = false;
257 };
258
259} // namespace Model
260} // namespace Notifications
261} // 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)
void SetSourceEventDetailUrl(SourceEventDetailUrlT &&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