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

Information about the connection health of an RDS Proxy target.

See * Also:

AWS * API Reference

*/ class TargetHealth { public: AWS_RDS_API TargetHealth(); AWS_RDS_API TargetHealth(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_RDS_API TargetHealth& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The current state of the connection health lifecycle for the RDS Proxy * target. The following is a typical lifecycle example for the states of an RDS * Proxy target:

registering > unavailable * > available > unavailable > * available

*/ inline const TargetState& GetState() const{ return m_state; } /** *

The current state of the connection health lifecycle for the RDS Proxy * target. The following is a typical lifecycle example for the states of an RDS * Proxy target:

registering > unavailable * > available > unavailable > * available

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The current state of the connection health lifecycle for the RDS Proxy * target. The following is a typical lifecycle example for the states of an RDS * Proxy target:

registering > unavailable * > available > unavailable > * available

*/ inline void SetState(const TargetState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The current state of the connection health lifecycle for the RDS Proxy * target. The following is a typical lifecycle example for the states of an RDS * Proxy target:

registering > unavailable * > available > unavailable > * available

*/ inline void SetState(TargetState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The current state of the connection health lifecycle for the RDS Proxy * target. The following is a typical lifecycle example for the states of an RDS * Proxy target:

registering > unavailable * > available > unavailable > * available

*/ inline TargetHealth& WithState(const TargetState& value) { SetState(value); return *this;} /** *

The current state of the connection health lifecycle for the RDS Proxy * target. The following is a typical lifecycle example for the states of an RDS * Proxy target:

registering > unavailable * > available > unavailable > * available

*/ inline TargetHealth& WithState(TargetState&& value) { SetState(std::move(value)); return *this;} /** *

The reason for the current health State of the RDS Proxy * target.

*/ inline const TargetHealthReason& GetReason() const{ return m_reason; } /** *

The reason for the current health State of the RDS Proxy * target.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

The reason for the current health State of the RDS Proxy * target.

*/ inline void SetReason(const TargetHealthReason& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

The reason for the current health State of the RDS Proxy * target.

*/ inline void SetReason(TargetHealthReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

The reason for the current health State of the RDS Proxy * target.

*/ inline TargetHealth& WithReason(const TargetHealthReason& value) { SetReason(value); return *this;} /** *

The reason for the current health State of the RDS Proxy * target.

*/ inline TargetHealth& WithReason(TargetHealthReason&& value) { SetReason(std::move(value)); return *this;} /** *

A description of the health of the RDS Proxy target. If the * State is AVAILABLE, a description is not included.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the health of the RDS Proxy target. If the * State is AVAILABLE, a description is not included.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the health of the RDS Proxy target. If the * State is AVAILABLE, a description is not included.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the health of the RDS Proxy target. If the * State is AVAILABLE, a description is not included.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the health of the RDS Proxy target. If the * State is AVAILABLE, a description is not included.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the health of the RDS Proxy target. If the * State is AVAILABLE, a description is not included.

*/ inline TargetHealth& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the health of the RDS Proxy target. If the * State is AVAILABLE, a description is not included.

*/ inline TargetHealth& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the health of the RDS Proxy target. If the * State is AVAILABLE, a description is not included.

*/ inline TargetHealth& WithDescription(const char* value) { SetDescription(value); return *this;} private: TargetState m_state; bool m_stateHasBeenSet = false; TargetHealthReason m_reason; bool m_reasonHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws