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
54 inline void SetEventArn(
const char* value) { m_eventArnHasBeenSet =
true; m_eventArn.assign(value); }
69 inline void SetEventId(
const char* value) { m_eventIdHasBeenSet =
true; m_eventId.assign(value); }
184 inline void SetHealthScoreThreshold(
double value) { m_healthScoreThresholdHasBeenSet =
true; m_healthScoreThreshold = value; }
190 bool m_eventArnHasBeenSet =
false;
193 bool m_eventIdHasBeenSet =
false;
196 bool m_startedAtHasBeenSet =
false;
199 bool m_endedAtHasBeenSet =
false;
202 bool m_createdAtHasBeenSet =
false;
205 bool m_lastUpdatedAtHasBeenSet =
false;
208 bool m_impactedLocationsHasBeenSet =
false;
211 bool m_statusHasBeenSet =
false;
213 double m_percentOfTotalTrafficImpacted;
214 bool m_percentOfTotalTrafficImpactedHasBeenSet =
false;
217 bool m_impactTypeHasBeenSet =
false;
219 double m_healthScoreThreshold;
220 bool m_healthScoreThresholdHasBeenSet =
false;
bool StatusHasBeenSet() const
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INTERNETMONITOR_API HealthEvent()
HealthEvent & WithStartedAt(const Aws::Utils::DateTime &value)
const HealthEventImpactType & GetImpactType() const
HealthEvent & WithImpactType(const HealthEventImpactType &value)
void SetImpactType(const HealthEventImpactType &value)
HealthEvent & WithEventArn(Aws::String &&value)
double GetPercentOfTotalTrafficImpacted() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
HealthEvent & WithImpactedLocations(Aws::Vector< ImpactedLocation > &&value)
void SetPercentOfTotalTrafficImpacted(double value)
HealthEvent & WithStatus(const HealthEventStatus &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
HealthEvent & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
HealthEvent & AddImpactedLocations(ImpactedLocation &&value)
bool ImpactTypeHasBeenSet() const
void SetEventArn(Aws::String &&value)
void SetEndedAt(const Aws::Utils::DateTime &value)
void SetEventArn(const char *value)
const Aws::String & GetEventId() const
void SetEventId(const Aws::String &value)
bool PercentOfTotalTrafficImpactedHasBeenSet() const
bool LastUpdatedAtHasBeenSet() const
void SetStartedAt(Aws::Utils::DateTime &&value)
void SetStartedAt(const Aws::Utils::DateTime &value)
HealthEvent & WithPercentOfTotalTrafficImpacted(double value)
void SetImpactedLocations(Aws::Vector< ImpactedLocation > &&value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
void SetImpactedLocations(const Aws::Vector< ImpactedLocation > &value)
bool EventArnHasBeenSet() const
HealthEvent & WithEventId(const char *value)
HealthEvent & WithImpactType(HealthEventImpactType &&value)
bool CreatedAtHasBeenSet() const
void SetStatus(HealthEventStatus &&value)
void SetEndedAt(Aws::Utils::DateTime &&value)
HealthEvent & WithEventArn(const char *value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
const HealthEventStatus & GetStatus() const
const Aws::String & GetEventArn() const
const Aws::Utils::DateTime & GetEndedAt() const
void SetEventId(Aws::String &&value)
const Aws::Vector< ImpactedLocation > & GetImpactedLocations() const
bool HealthScoreThresholdHasBeenSet() const
HealthEvent & WithEventId(Aws::String &&value)
HealthEvent & WithEndedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetStartedAt() const
bool ImpactedLocationsHasBeenSet() const
HealthEvent & WithStatus(HealthEventStatus &&value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
HealthEvent & WithHealthScoreThreshold(double value)
HealthEvent & WithCreatedAt(Aws::Utils::DateTime &&value)
HealthEvent & WithImpactedLocations(const Aws::Vector< ImpactedLocation > &value)
bool StartedAtHasBeenSet() const
void SetEventArn(const Aws::String &value)
HealthEvent & WithEventArn(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
HealthEvent & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetHealthScoreThreshold(double value)
double GetHealthScoreThreshold() const
HealthEvent & WithStartedAt(Aws::Utils::DateTime &&value)
AWS_INTERNETMONITOR_API HealthEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
HealthEvent & WithEventId(const Aws::String &value)
bool EventIdHasBeenSet() const
AWS_INTERNETMONITOR_API HealthEvent(Aws::Utils::Json::JsonView jsonValue)
bool EndedAtHasBeenSet() const
HealthEvent & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
HealthEvent & WithEndedAt(const Aws::Utils::DateTime &value)
void SetImpactType(HealthEventImpactType &&value)
void SetEventId(const char *value)
void SetStatus(const HealthEventStatus &value)
HealthEvent & AddImpactedLocations(const ImpactedLocation &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