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>
49 AWS_HEALTH_API
Event() =
default;
65 template <
typename ArnT = Aws::String>
67 m_arnHasBeenSet =
true;
68 m_arn = std::forward<ArnT>(value);
70 template <
typename ArnT = Aws::String>
72 SetArn(std::forward<ArnT>(value));
84 template <
typename ServiceT = Aws::String>
86 m_serviceHasBeenSet =
true;
87 m_service = std::forward<ServiceT>(value);
89 template <
typename ServiceT = Aws::String>
104 template <
typename EventTypeCodeT = Aws::String>
106 m_eventTypeCodeHasBeenSet =
true;
107 m_eventTypeCode = std::forward<EventTypeCodeT>(value);
109 template <
typename EventTypeCodeT = Aws::String>
125 m_eventTypeCategoryHasBeenSet =
true;
126 m_eventTypeCategory = value;
140 template <
typename RegionT = Aws::String>
142 m_regionHasBeenSet =
true;
143 m_region = std::forward<RegionT>(value);
145 template <
typename RegionT = Aws::String>
159 template <
typename AvailabilityZoneT = Aws::String>
161 m_availabilityZoneHasBeenSet =
true;
162 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
164 template <
typename AvailabilityZoneT = Aws::String>
177 template <
typename StartTimeT = Aws::Utils::DateTime>
179 m_startTimeHasBeenSet =
true;
180 m_startTime = std::forward<StartTimeT>(value);
182 template <
typename StartTimeT = Aws::Utils::DateTime>
195 template <
typename EndTimeT = Aws::Utils::DateTime>
197 m_endTimeHasBeenSet =
true;
198 m_endTime = std::forward<EndTimeT>(value);
200 template <
typename EndTimeT = Aws::Utils::DateTime>
213 template <
typename LastUpdatedTimeT = Aws::Utils::DateTime>
215 m_lastUpdatedTimeHasBeenSet =
true;
216 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
218 template <
typename LastUpdatedTimeT = Aws::Utils::DateTime>
233 m_statusCodeHasBeenSet =
true;
234 m_statusCode = value;
260 m_eventScopeCodeHasBeenSet =
true;
261 m_eventScopeCode = value;
283 m_actionabilityHasBeenSet =
true;
284 m_actionability = value;
301 template <
typename PersonasT = Aws::Vector<EventPersona>>
303 m_personasHasBeenSet =
true;
304 m_personas = std::forward<PersonasT>(value);
306 template <
typename PersonasT = Aws::Vector<EventPersona>>
312 m_personasHasBeenSet =
true;
313 m_personas.push_back(value);
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;
Event & WithArn(ArnT &&value)
void SetActionability(EventActionability value)
Event & WithStatusCode(EventStatusCode value)
void SetRegion(RegionT &&value)
bool EventTypeCategoryHasBeenSet() const
Event & WithRegion(RegionT &&value)
void SetStartTime(StartTimeT &&value)
bool EventTypeCodeHasBeenSet() const
void SetService(ServiceT &&value)
const Aws::String & GetRegion() const
AWS_HEALTH_API Event()=default
void SetEventTypeCategory(EventTypeCategory value)
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
bool EndTimeHasBeenSet() const
bool StartTimeHasBeenSet() const
const Aws::String & GetArn() const
AWS_HEALTH_API Event(Aws::Utils::Json::JsonView jsonValue)
Event & WithEventTypeCategory(EventTypeCategory value)
void SetEventScopeCode(EventScopeCode value)
Event & WithAvailabilityZone(AvailabilityZoneT &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetAvailabilityZone(AvailabilityZoneT &&value)
bool RegionHasBeenSet() const
bool LastUpdatedTimeHasBeenSet() const
const Aws::Vector< EventPersona > & GetPersonas() const
void SetEventTypeCode(EventTypeCodeT &&value)
EventStatusCode GetStatusCode() const
const Aws::String & GetService() const
void SetEndTime(EndTimeT &&value)
const Aws::String & GetAvailabilityZone() const
Event & WithEndTime(EndTimeT &&value)
bool AvailabilityZoneHasBeenSet() const
Event & WithEventTypeCode(EventTypeCodeT &&value)
bool ActionabilityHasBeenSet() const
const Aws::Utils::DateTime & GetEndTime() const
EventScopeCode GetEventScopeCode() const
bool EventScopeCodeHasBeenSet() const
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Event & WithActionability(EventActionability value)
void SetArn(ArnT &&value)
Event & WithEventScopeCode(EventScopeCode value)
Event & WithLastUpdatedTime(LastUpdatedTimeT &&value)
AWS_HEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
EventActionability GetActionability() const
EventTypeCategory GetEventTypeCategory() const
void SetPersonas(PersonasT &&value)
void SetStatusCode(EventStatusCode value)
const Aws::String & GetEventTypeCode() const
AWS_HEALTH_API Event & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ArnHasBeenSet() const
bool PersonasHasBeenSet() const
bool ServiceHasBeenSet() const
bool StatusCodeHasBeenSet() const
Event & WithPersonas(PersonasT &&value)
Event & AddPersonas(EventPersona value)
Event & WithStartTime(StartTimeT &&value)
Event & WithService(ServiceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue