/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about an instance that is part of a DB
* cluster.See Also:
AWS
* API Reference
Specifies the instance identifier for this member of the DB cluster.
*/ inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; } /** *Specifies the instance identifier for this member of the DB cluster.
*/ inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; } /** *Specifies the instance identifier for this member of the DB cluster.
*/ inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; } /** *Specifies the instance identifier for this member of the DB cluster.
*/ inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); } /** *Specifies the instance identifier for this member of the DB cluster.
*/ inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); } /** *Specifies the instance identifier for this member of the DB cluster.
*/ inline DBClusterMember& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;} /** *Specifies the instance identifier for this member of the DB cluster.
*/ inline DBClusterMember& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;} /** *Specifies the instance identifier for this member of the DB cluster.
*/ inline DBClusterMember& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;} /** *Value that is true
if the cluster member is the primary instance
* for the DB cluster and false
otherwise.
Value that is true
if the cluster member is the primary instance
* for the DB cluster and false
otherwise.
Value that is true
if the cluster member is the primary instance
* for the DB cluster and false
otherwise.
Value that is true
if the cluster member is the primary instance
* for the DB cluster and false
otherwise.
Specifies the status of the DB cluster parameter group for this member of the * DB cluster.
*/ inline const Aws::String& GetDBClusterParameterGroupStatus() const{ return m_dBClusterParameterGroupStatus; } /** *Specifies the status of the DB cluster parameter group for this member of the * DB cluster.
*/ inline bool DBClusterParameterGroupStatusHasBeenSet() const { return m_dBClusterParameterGroupStatusHasBeenSet; } /** *Specifies the status of the DB cluster parameter group for this member of the * DB cluster.
*/ inline void SetDBClusterParameterGroupStatus(const Aws::String& value) { m_dBClusterParameterGroupStatusHasBeenSet = true; m_dBClusterParameterGroupStatus = value; } /** *Specifies the status of the DB cluster parameter group for this member of the * DB cluster.
*/ inline void SetDBClusterParameterGroupStatus(Aws::String&& value) { m_dBClusterParameterGroupStatusHasBeenSet = true; m_dBClusterParameterGroupStatus = std::move(value); } /** *Specifies the status of the DB cluster parameter group for this member of the * DB cluster.
*/ inline void SetDBClusterParameterGroupStatus(const char* value) { m_dBClusterParameterGroupStatusHasBeenSet = true; m_dBClusterParameterGroupStatus.assign(value); } /** *Specifies the status of the DB cluster parameter group for this member of the * DB cluster.
*/ inline DBClusterMember& WithDBClusterParameterGroupStatus(const Aws::String& value) { SetDBClusterParameterGroupStatus(value); return *this;} /** *Specifies the status of the DB cluster parameter group for this member of the * DB cluster.
*/ inline DBClusterMember& WithDBClusterParameterGroupStatus(Aws::String&& value) { SetDBClusterParameterGroupStatus(std::move(value)); return *this;} /** *Specifies the status of the DB cluster parameter group for this member of the * DB cluster.
*/ inline DBClusterMember& WithDBClusterParameterGroupStatus(const char* value) { SetDBClusterParameterGroupStatus(value); return *this;} /** *A value that specifies the order in which a Read Replica is promoted to the * primary instance after a failure of the existing primary instance.
*/ inline int GetPromotionTier() const{ return m_promotionTier; } /** *A value that specifies the order in which a Read Replica is promoted to the * primary instance after a failure of the existing primary instance.
*/ inline bool PromotionTierHasBeenSet() const { return m_promotionTierHasBeenSet; } /** *A value that specifies the order in which a Read Replica is promoted to the * primary instance after a failure of the existing primary instance.
*/ inline void SetPromotionTier(int value) { m_promotionTierHasBeenSet = true; m_promotionTier = value; } /** *A value that specifies the order in which a Read Replica is promoted to the * primary instance after a failure of the existing primary instance.
*/ inline DBClusterMember& WithPromotionTier(int value) { SetPromotionTier(value); return *this;} private: Aws::String m_dBInstanceIdentifier; bool m_dBInstanceIdentifierHasBeenSet = false; bool m_isClusterWriter; bool m_isClusterWriterHasBeenSet = false; Aws::String m_dBClusterParameterGroupStatus; bool m_dBClusterParameterGroupStatusHasBeenSet = false; int m_promotionTier; bool m_promotionTierHasBeenSet = false; }; } // namespace Model } // namespace Neptune } // namespace Aws