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/internetmonitor/InternetMonitor_EXPORTS.h>
11#include <aws/internetmonitor/model/HealthEventImpactType.h>
12#include <aws/internetmonitor/model/HealthEventStatus.h>
13#include <aws/internetmonitor/model/ImpactedLocation.h>
24namespace InternetMonitor {
46 template <
typename EventArnT = Aws::String>
48 m_eventArnHasBeenSet =
true;
49 m_eventArn = std::forward<EventArnT>(value);
51 template <
typename EventArnT = Aws::String>
65 template <
typename EventIdT = Aws::String>
67 m_eventIdHasBeenSet =
true;
68 m_eventId = std::forward<EventIdT>(value);
70 template <
typename EventIdT = Aws::String>
83 template <
typename StartedAtT = Aws::Utils::DateTime>
85 m_startedAtHasBeenSet =
true;
86 m_startedAt = std::forward<StartedAtT>(value);
88 template <
typename StartedAtT = Aws::Utils::DateTime>
102 template <
typename EndedAtT = Aws::Utils::DateTime>
104 m_endedAtHasBeenSet =
true;
105 m_endedAt = std::forward<EndedAtT>(value);
107 template <
typename EndedAtT = Aws::Utils::DateTime>
120 template <
typename CreatedAtT = Aws::Utils::DateTime>
122 m_createdAtHasBeenSet =
true;
123 m_createdAt = std::forward<CreatedAtT>(value);
125 template <
typename CreatedAtT = Aws::Utils::DateTime>
138 template <
typename LastUpdatedAtT = Aws::Utils::DateTime>
140 m_lastUpdatedAtHasBeenSet =
true;
141 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
143 template <
typename LastUpdatedAtT = Aws::Utils::DateTime>
156 template <
typename ImpactedLocationsT = Aws::Vector<ImpactedLocation>>
158 m_impactedLocationsHasBeenSet =
true;
159 m_impactedLocations = std::forward<ImpactedLocationsT>(value);
161 template <
typename ImpactedLocationsT = Aws::Vector<ImpactedLocation>>
166 template <
typename ImpactedLocationsT = ImpactedLocation>
168 m_impactedLocationsHasBeenSet =
true;
169 m_impactedLocations.emplace_back(std::forward<ImpactedLocationsT>(value));
181 m_statusHasBeenSet =
true;
201 m_percentOfTotalTrafficImpactedHasBeenSet =
true;
202 m_percentOfTotalTrafficImpacted = value;
217 m_impactTypeHasBeenSet =
true;
218 m_impactType = value;
235 m_healthScoreThresholdHasBeenSet =
true;
236 m_healthScoreThreshold = value;
260 double m_percentOfTotalTrafficImpacted{0.0};
264 double m_healthScoreThreshold{0.0};
265 bool m_eventArnHasBeenSet =
false;
266 bool m_eventIdHasBeenSet =
false;
267 bool m_startedAtHasBeenSet =
false;
268 bool m_endedAtHasBeenSet =
false;
269 bool m_createdAtHasBeenSet =
false;
270 bool m_lastUpdatedAtHasBeenSet =
false;
271 bool m_impactedLocationsHasBeenSet =
false;
272 bool m_statusHasBeenSet =
false;
273 bool m_percentOfTotalTrafficImpactedHasBeenSet =
false;
274 bool m_impactTypeHasBeenSet =
false;
275 bool m_healthScoreThresholdHasBeenSet =
false;
bool StatusHasBeenSet() const
HealthEvent & WithImpactedLocations(ImpactedLocationsT &&value)
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
double GetPercentOfTotalTrafficImpacted() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
HealthEvent & AddImpactedLocations(ImpactedLocationsT &&value)
void SetPercentOfTotalTrafficImpacted(double value)
HealthEvent & WithEventArn(EventArnT &&value)
void SetCreatedAt(CreatedAtT &&value)
HealthEvent & WithEventId(EventIdT &&value)
bool ImpactTypeHasBeenSet() const
const Aws::String & GetEventId() const
bool PercentOfTotalTrafficImpactedHasBeenSet() const
bool LastUpdatedAtHasBeenSet() const
void SetStatus(HealthEventStatus value)
HealthEvent & WithStartedAt(StartedAtT &&value)
void SetImpactedLocations(ImpactedLocationsT &&value)
HealthEvent & WithPercentOfTotalTrafficImpacted(double value)
bool EventArnHasBeenSet() const
HealthEventStatus GetStatus() const
bool CreatedAtHasBeenSet() const
const Aws::String & GetEventArn() const
void SetLastUpdatedAt(LastUpdatedAtT &&value)
void SetStartedAt(StartedAtT &&value)
const Aws::Utils::DateTime & GetEndedAt() const
void SetEventId(EventIdT &&value)
const Aws::Vector< ImpactedLocation > & GetImpactedLocations() const
void SetEndedAt(EndedAtT &&value)
bool HealthScoreThresholdHasBeenSet() const
const Aws::Utils::DateTime & GetStartedAt() const
bool ImpactedLocationsHasBeenSet() const
void SetEventArn(EventArnT &&value)
HealthEvent & WithLastUpdatedAt(LastUpdatedAtT &&value)
HealthEvent & WithEndedAt(EndedAtT &&value)
HealthEvent & WithHealthScoreThreshold(double value)
HealthEvent & WithCreatedAt(CreatedAtT &&value)
AWS_INTERNETMONITOR_API HealthEvent()=default
bool StartedAtHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetImpactType(HealthEventImpactType value)
HealthEventImpactType GetImpactType() const
void SetHealthScoreThreshold(double value)
double GetHealthScoreThreshold() const
AWS_INTERNETMONITOR_API HealthEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
bool EventIdHasBeenSet() const
AWS_INTERNETMONITOR_API HealthEvent(Aws::Utils::Json::JsonView jsonValue)
bool EndedAtHasBeenSet() const
HealthEvent & WithStatus(HealthEventStatus value)
HealthEvent & WithImpactType(HealthEventImpactType 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