/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include See Also:
AWS
* API Reference
A DB cluster identifier to force a failover for. This parameter isn't * case-sensitive.
Constraints:
Must match the identifier * of an existing DBCluster.
A DB cluster identifier to force a failover for. This parameter isn't * case-sensitive.
Constraints:
Must match the identifier * of an existing DBCluster.
A DB cluster identifier to force a failover for. This parameter isn't * case-sensitive.
Constraints:
Must match the identifier * of an existing DBCluster.
A DB cluster identifier to force a failover for. This parameter isn't * case-sensitive.
Constraints:
Must match the identifier * of an existing DBCluster.
A DB cluster identifier to force a failover for. This parameter isn't * case-sensitive.
Constraints:
Must match the identifier * of an existing DBCluster.
A DB cluster identifier to force a failover for. This parameter isn't * case-sensitive.
Constraints:
Must match the identifier * of an existing DBCluster.
A DB cluster identifier to force a failover for. This parameter isn't * case-sensitive.
Constraints:
Must match the identifier * of an existing DBCluster.
A DB cluster identifier to force a failover for. This parameter isn't * case-sensitive.
Constraints:
Must match the identifier * of an existing DBCluster.
The name of the DB instance to promote to the primary DB instance.
*Specify the DB instance identifier for an Aurora Replica or a Multi-AZ
* readable standby in the DB cluster, for example
* mydbcluster-replica1
.
This setting isn't supported for RDS * for MySQL Multi-AZ DB clusters.
*/ inline const Aws::String& GetTargetDBInstanceIdentifier() const{ return m_targetDBInstanceIdentifier; } /** *The name of the DB instance to promote to the primary DB instance.
*Specify the DB instance identifier for an Aurora Replica or a Multi-AZ
* readable standby in the DB cluster, for example
* mydbcluster-replica1
.
This setting isn't supported for RDS * for MySQL Multi-AZ DB clusters.
*/ inline bool TargetDBInstanceIdentifierHasBeenSet() const { return m_targetDBInstanceIdentifierHasBeenSet; } /** *The name of the DB instance to promote to the primary DB instance.
*Specify the DB instance identifier for an Aurora Replica or a Multi-AZ
* readable standby in the DB cluster, for example
* mydbcluster-replica1
.
This setting isn't supported for RDS * for MySQL Multi-AZ DB clusters.
*/ inline void SetTargetDBInstanceIdentifier(const Aws::String& value) { m_targetDBInstanceIdentifierHasBeenSet = true; m_targetDBInstanceIdentifier = value; } /** *The name of the DB instance to promote to the primary DB instance.
*Specify the DB instance identifier for an Aurora Replica or a Multi-AZ
* readable standby in the DB cluster, for example
* mydbcluster-replica1
.
This setting isn't supported for RDS * for MySQL Multi-AZ DB clusters.
*/ inline void SetTargetDBInstanceIdentifier(Aws::String&& value) { m_targetDBInstanceIdentifierHasBeenSet = true; m_targetDBInstanceIdentifier = std::move(value); } /** *The name of the DB instance to promote to the primary DB instance.
*Specify the DB instance identifier for an Aurora Replica or a Multi-AZ
* readable standby in the DB cluster, for example
* mydbcluster-replica1
.
This setting isn't supported for RDS * for MySQL Multi-AZ DB clusters.
*/ inline void SetTargetDBInstanceIdentifier(const char* value) { m_targetDBInstanceIdentifierHasBeenSet = true; m_targetDBInstanceIdentifier.assign(value); } /** *The name of the DB instance to promote to the primary DB instance.
*Specify the DB instance identifier for an Aurora Replica or a Multi-AZ
* readable standby in the DB cluster, for example
* mydbcluster-replica1
.
This setting isn't supported for RDS * for MySQL Multi-AZ DB clusters.
*/ inline FailoverDBClusterRequest& WithTargetDBInstanceIdentifier(const Aws::String& value) { SetTargetDBInstanceIdentifier(value); return *this;} /** *The name of the DB instance to promote to the primary DB instance.
*Specify the DB instance identifier for an Aurora Replica or a Multi-AZ
* readable standby in the DB cluster, for example
* mydbcluster-replica1
.
This setting isn't supported for RDS * for MySQL Multi-AZ DB clusters.
*/ inline FailoverDBClusterRequest& WithTargetDBInstanceIdentifier(Aws::String&& value) { SetTargetDBInstanceIdentifier(std::move(value)); return *this;} /** *The name of the DB instance to promote to the primary DB instance.
*Specify the DB instance identifier for an Aurora Replica or a Multi-AZ
* readable standby in the DB cluster, for example
* mydbcluster-replica1
.
This setting isn't supported for RDS * for MySQL Multi-AZ DB clusters.
*/ inline FailoverDBClusterRequest& WithTargetDBInstanceIdentifier(const char* value) { SetTargetDBInstanceIdentifier(value); return *this;} private: Aws::String m_dBClusterIdentifier; bool m_dBClusterIdentifierHasBeenSet = false; Aws::String m_targetDBInstanceIdentifier; bool m_targetDBInstanceIdentifierHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws