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>
26namespace InternetMonitor
52 template<
typename EventArnT = Aws::String>
53 void SetEventArn(EventArnT&& value) { m_eventArnHasBeenSet =
true; m_eventArn = std::forward<EventArnT>(value); }
54 template<
typename EventArnT = Aws::String>
65 template<
typename EventIdT = Aws::String>
66 void SetEventId(EventIdT&& value) { m_eventIdHasBeenSet =
true; m_eventId = std::forward<EventIdT>(value); }
67 template<
typename EventIdT = Aws::String>
77 template<
typename StartedAtT = Aws::Utils::DateTime>
78 void SetStartedAt(StartedAtT&& value) { m_startedAtHasBeenSet =
true; m_startedAt = std::forward<StartedAtT>(value); }
79 template<
typename StartedAtT = Aws::Utils::DateTime>
90 template<
typename EndedAtT = Aws::Utils::DateTime>
91 void SetEndedAt(EndedAtT&& value) { m_endedAtHasBeenSet =
true; m_endedAt = std::forward<EndedAtT>(value); }
92 template<
typename EndedAtT = Aws::Utils::DateTime>
102 template<
typename CreatedAtT = Aws::Utils::DateTime>
103 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
104 template<
typename CreatedAtT = Aws::Utils::DateTime>
114 template<
typename LastUpdatedAtT = Aws::Utils::DateTime>
115 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet =
true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
116 template<
typename LastUpdatedAtT = Aws::Utils::DateTime>
126 template<
typename ImpactedLocationsT = Aws::Vector<ImpactedLocation>>
127 void SetImpactedLocations(ImpactedLocationsT&& value) { m_impactedLocationsHasBeenSet =
true; m_impactedLocations = std::forward<ImpactedLocationsT>(value); }
128 template<
typename ImpactedLocationsT = Aws::Vector<ImpactedLocation>>
130 template<
typename ImpactedLocationsT = ImpactedLocation>
131 HealthEvent&
AddImpactedLocations(ImpactedLocationsT&& value) { m_impactedLocationsHasBeenSet =
true; m_impactedLocations.emplace_back(std::forward<ImpactedLocationsT>(value));
return *
this; }
176 inline void SetHealthScoreThreshold(
double value) { m_healthScoreThresholdHasBeenSet =
true; m_healthScoreThreshold = value; }
182 bool m_eventArnHasBeenSet =
false;
185 bool m_eventIdHasBeenSet =
false;
188 bool m_startedAtHasBeenSet =
false;
191 bool m_endedAtHasBeenSet =
false;
194 bool m_createdAtHasBeenSet =
false;
197 bool m_lastUpdatedAtHasBeenSet =
false;
200 bool m_impactedLocationsHasBeenSet =
false;
203 bool m_statusHasBeenSet =
false;
205 double m_percentOfTotalTrafficImpacted{0.0};
206 bool m_percentOfTotalTrafficImpactedHasBeenSet =
false;
209 bool m_impactTypeHasBeenSet =
false;
211 double m_healthScoreThreshold{0.0};
212 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