/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace InternetMonitor { namespace Model { class GetHealthEventResult { public: AWS_INTERNETMONITOR_API GetHealthEventResult(); AWS_INTERNETMONITOR_API GetHealthEventResult(const Aws::AmazonWebServiceResult& result); AWS_INTERNETMONITOR_API GetHealthEventResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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 void SetEventArn(const Aws::String& value) { m_eventArn = value; } /** *

The Amazon Resource Name (ARN) of the event.

*/ inline void SetEventArn(Aws::String&& value) { m_eventArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the event.

*/ inline void SetEventArn(const char* value) { m_eventArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the event.

*/ inline GetHealthEventResult& WithEventArn(const Aws::String& value) { SetEventArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the event.

*/ inline GetHealthEventResult& WithEventArn(Aws::String&& value) { SetEventArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the event.

*/ inline GetHealthEventResult& WithEventArn(const char* value) { SetEventArn(value); return *this;} /** *

The internally generated identifier of a health event.

*/ inline const Aws::String& GetEventId() const{ return m_eventId; } /** *

The internally generated identifier of a health event.

*/ inline void SetEventId(const Aws::String& value) { m_eventId = value; } /** *

The internally generated identifier of a health event.

*/ inline void SetEventId(Aws::String&& value) { m_eventId = std::move(value); } /** *

The internally generated identifier of a health event.

*/ inline void SetEventId(const char* value) { m_eventId.assign(value); } /** *

The internally generated identifier of a health event.

*/ inline GetHealthEventResult& WithEventId(const Aws::String& value) { SetEventId(value); return *this;} /** *

The internally generated identifier of a health event.

*/ inline GetHealthEventResult& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;} /** *

The internally generated identifier of a health event.

*/ inline GetHealthEventResult& WithEventId(const char* value) { SetEventId(value); return *this;} /** *

The time when a health event started.

*/ inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; } /** *

The time when a health event started.

*/ inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAt = value; } /** *

The time when a health event started.

*/ inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAt = std::move(value); } /** *

The time when a health event started.

*/ inline GetHealthEventResult& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;} /** *

The time when a health event started.

*/ inline GetHealthEventResult& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;} /** *

The time when a health event was resolved. If the health event is still * active, the end time is not set.

*/ inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; } /** *

The time when a health event was resolved. If the health event is still * active, the end time is not set.

*/ inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAt = value; } /** *

The time when a health event was resolved. If the health event is still * active, the end time is not set.

*/ inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAt = std::move(value); } /** *

The time when a health event was resolved. If the health event is still * active, the end time is not set.

*/ inline GetHealthEventResult& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;} /** *

The time when a health event was resolved. If the health event is still * active, the end time is not set.

*/ inline GetHealthEventResult& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;} /** *

The time when a health event was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The time when a health event was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } /** *

The time when a health event was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } /** *

The time when a health event was created.

*/ inline GetHealthEventResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time when a health event was created.

*/ inline GetHealthEventResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The time when a health event was last updated or recalculated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

The time when a health event was last updated or recalculated.

*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAt = value; } /** *

The time when a health event was last updated or recalculated.

*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAt = std::move(value); } /** *

The time when a health event was last updated or recalculated.

*/ inline GetHealthEventResult& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

The time when a health event was last updated or recalculated.

*/ inline GetHealthEventResult& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} /** *

The locations affected by a health event.

*/ inline const Aws::Vector& GetImpactedLocations() const{ return m_impactedLocations; } /** *

The locations affected by a health event.

*/ inline void SetImpactedLocations(const Aws::Vector& value) { m_impactedLocations = value; } /** *

The locations affected by a health event.

*/ inline void SetImpactedLocations(Aws::Vector&& value) { m_impactedLocations = std::move(value); } /** *

The locations affected by a health event.

*/ inline GetHealthEventResult& WithImpactedLocations(const Aws::Vector& value) { SetImpactedLocations(value); return *this;} /** *

The locations affected by a health event.

*/ inline GetHealthEventResult& WithImpactedLocations(Aws::Vector&& value) { SetImpactedLocations(std::move(value)); return *this;} /** *

The locations affected by a health event.

*/ inline GetHealthEventResult& AddImpactedLocations(const ImpactedLocation& value) { m_impactedLocations.push_back(value); return *this; } /** *

The locations affected by a health event.

*/ inline GetHealthEventResult& AddImpactedLocations(ImpactedLocation&& value) { m_impactedLocations.push_back(std::move(value)); return *this; } /** *

The status of a health event.

*/ inline const HealthEventStatus& GetStatus() const{ return m_status; } /** *

The status of a health event.

*/ inline void SetStatus(const HealthEventStatus& value) { m_status = value; } /** *

The status of a health event.

*/ inline void SetStatus(HealthEventStatus&& value) { m_status = std::move(value); } /** *

The status of a health event.

*/ inline GetHealthEventResult& WithStatus(const HealthEventStatus& value) { SetStatus(value); return *this;} /** *

The status of a health event.

*/ inline GetHealthEventResult& WithStatus(HealthEventStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The impact on total traffic that a health event has.

*/ inline double GetPercentOfTotalTrafficImpacted() const{ return m_percentOfTotalTrafficImpacted; } /** *

The impact on total traffic that a health event has.

*/ inline void SetPercentOfTotalTrafficImpacted(double value) { m_percentOfTotalTrafficImpacted = value; } /** *

The impact on total traffic that a health event has.

*/ inline GetHealthEventResult& WithPercentOfTotalTrafficImpacted(double value) { SetPercentOfTotalTrafficImpacted(value); return *this;} /** *

The type of impairment of a specific health event.

*/ inline const HealthEventImpactType& GetImpactType() const{ return m_impactType; } /** *

The type of impairment of a specific health event.

*/ inline void SetImpactType(const HealthEventImpactType& value) { m_impactType = value; } /** *

The type of impairment of a specific health event.

*/ inline void SetImpactType(HealthEventImpactType&& value) { m_impactType = std::move(value); } /** *

The type of impairment of a specific health event.

*/ inline GetHealthEventResult& WithImpactType(const HealthEventImpactType& value) { SetImpactType(value); return *this;} /** *

The type of impairment of a specific health event.

*/ inline GetHealthEventResult& WithImpactType(HealthEventImpactType&& value) { SetImpactType(std::move(value)); return *this;} /** *

The threshold percentage for health events when Amazon CloudWatch Internet * Monitor creates a health event.

*/ inline double GetHealthScoreThreshold() const{ return m_healthScoreThreshold; } /** *

The threshold percentage for health events when Amazon CloudWatch Internet * Monitor creates a health event.

*/ inline void SetHealthScoreThreshold(double value) { m_healthScoreThreshold = value; } /** *

The threshold percentage for health events when Amazon CloudWatch Internet * Monitor creates a health event.

*/ inline GetHealthEventResult& WithHealthScoreThreshold(double value) { SetHealthScoreThreshold(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetHealthEventResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetHealthEventResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetHealthEventResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_eventArn; Aws::String m_eventId; Aws::Utils::DateTime m_startedAt; Aws::Utils::DateTime m_endedAt; Aws::Utils::DateTime m_createdAt; Aws::Utils::DateTime m_lastUpdatedAt; Aws::Vector m_impactedLocations; HealthEventStatus m_status; double m_percentOfTotalTrafficImpacted; HealthEventImpactType m_impactType; double m_healthScoreThreshold; Aws::String m_requestId; }; } // namespace Model } // namespace InternetMonitor } // namespace Aws