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

Information about the status of a read replica.

See Also:

AWS * API Reference

*/ class AwsRdsDbStatusInfo { public: AWS_SECURITYHUB_API AwsRdsDbStatusInfo(); AWS_SECURITYHUB_API AwsRdsDbStatusInfo(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsRdsDbStatusInfo& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The type of status. For a read replica, the status type is read * replication.

*/ inline const Aws::String& GetStatusType() const{ return m_statusType; } /** *

The type of status. For a read replica, the status type is read * replication.

*/ inline bool StatusTypeHasBeenSet() const { return m_statusTypeHasBeenSet; } /** *

The type of status. For a read replica, the status type is read * replication.

*/ inline void SetStatusType(const Aws::String& value) { m_statusTypeHasBeenSet = true; m_statusType = value; } /** *

The type of status. For a read replica, the status type is read * replication.

*/ inline void SetStatusType(Aws::String&& value) { m_statusTypeHasBeenSet = true; m_statusType = std::move(value); } /** *

The type of status. For a read replica, the status type is read * replication.

*/ inline void SetStatusType(const char* value) { m_statusTypeHasBeenSet = true; m_statusType.assign(value); } /** *

The type of status. For a read replica, the status type is read * replication.

*/ inline AwsRdsDbStatusInfo& WithStatusType(const Aws::String& value) { SetStatusType(value); return *this;} /** *

The type of status. For a read replica, the status type is read * replication.

*/ inline AwsRdsDbStatusInfo& WithStatusType(Aws::String&& value) { SetStatusType(std::move(value)); return *this;} /** *

The type of status. For a read replica, the status type is read * replication.

*/ inline AwsRdsDbStatusInfo& WithStatusType(const char* value) { SetStatusType(value); return *this;} /** *

Whether the read replica instance is operating normally.

*/ inline bool GetNormal() const{ return m_normal; } /** *

Whether the read replica instance is operating normally.

*/ inline bool NormalHasBeenSet() const { return m_normalHasBeenSet; } /** *

Whether the read replica instance is operating normally.

*/ inline void SetNormal(bool value) { m_normalHasBeenSet = true; m_normal = value; } /** *

Whether the read replica instance is operating normally.

*/ inline AwsRdsDbStatusInfo& WithNormal(bool value) { SetNormal(value); return *this;} /** *

The status of the read replica instance.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the read replica instance.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the read replica instance.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the read replica instance.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the read replica instance.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the read replica instance.

*/ inline AwsRdsDbStatusInfo& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the read replica instance.

*/ inline AwsRdsDbStatusInfo& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the read replica instance.

*/ inline AwsRdsDbStatusInfo& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

If the read replica is currently in an error state, provides the error * details.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

If the read replica is currently in an error state, provides the error * details.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

If the read replica is currently in an error state, provides the error * details.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

If the read replica is currently in an error state, provides the error * details.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

If the read replica is currently in an error state, provides the error * details.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

If the read replica is currently in an error state, provides the error * details.

*/ inline AwsRdsDbStatusInfo& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

If the read replica is currently in an error state, provides the error * details.

*/ inline AwsRdsDbStatusInfo& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

If the read replica is currently in an error state, provides the error * details.

*/ inline AwsRdsDbStatusInfo& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_statusType; bool m_statusTypeHasBeenSet = false; bool m_normal; bool m_normalHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws