7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
12#include <aws/internetmonitor/model/HealthEventImpactType.h>
13#include <aws/internetmonitor/model/HealthEventStatus.h>
14#include <aws/internetmonitor/model/ImpactedLocation.h>
19template <
typename RESULT_TYPE>
20class AmazonWebServiceResult;
27namespace InternetMonitor {
40 template <
typename EventArnT = Aws::String>
42 m_eventArnHasBeenSet =
true;
43 m_eventArn = std::forward<EventArnT>(value);
45 template <
typename EventArnT = Aws::String>
57 template <
typename EventIdT = Aws::String>
59 m_eventIdHasBeenSet =
true;
60 m_eventId = std::forward<EventIdT>(value);
62 template <
typename EventIdT = Aws::String>
74 template <
typename StartedAtT = Aws::Utils::DateTime>
76 m_startedAtHasBeenSet =
true;
77 m_startedAt = std::forward<StartedAtT>(value);
79 template <
typename StartedAtT = Aws::Utils::DateTime>
92 template <
typename EndedAtT = Aws::Utils::DateTime>
94 m_endedAtHasBeenSet =
true;
95 m_endedAt = std::forward<EndedAtT>(value);
97 template <
typename EndedAtT = Aws::Utils::DateTime>
109 template <
typename CreatedAtT = Aws::Utils::DateTime>
111 m_createdAtHasBeenSet =
true;
112 m_createdAt = std::forward<CreatedAtT>(value);
114 template <
typename CreatedAtT = Aws::Utils::DateTime>
126 template <
typename LastUpdatedAtT = Aws::Utils::DateTime>
128 m_lastUpdatedAtHasBeenSet =
true;
129 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
131 template <
typename LastUpdatedAtT = Aws::Utils::DateTime>
143 template <
typename ImpactedLocationsT = Aws::Vector<ImpactedLocation>>
145 m_impactedLocationsHasBeenSet =
true;
146 m_impactedLocations = std::forward<ImpactedLocationsT>(value);
148 template <
typename ImpactedLocationsT = Aws::Vector<ImpactedLocation>>
153 template <
typename ImpactedLocationsT = ImpactedLocation>
155 m_impactedLocationsHasBeenSet =
true;
156 m_impactedLocations.emplace_back(std::forward<ImpactedLocationsT>(value));
167 m_statusHasBeenSet =
true;
186 m_percentOfTotalTrafficImpactedHasBeenSet =
true;
187 m_percentOfTotalTrafficImpacted = value;
201 m_impactTypeHasBeenSet =
true;
202 m_impactType = value;
218 m_healthScoreThresholdHasBeenSet =
true;
219 m_healthScoreThreshold = value;
230 template <
typename RequestIdT = Aws::String>
232 m_requestIdHasBeenSet =
true;
233 m_requestId = std::forward<RequestIdT>(value);
235 template <
typename RequestIdT = Aws::String>
260 double m_percentOfTotalTrafficImpacted{0.0};
264 double m_healthScoreThreshold{0.0};
268 bool m_eventArnHasBeenSet =
false;
269 bool m_eventIdHasBeenSet =
false;
270 bool m_startedAtHasBeenSet =
false;
271 bool m_endedAtHasBeenSet =
false;
272 bool m_createdAtHasBeenSet =
false;
273 bool m_lastUpdatedAtHasBeenSet =
false;
274 bool m_impactedLocationsHasBeenSet =
false;
275 bool m_statusHasBeenSet =
false;
276 bool m_percentOfTotalTrafficImpactedHasBeenSet =
false;
277 bool m_impactTypeHasBeenSet =
false;
278 bool m_healthScoreThresholdHasBeenSet =
false;
279 bool m_requestIdHasBeenSet =
false;
HealthEventImpactType GetImpactType() const
void SetEventId(EventIdT &&value)
HealthEventStatus GetStatus() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
void SetStatus(HealthEventStatus value)
void SetHealthScoreThreshold(double value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetRequestId() const
GetHealthEventResult & WithEventId(EventIdT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
GetHealthEventResult & WithStartedAt(StartedAtT &&value)
AWS_INTERNETMONITOR_API GetHealthEventResult()=default
const Aws::String & GetEventId() const
const Aws::Vector< ImpactedLocation > & GetImpactedLocations() const
void SetStartedAt(StartedAtT &&value)
GetHealthEventResult & AddImpactedLocations(ImpactedLocationsT &&value)
double GetHealthScoreThreshold() const
void SetRequestId(RequestIdT &&value)
void SetEventArn(EventArnT &&value)
GetHealthEventResult & WithImpactedLocations(ImpactedLocationsT &&value)
double GetPercentOfTotalTrafficImpacted() const
void SetImpactedLocations(ImpactedLocationsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetEventArn() const
AWS_INTERNETMONITOR_API GetHealthEventResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetHealthEventResult & WithRequestId(RequestIdT &&value)
GetHealthEventResult & WithImpactType(HealthEventImpactType value)
GetHealthEventResult & WithHealthScoreThreshold(double value)
GetHealthEventResult & WithPercentOfTotalTrafficImpacted(double value)
void SetLastUpdatedAt(LastUpdatedAtT &&value)
void SetImpactType(HealthEventImpactType value)
void SetPercentOfTotalTrafficImpacted(double value)
GetHealthEventResult & WithCreatedAt(CreatedAtT &&value)
GetHealthEventResult & WithStatus(HealthEventStatus value)
void SetEndedAt(EndedAtT &&value)
GetHealthEventResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
GetHealthEventResult & WithEndedAt(EndedAtT &&value)
GetHealthEventResult & WithEventArn(EventArnT &&value)
const Aws::Utils::DateTime & GetEndedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_INTERNETMONITOR_API GetHealthEventResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue