AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
Event.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/health/Health_EXPORTS.h>
11#include <aws/health/model/EventActionability.h>
12#include <aws/health/model/EventPersona.h>
13#include <aws/health/model/EventScopeCode.h>
14#include <aws/health/model/EventStatusCode.h>
15#include <aws/health/model/EventTypeCategory.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Health {
27namespace Model {
28
47class Event {
48 public:
49 AWS_HEALTH_API Event() = default;
50 AWS_HEALTH_API Event(Aws::Utils::Json::JsonView jsonValue);
51 AWS_HEALTH_API Event& operator=(Aws::Utils::Json::JsonView jsonValue);
52 AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
53
55
63 inline const Aws::String& GetArn() const { return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 template <typename ArnT = Aws::String>
66 void SetArn(ArnT&& value) {
67 m_arnHasBeenSet = true;
68 m_arn = std::forward<ArnT>(value);
69 }
70 template <typename ArnT = Aws::String>
71 Event& WithArn(ArnT&& value) {
72 SetArn(std::forward<ArnT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetService() const { return m_service; }
83 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
84 template <typename ServiceT = Aws::String>
85 void SetService(ServiceT&& value) {
86 m_serviceHasBeenSet = true;
87 m_service = std::forward<ServiceT>(value);
88 }
89 template <typename ServiceT = Aws::String>
90 Event& WithService(ServiceT&& value) {
91 SetService(std::forward<ServiceT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::String& GetEventTypeCode() const { return m_eventTypeCode; }
103 inline bool EventTypeCodeHasBeenSet() const { return m_eventTypeCodeHasBeenSet; }
104 template <typename EventTypeCodeT = Aws::String>
105 void SetEventTypeCode(EventTypeCodeT&& value) {
106 m_eventTypeCodeHasBeenSet = true;
107 m_eventTypeCode = std::forward<EventTypeCodeT>(value);
108 }
109 template <typename EventTypeCodeT = Aws::String>
110 Event& WithEventTypeCode(EventTypeCodeT&& value) {
111 SetEventTypeCode(std::forward<EventTypeCodeT>(value));
112 return *this;
113 }
115
117
122 inline EventTypeCategory GetEventTypeCategory() const { return m_eventTypeCategory; }
123 inline bool EventTypeCategoryHasBeenSet() const { return m_eventTypeCategoryHasBeenSet; }
125 m_eventTypeCategoryHasBeenSet = true;
126 m_eventTypeCategory = value;
127 }
130 return *this;
131 }
133
135
138 inline const Aws::String& GetRegion() const { return m_region; }
139 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
140 template <typename RegionT = Aws::String>
141 void SetRegion(RegionT&& value) {
142 m_regionHasBeenSet = true;
143 m_region = std::forward<RegionT>(value);
144 }
145 template <typename RegionT = Aws::String>
146 Event& WithRegion(RegionT&& value) {
147 SetRegion(std::forward<RegionT>(value));
148 return *this;
149 }
151
153
157 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
158 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
159 template <typename AvailabilityZoneT = Aws::String>
160 void SetAvailabilityZone(AvailabilityZoneT&& value) {
161 m_availabilityZoneHasBeenSet = true;
162 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
163 }
164 template <typename AvailabilityZoneT = Aws::String>
165 Event& WithAvailabilityZone(AvailabilityZoneT&& value) {
166 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
176 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
177 template <typename StartTimeT = Aws::Utils::DateTime>
178 void SetStartTime(StartTimeT&& value) {
179 m_startTimeHasBeenSet = true;
180 m_startTime = std::forward<StartTimeT>(value);
181 }
182 template <typename StartTimeT = Aws::Utils::DateTime>
183 Event& WithStartTime(StartTimeT&& value) {
184 SetStartTime(std::forward<StartTimeT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
194 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
195 template <typename EndTimeT = Aws::Utils::DateTime>
196 void SetEndTime(EndTimeT&& value) {
197 m_endTimeHasBeenSet = true;
198 m_endTime = std::forward<EndTimeT>(value);
199 }
200 template <typename EndTimeT = Aws::Utils::DateTime>
201 Event& WithEndTime(EndTimeT&& value) {
202 SetEndTime(std::forward<EndTimeT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
212 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
213 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
214 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
215 m_lastUpdatedTimeHasBeenSet = true;
216 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
217 }
218 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
219 Event& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
220 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
221 return *this;
222 }
224
226
230 inline EventStatusCode GetStatusCode() const { return m_statusCode; }
231 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
232 inline void SetStatusCode(EventStatusCode value) {
233 m_statusCodeHasBeenSet = true;
234 m_statusCode = value;
235 }
237 SetStatusCode(value);
238 return *this;
239 }
241
243
257 inline EventScopeCode GetEventScopeCode() const { return m_eventScopeCode; }
258 inline bool EventScopeCodeHasBeenSet() const { return m_eventScopeCodeHasBeenSet; }
260 m_eventScopeCodeHasBeenSet = true;
261 m_eventScopeCode = value;
262 }
264 SetEventScopeCode(value);
265 return *this;
266 }
268
270
280 inline EventActionability GetActionability() const { return m_actionability; }
281 inline bool ActionabilityHasBeenSet() const { return m_actionabilityHasBeenSet; }
283 m_actionabilityHasBeenSet = true;
284 m_actionability = value;
285 }
287 SetActionability(value);
288 return *this;
289 }
291
293
299 inline const Aws::Vector<EventPersona>& GetPersonas() const { return m_personas; }
300 inline bool PersonasHasBeenSet() const { return m_personasHasBeenSet; }
301 template <typename PersonasT = Aws::Vector<EventPersona>>
302 void SetPersonas(PersonasT&& value) {
303 m_personasHasBeenSet = true;
304 m_personas = std::forward<PersonasT>(value);
305 }
306 template <typename PersonasT = Aws::Vector<EventPersona>>
307 Event& WithPersonas(PersonasT&& value) {
308 SetPersonas(std::forward<PersonasT>(value));
309 return *this;
310 }
312 m_personasHasBeenSet = true;
313 m_personas.push_back(value);
314 return *this;
315 }
317 private:
318 Aws::String m_arn;
319
320 Aws::String m_service;
321
322 Aws::String m_eventTypeCode;
323
325
326 Aws::String m_region;
327
328 Aws::String m_availabilityZone;
329
330 Aws::Utils::DateTime m_startTime{};
331
332 Aws::Utils::DateTime m_endTime{};
333
334 Aws::Utils::DateTime m_lastUpdatedTime{};
335
337
338 EventScopeCode m_eventScopeCode{EventScopeCode::NOT_SET};
339
341
342 Aws::Vector<EventPersona> m_personas;
343 bool m_arnHasBeenSet = false;
344 bool m_serviceHasBeenSet = false;
345 bool m_eventTypeCodeHasBeenSet = false;
346 bool m_eventTypeCategoryHasBeenSet = false;
347 bool m_regionHasBeenSet = false;
348 bool m_availabilityZoneHasBeenSet = false;
349 bool m_startTimeHasBeenSet = false;
350 bool m_endTimeHasBeenSet = false;
351 bool m_lastUpdatedTimeHasBeenSet = false;
352 bool m_statusCodeHasBeenSet = false;
353 bool m_eventScopeCodeHasBeenSet = false;
354 bool m_actionabilityHasBeenSet = false;
355 bool m_personasHasBeenSet = false;
356};
357
358} // namespace Model
359} // namespace Health
360} // namespace Aws
Event & WithArn(ArnT &&value)
Definition Event.h:71
void SetActionability(EventActionability value)
Definition Event.h:282
Event & WithStatusCode(EventStatusCode value)
Definition Event.h:236
void SetRegion(RegionT &&value)
Definition Event.h:141
bool EventTypeCategoryHasBeenSet() const
Definition Event.h:123
Event & WithRegion(RegionT &&value)
Definition Event.h:146
void SetStartTime(StartTimeT &&value)
Definition Event.h:178
bool EventTypeCodeHasBeenSet() const
Definition Event.h:103
void SetService(ServiceT &&value)
Definition Event.h:85
const Aws::String & GetRegion() const
Definition Event.h:138
AWS_HEALTH_API Event()=default
void SetEventTypeCategory(EventTypeCategory value)
Definition Event.h:124
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Event.h:214
bool EndTimeHasBeenSet() const
Definition Event.h:194
bool StartTimeHasBeenSet() const
Definition Event.h:176
const Aws::String & GetArn() const
Definition Event.h:63
AWS_HEALTH_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithEventTypeCategory(EventTypeCategory value)
Definition Event.h:128
void SetEventScopeCode(EventScopeCode value)
Definition Event.h:259
Event & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition Event.h:165
const Aws::Utils::DateTime & GetStartTime() const
Definition Event.h:175
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition Event.h:160
bool RegionHasBeenSet() const
Definition Event.h:139
bool LastUpdatedTimeHasBeenSet() const
Definition Event.h:212
const Aws::Vector< EventPersona > & GetPersonas() const
Definition Event.h:299
void SetEventTypeCode(EventTypeCodeT &&value)
Definition Event.h:105
EventStatusCode GetStatusCode() const
Definition Event.h:230
const Aws::String & GetService() const
Definition Event.h:82
void SetEndTime(EndTimeT &&value)
Definition Event.h:196
const Aws::String & GetAvailabilityZone() const
Definition Event.h:157
Event & WithEndTime(EndTimeT &&value)
Definition Event.h:201
bool AvailabilityZoneHasBeenSet() const
Definition Event.h:158
Event & WithEventTypeCode(EventTypeCodeT &&value)
Definition Event.h:110
bool ActionabilityHasBeenSet() const
Definition Event.h:281
const Aws::Utils::DateTime & GetEndTime() const
Definition Event.h:193
EventScopeCode GetEventScopeCode() const
Definition Event.h:257
bool EventScopeCodeHasBeenSet() const
Definition Event.h:258
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Event.h:211
Event & WithActionability(EventActionability value)
Definition Event.h:286
void SetArn(ArnT &&value)
Definition Event.h:66
Event & WithEventScopeCode(EventScopeCode value)
Definition Event.h:263
Event & WithLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Event.h:219
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
EventActionability GetActionability() const
Definition Event.h:280
EventTypeCategory GetEventTypeCategory() const
Definition Event.h:122
void SetPersonas(PersonasT &&value)
Definition Event.h:302
void SetStatusCode(EventStatusCode value)
Definition Event.h:232
const Aws::String & GetEventTypeCode() const
Definition Event.h:102
AWS_HEALTH_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ArnHasBeenSet() const
Definition Event.h:64
bool PersonasHasBeenSet() const
Definition Event.h:300
bool ServiceHasBeenSet() const
Definition Event.h:83
bool StatusCodeHasBeenSet() const
Definition Event.h:231
Event & WithPersonas(PersonasT &&value)
Definition Event.h:307
Event & AddPersonas(EventPersona value)
Definition Event.h:311
Event & WithStartTime(StartTimeT &&value)
Definition Event.h:183
Event & WithService(ServiceT &&value)
Definition Event.h:90
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue