/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a health event created in a monitor in Amazon CloudWatch
* Internet Monitor.See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the event.
*/ inline const Aws::String& GetEventArn() const{ return m_eventArn; } /** *The Amazon Resource Name (ARN) of the event.
*/ inline bool EventArnHasBeenSet() const { return m_eventArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the event.
*/ inline void SetEventArn(const Aws::String& value) { m_eventArnHasBeenSet = true; m_eventArn = value; } /** *The Amazon Resource Name (ARN) of the event.
*/ inline void SetEventArn(Aws::String&& value) { m_eventArnHasBeenSet = true; m_eventArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the event.
*/ inline void SetEventArn(const char* value) { m_eventArnHasBeenSet = true; m_eventArn.assign(value); } /** *The Amazon Resource Name (ARN) of the event.
*/ inline HealthEvent& WithEventArn(const Aws::String& value) { SetEventArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the event.
*/ inline HealthEvent& WithEventArn(Aws::String&& value) { SetEventArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the event.
*/ inline HealthEvent& WithEventArn(const char* value) { SetEventArn(value); return *this;} /** *The internally generated identifier of a specific network traffic impairment * health event.
*/ inline const Aws::String& GetEventId() const{ return m_eventId; } /** *The internally generated identifier of a specific network traffic impairment * health event.
*/ inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; } /** *The internally generated identifier of a specific network traffic impairment * health event.
*/ inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; } /** *The internally generated identifier of a specific network traffic impairment * health event.
*/ inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); } /** *The internally generated identifier of a specific network traffic impairment * health event.
*/ inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); } /** *The internally generated identifier of a specific network traffic impairment * health event.
*/ inline HealthEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;} /** *The internally generated identifier of a specific network traffic impairment * health event.
*/ inline HealthEvent& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;} /** *The internally generated identifier of a specific network traffic impairment * health event.
*/ inline HealthEvent& WithEventId(const char* value) { SetEventId(value); return *this;} /** *When a health event started.
*/ inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; } /** *When a health event started.
*/ inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; } /** *When a health event started.
*/ inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; } /** *When a health event started.
*/ inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); } /** *When a health event started.
*/ inline HealthEvent& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;} /** *When a health event started.
*/ inline HealthEvent& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;} /** *The time when a health event ended. If the health event is still active, then * the end time is not set.
*/ inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; } /** *The time when a health event ended. If the health event is still active, then * the end time is not set.
*/ inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; } /** *The time when a health event ended. If the health event is still active, then * the end time is not set.
*/ inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAtHasBeenSet = true; m_endedAt = value; } /** *The time when a health event ended. If the health event is still active, then * the end time is not set.
*/ inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::move(value); } /** *The time when a health event ended. If the health event is still active, then * the end time is not set.
*/ inline HealthEvent& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;} /** *The time when a health event ended. If the health event is still active, then * the end time is not set.
*/ inline HealthEvent& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;} /** *When the health event was created.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *When the health event was created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *When the health event was created.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *When the health event was created.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *When the health event was created.
*/ inline HealthEvent& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *When the health event was created.
*/ inline HealthEvent& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *When the health event was last updated.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *When the health event was last updated.
*/ inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *When the health event was last updated.
*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } /** *When the health event was last updated.
*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *When the health event was last updated.
*/ inline HealthEvent& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *When the health event was last updated.
*/ inline HealthEvent& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} /** *The locations impacted by the health event.
*/ inline const Aws::VectorThe locations impacted by the health event.
*/ inline bool ImpactedLocationsHasBeenSet() const { return m_impactedLocationsHasBeenSet; } /** *The locations impacted by the health event.
*/ inline void SetImpactedLocations(const Aws::VectorThe locations impacted by the health event.
*/ inline void SetImpactedLocations(Aws::VectorThe locations impacted by the health event.
*/ inline HealthEvent& WithImpactedLocations(const Aws::VectorThe locations impacted by the health event.
*/ inline HealthEvent& WithImpactedLocations(Aws::VectorThe locations impacted by the health event.
*/ inline HealthEvent& AddImpactedLocations(const ImpactedLocation& value) { m_impactedLocationsHasBeenSet = true; m_impactedLocations.push_back(value); return *this; } /** *The locations impacted by the health event.
*/ inline HealthEvent& AddImpactedLocations(ImpactedLocation&& value) { m_impactedLocationsHasBeenSet = true; m_impactedLocations.push_back(std::move(value)); return *this; } /** *Health event list member.
*/ inline const HealthEventStatus& GetStatus() const{ return m_status; } /** *Health event list member.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *Health event list member.
*/ inline void SetStatus(const HealthEventStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *Health event list member.
*/ inline void SetStatus(HealthEventStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *Health event list member.
*/ inline HealthEvent& WithStatus(const HealthEventStatus& value) { SetStatus(value); return *this;} /** *Health event list member.
*/ inline HealthEvent& WithStatus(HealthEventStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The impact on global traffic monitored by this monitor for this health * event.
*/ inline double GetPercentOfTotalTrafficImpacted() const{ return m_percentOfTotalTrafficImpacted; } /** *The impact on global traffic monitored by this monitor for this health * event.
*/ inline bool PercentOfTotalTrafficImpactedHasBeenSet() const { return m_percentOfTotalTrafficImpactedHasBeenSet; } /** *The impact on global traffic monitored by this monitor for this health * event.
*/ inline void SetPercentOfTotalTrafficImpacted(double value) { m_percentOfTotalTrafficImpactedHasBeenSet = true; m_percentOfTotalTrafficImpacted = value; } /** *The impact on global traffic monitored by this monitor for this health * event.
*/ inline HealthEvent& WithPercentOfTotalTrafficImpacted(double value) { SetPercentOfTotalTrafficImpacted(value); return *this;} /** *The type of impairment for a health event.
*/ inline const HealthEventImpactType& GetImpactType() const{ return m_impactType; } /** *The type of impairment for a health event.
*/ inline bool ImpactTypeHasBeenSet() const { return m_impactTypeHasBeenSet; } /** *The type of impairment for a health event.
*/ inline void SetImpactType(const HealthEventImpactType& value) { m_impactTypeHasBeenSet = true; m_impactType = value; } /** *The type of impairment for a health event.
*/ inline void SetImpactType(HealthEventImpactType&& value) { m_impactTypeHasBeenSet = true; m_impactType = std::move(value); } /** *The type of impairment for a health event.
*/ inline HealthEvent& WithImpactType(const HealthEventImpactType& value) { SetImpactType(value); return *this;} /** *The type of impairment for a health event.
*/ inline HealthEvent& WithImpactType(HealthEventImpactType&& value) { SetImpactType(std::move(value)); return *this;} /** *The value of the threshold percentage for performance or availability that * was configured when Amazon CloudWatch Internet Monitor created the health * event.
*/ inline double GetHealthScoreThreshold() const{ return m_healthScoreThreshold; } /** *The value of the threshold percentage for performance or availability that * was configured when Amazon CloudWatch Internet Monitor created the health * event.
*/ inline bool HealthScoreThresholdHasBeenSet() const { return m_healthScoreThresholdHasBeenSet; } /** *The value of the threshold percentage for performance or availability that * was configured when Amazon CloudWatch Internet Monitor created the health * event.
*/ inline void SetHealthScoreThreshold(double value) { m_healthScoreThresholdHasBeenSet = true; m_healthScoreThreshold = value; } /** *The value of the threshold percentage for performance or availability that * was configured when Amazon CloudWatch Internet Monitor created the health * event.
*/ inline HealthEvent& WithHealthScoreThreshold(double value) { SetHealthScoreThreshold(value); return *this;} private: Aws::String m_eventArn; bool m_eventArnHasBeenSet = false; Aws::String m_eventId; bool m_eventIdHasBeenSet = false; Aws::Utils::DateTime m_startedAt; bool m_startedAtHasBeenSet = false; Aws::Utils::DateTime m_endedAt; bool m_endedAtHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; Aws::Vector