/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about an instance in the DB cluster.See Also:
* AWS
* API Reference
Whether the cluster member is the primary instance for the DB cluster.
*/ inline bool GetIsClusterWriter() const{ return m_isClusterWriter; } /** *Whether the cluster member is the primary instance for the DB cluster.
*/ inline bool IsClusterWriterHasBeenSet() const { return m_isClusterWriterHasBeenSet; } /** *Whether the cluster member is the primary instance for the DB cluster.
*/ inline void SetIsClusterWriter(bool value) { m_isClusterWriterHasBeenSet = true; m_isClusterWriter = value; } /** *Whether the cluster member is the primary instance for the DB cluster.
*/ inline AwsRdsDbClusterMember& WithIsClusterWriter(bool value) { SetIsClusterWriter(value); return *this;} /** *Specifies the order in which an Aurora replica is promoted to the primary * instance when the existing primary instance fails.
*/ inline int GetPromotionTier() const{ return m_promotionTier; } /** *Specifies the order in which an Aurora replica is promoted to the primary * instance when the existing primary instance fails.
*/ inline bool PromotionTierHasBeenSet() const { return m_promotionTierHasBeenSet; } /** *Specifies the order in which an Aurora replica is promoted to the primary * instance when the existing primary instance fails.
*/ inline void SetPromotionTier(int value) { m_promotionTierHasBeenSet = true; m_promotionTier = value; } /** *Specifies the order in which an Aurora replica is promoted to the primary * instance when the existing primary instance fails.
*/ inline AwsRdsDbClusterMember& WithPromotionTier(int value) { SetPromotionTier(value); return *this;} /** *The instance identifier for this member of the DB cluster.
*/ inline const Aws::String& GetDbInstanceIdentifier() const{ return m_dbInstanceIdentifier; } /** *The instance identifier for this member of the DB cluster.
*/ inline bool DbInstanceIdentifierHasBeenSet() const { return m_dbInstanceIdentifierHasBeenSet; } /** *The instance identifier for this member of the DB cluster.
*/ inline void SetDbInstanceIdentifier(const Aws::String& value) { m_dbInstanceIdentifierHasBeenSet = true; m_dbInstanceIdentifier = value; } /** *The instance identifier for this member of the DB cluster.
*/ inline void SetDbInstanceIdentifier(Aws::String&& value) { m_dbInstanceIdentifierHasBeenSet = true; m_dbInstanceIdentifier = std::move(value); } /** *The instance identifier for this member of the DB cluster.
*/ inline void SetDbInstanceIdentifier(const char* value) { m_dbInstanceIdentifierHasBeenSet = true; m_dbInstanceIdentifier.assign(value); } /** *The instance identifier for this member of the DB cluster.
*/ inline AwsRdsDbClusterMember& WithDbInstanceIdentifier(const Aws::String& value) { SetDbInstanceIdentifier(value); return *this;} /** *The instance identifier for this member of the DB cluster.
*/ inline AwsRdsDbClusterMember& WithDbInstanceIdentifier(Aws::String&& value) { SetDbInstanceIdentifier(std::move(value)); return *this;} /** *The instance identifier for this member of the DB cluster.
*/ inline AwsRdsDbClusterMember& WithDbInstanceIdentifier(const char* value) { SetDbInstanceIdentifier(value); return *this;} /** *The status of the DB cluster parameter group for this member of the DB * cluster.
*/ inline const Aws::String& GetDbClusterParameterGroupStatus() const{ return m_dbClusterParameterGroupStatus; } /** *The status of the DB cluster parameter group for this member of the DB * cluster.
*/ inline bool DbClusterParameterGroupStatusHasBeenSet() const { return m_dbClusterParameterGroupStatusHasBeenSet; } /** *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; } /** *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); } /** *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); } /** *The status of the DB cluster parameter group for this member of the DB * cluster.
*/ inline AwsRdsDbClusterMember& WithDbClusterParameterGroupStatus(const Aws::String& value) { SetDbClusterParameterGroupStatus(value); return *this;} /** *The status of the DB cluster parameter group for this member of the DB * cluster.
*/ inline AwsRdsDbClusterMember& WithDbClusterParameterGroupStatus(Aws::String&& value) { SetDbClusterParameterGroupStatus(std::move(value)); return *this;} /** *The status of the DB cluster parameter group for this member of the DB * cluster.
*/ inline AwsRdsDbClusterMember& WithDbClusterParameterGroupStatus(const char* value) { SetDbClusterParameterGroupStatus(value); return *this;} private: bool m_isClusterWriter; bool m_isClusterWriterHasBeenSet = false; int m_promotionTier; bool m_promotionTierHasBeenSet = false; Aws::String m_dbInstanceIdentifier; bool m_dbInstanceIdentifierHasBeenSet = false; Aws::String m_dbClusterParameterGroupStatus; bool m_dbClusterParameterGroupStatusHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws