7#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/internetmonitor/model/HealthEventStatus.h>
12#include <aws/internetmonitor/model/HealthEventImpactType.h>
13#include <aws/internetmonitor/model/ImpactedLocation.h>
18template<
typename RESULT_TYPE>
19class AmazonWebServiceResult;
28namespace InternetMonitor
45 template<
typename EventArnT = Aws::String>
46 void SetEventArn(EventArnT&& value) { m_eventArnHasBeenSet =
true; m_eventArn = std::forward<EventArnT>(value); }
47 template<
typename EventArnT = Aws::String>
56 template<
typename EventIdT = Aws::String>
57 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet =
true; m_eventId = std::forward<EventIdT>(value); }
58 template<
typename EventIdT = Aws::String>
67 template<
typename StartedAtT = Aws::Utils::DateTime>
68 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet =
true; m_startedAt = std::forward<StartedAtT>(value); }
69 template<
typename StartedAtT = Aws::Utils::DateTime>
79 template<
typename EndedAtT = Aws::Utils::DateTime>
80 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet =
true; m_endedAt = std::forward<EndedAtT>(value); }
81 template<
typename EndedAtT = Aws::Utils::DateTime>
90 template<
typename CreatedAtT = Aws::Utils::DateTime>
91 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
92 template<
typename CreatedAtT = Aws::Utils::DateTime>
101 template<
typename LastUpdatedAtT = Aws::Utils::DateTime>
102 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet =
true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
103 template<
typename LastUpdatedAtT = Aws::Utils::DateTime>
112 template<
typename ImpactedLocationsT = Aws::Vector<ImpactedLocation>>
113 void SetImpactedLocations(ImpactedLocationsT&& value) { m_impactedLocationsHasBeenSet =
true; m_impactedLocations = std::forward<ImpactedLocationsT>(value); }
114 template<
typename ImpactedLocationsT = Aws::Vector<ImpactedLocation>>
116 template<
typename ImpactedLocationsT = ImpactedLocation>
158 inline void SetHealthScoreThreshold(
double value) { m_healthScoreThresholdHasBeenSet =
true; m_healthScoreThreshold = value; }
165 template<
typename RequestIdT = Aws::String>
166 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet =
true; m_requestId = std::forward<RequestIdT>(value); }
167 template<
typename RequestIdT = Aws::String>
173 bool m_eventArnHasBeenSet =
false;
176 bool m_eventIdHasBeenSet =
false;
179 bool m_startedAtHasBeenSet =
false;
182 bool m_endedAtHasBeenSet =
false;
185 bool m_createdAtHasBeenSet =
false;
188 bool m_lastUpdatedAtHasBeenSet =
false;
191 bool m_impactedLocationsHasBeenSet =
false;
194 bool m_statusHasBeenSet =
false;
196 double m_percentOfTotalTrafficImpacted{0.0};
197 bool m_percentOfTotalTrafficImpactedHasBeenSet =
false;
200 bool m_impactTypeHasBeenSet =
false;
202 double m_healthScoreThreshold{0.0};
203 bool m_healthScoreThresholdHasBeenSet =
false;
206 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)
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