/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides a list of status information for a DB instance.See
* Also:
AWS
* API Reference
This value is currently "read replication."
*/ inline const Aws::String& GetStatusType() const{ return m_statusType; } /** *This value is currently "read replication."
*/ inline bool StatusTypeHasBeenSet() const { return m_statusTypeHasBeenSet; } /** *This value is currently "read replication."
*/ inline void SetStatusType(const Aws::String& value) { m_statusTypeHasBeenSet = true; m_statusType = value; } /** *This value is currently "read replication."
*/ inline void SetStatusType(Aws::String&& value) { m_statusTypeHasBeenSet = true; m_statusType = std::move(value); } /** *This value is currently "read replication."
*/ inline void SetStatusType(const char* value) { m_statusTypeHasBeenSet = true; m_statusType.assign(value); } /** *This value is currently "read replication."
*/ inline DBInstanceStatusInfo& WithStatusType(const Aws::String& value) { SetStatusType(value); return *this;} /** *This value is currently "read replication."
*/ inline DBInstanceStatusInfo& WithStatusType(Aws::String&& value) { SetStatusType(std::move(value)); return *this;} /** *This value is currently "read replication."
*/ inline DBInstanceStatusInfo& WithStatusType(const char* value) { SetStatusType(value); return *this;} /** *Boolean value that is true if the instance is operating normally, or false if * the instance is in an error state.
*/ inline bool GetNormal() const{ return m_normal; } /** *Boolean value that is true if the instance is operating normally, or false if * the instance is in an error state.
*/ inline bool NormalHasBeenSet() const { return m_normalHasBeenSet; } /** *Boolean value that is true if the instance is operating normally, or false if * the instance is in an error state.
*/ inline void SetNormal(bool value) { m_normalHasBeenSet = true; m_normal = value; } /** *Boolean value that is true if the instance is operating normally, or false if * the instance is in an error state.
*/ inline DBInstanceStatusInfo& WithNormal(bool value) { SetNormal(value); return *this;} /** *Status of the DB instance. For a StatusType of read replica, the values can * be replicating, error, stopped, or terminated.
*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *Status of the DB instance. For a StatusType of read replica, the values can * be replicating, error, stopped, or terminated.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *Status of the DB instance. For a StatusType of read replica, the values can * be replicating, error, stopped, or terminated.
*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *Status of the DB instance. For a StatusType of read replica, the values can * be replicating, error, stopped, or terminated.
*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *Status of the DB instance. For a StatusType of read replica, the values can * be replicating, error, stopped, or terminated.
*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *Status of the DB instance. For a StatusType of read replica, the values can * be replicating, error, stopped, or terminated.
*/ inline DBInstanceStatusInfo& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *Status of the DB instance. For a StatusType of read replica, the values can * be replicating, error, stopped, or terminated.
*/ inline DBInstanceStatusInfo& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *Status of the DB instance. For a StatusType of read replica, the values can * be replicating, error, stopped, or terminated.
*/ inline DBInstanceStatusInfo& WithStatus(const char* value) { SetStatus(value); return *this;} /** *Details of the error if there is an error for the instance. If the instance * is not in an error state, this value is blank.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *Details of the error if there is an error for the instance. If the instance * is not in an error state, this value is blank.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *Details of the error if there is an error for the instance. If the instance * is not in an error state, this value is blank.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *Details of the error if there is an error for the instance. If the instance * is not in an error state, this value is blank.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *Details of the error if there is an error for the instance. If the instance * is not in an error state, this value is blank.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *Details of the error if there is an error for the instance. If the instance * is not in an error state, this value is blank.
*/ inline DBInstanceStatusInfo& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *Details of the error if there is an error for the instance. If the instance * is not in an error state, this value is blank.
*/ inline DBInstanceStatusInfo& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *Details of the error if there is an error for the instance. If the instance * is not in an error state, this value is blank.
*/ inline DBInstanceStatusInfo& 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 Neptune } // namespace Aws