/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace Route53 { namespace Model { /** *

A complex type that contains the last failure reason as reported by one * Amazon Route 53 health checker.

See Also:

AWS * API Reference

*/ class HealthCheckObservation { public: AWS_ROUTE53_API HealthCheckObservation(); AWS_ROUTE53_API HealthCheckObservation(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ROUTE53_API HealthCheckObservation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The region of the Amazon Route 53 health checker that provided the status in * StatusReport.

*/ inline const HealthCheckRegion& GetRegion() const{ return m_region; } /** *

The region of the Amazon Route 53 health checker that provided the status in * StatusReport.

*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *

The region of the Amazon Route 53 health checker that provided the status in * StatusReport.

*/ inline void SetRegion(const HealthCheckRegion& value) { m_regionHasBeenSet = true; m_region = value; } /** *

The region of the Amazon Route 53 health checker that provided the status in * StatusReport.

*/ inline void SetRegion(HealthCheckRegion&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *

The region of the Amazon Route 53 health checker that provided the status in * StatusReport.

*/ inline HealthCheckObservation& WithRegion(const HealthCheckRegion& value) { SetRegion(value); return *this;} /** *

The region of the Amazon Route 53 health checker that provided the status in * StatusReport.

*/ inline HealthCheckObservation& WithRegion(HealthCheckRegion&& value) { SetRegion(std::move(value)); return *this;} /** *

The IP address of the Amazon Route 53 health checker that provided the * failure reason in StatusReport.

*/ inline const Aws::String& GetIPAddress() const{ return m_iPAddress; } /** *

The IP address of the Amazon Route 53 health checker that provided the * failure reason in StatusReport.

*/ inline bool IPAddressHasBeenSet() const { return m_iPAddressHasBeenSet; } /** *

The IP address of the Amazon Route 53 health checker that provided the * failure reason in StatusReport.

*/ inline void SetIPAddress(const Aws::String& value) { m_iPAddressHasBeenSet = true; m_iPAddress = value; } /** *

The IP address of the Amazon Route 53 health checker that provided the * failure reason in StatusReport.

*/ inline void SetIPAddress(Aws::String&& value) { m_iPAddressHasBeenSet = true; m_iPAddress = std::move(value); } /** *

The IP address of the Amazon Route 53 health checker that provided the * failure reason in StatusReport.

*/ inline void SetIPAddress(const char* value) { m_iPAddressHasBeenSet = true; m_iPAddress.assign(value); } /** *

The IP address of the Amazon Route 53 health checker that provided the * failure reason in StatusReport.

*/ inline HealthCheckObservation& WithIPAddress(const Aws::String& value) { SetIPAddress(value); return *this;} /** *

The IP address of the Amazon Route 53 health checker that provided the * failure reason in StatusReport.

*/ inline HealthCheckObservation& WithIPAddress(Aws::String&& value) { SetIPAddress(std::move(value)); return *this;} /** *

The IP address of the Amazon Route 53 health checker that provided the * failure reason in StatusReport.

*/ inline HealthCheckObservation& WithIPAddress(const char* value) { SetIPAddress(value); return *this;} /** *

A complex type that contains the last failure reason as reported by one * Amazon Route 53 health checker and the time of the failed health check.

*/ inline const StatusReport& GetStatusReport() const{ return m_statusReport; } /** *

A complex type that contains the last failure reason as reported by one * Amazon Route 53 health checker and the time of the failed health check.

*/ inline bool StatusReportHasBeenSet() const { return m_statusReportHasBeenSet; } /** *

A complex type that contains the last failure reason as reported by one * Amazon Route 53 health checker and the time of the failed health check.

*/ inline void SetStatusReport(const StatusReport& value) { m_statusReportHasBeenSet = true; m_statusReport = value; } /** *

A complex type that contains the last failure reason as reported by one * Amazon Route 53 health checker and the time of the failed health check.

*/ inline void SetStatusReport(StatusReport&& value) { m_statusReportHasBeenSet = true; m_statusReport = std::move(value); } /** *

A complex type that contains the last failure reason as reported by one * Amazon Route 53 health checker and the time of the failed health check.

*/ inline HealthCheckObservation& WithStatusReport(const StatusReport& value) { SetStatusReport(value); return *this;} /** *

A complex type that contains the last failure reason as reported by one * Amazon Route 53 health checker and the time of the failed health check.

*/ inline HealthCheckObservation& WithStatusReport(StatusReport&& value) { SetStatusReport(std::move(value)); return *this;} private: HealthCheckRegion m_region; bool m_regionHasBeenSet = false; Aws::String m_iPAddress; bool m_iPAddressHasBeenSet = false; StatusReport m_statusReport; bool m_statusReportHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws