/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include See Also:
AWS
* API Reference
The DB instance identifier for the DB instance to be deleted. This parameter * isn't case-sensitive.
Constraints:
Must match the name * of an existing DB instance.
The DB instance identifier for the DB instance to be deleted. This parameter * isn't case-sensitive.
Constraints:
Must match the name * of an existing DB instance.
The DB instance identifier for the DB instance to be deleted. This parameter * isn't case-sensitive.
Constraints:
Must match the name * of an existing DB instance.
The DB instance identifier for the DB instance to be deleted. This parameter * isn't case-sensitive.
Constraints:
Must match the name * of an existing DB instance.
The DB instance identifier for the DB instance to be deleted. This parameter * isn't case-sensitive.
Constraints:
Must match the name * of an existing DB instance.
The DB instance identifier for the DB instance to be deleted. This parameter * isn't case-sensitive.
Constraints:
Must match the name * of an existing DB instance.
The DB instance identifier for the DB instance to be deleted. This parameter * isn't case-sensitive.
Constraints:
Must match the name * of an existing DB instance.
The DB instance identifier for the DB instance to be deleted. This parameter * isn't case-sensitive.
Constraints:
Must match the name * of an existing DB instance.
A value that indicates whether to skip the creation of a final DB snapshot * before the DB instance is deleted. If skip is specified, no DB snapshot is * created. If skip isn't specified, a DB snapshot is created before the DB * instance is deleted. By default, skip isn't specified, and the DB snapshot is * created.
When a DB instance is in a failure state and has a status of * 'failed', 'incompatible-restore', or 'incompatible-network', it can only be * deleted when skip is specified.
Specify skip when deleting a read * replica.
The FinalDBSnapshotIdentifier parameter must be specified * if skip isn't specified.
*/ inline bool GetSkipFinalSnapshot() const{ return m_skipFinalSnapshot; } /** *A value that indicates whether to skip the creation of a final DB snapshot * before the DB instance is deleted. If skip is specified, no DB snapshot is * created. If skip isn't specified, a DB snapshot is created before the DB * instance is deleted. By default, skip isn't specified, and the DB snapshot is * created.
When a DB instance is in a failure state and has a status of * 'failed', 'incompatible-restore', or 'incompatible-network', it can only be * deleted when skip is specified.
Specify skip when deleting a read * replica.
The FinalDBSnapshotIdentifier parameter must be specified * if skip isn't specified.
*/ inline bool SkipFinalSnapshotHasBeenSet() const { return m_skipFinalSnapshotHasBeenSet; } /** *A value that indicates whether to skip the creation of a final DB snapshot * before the DB instance is deleted. If skip is specified, no DB snapshot is * created. If skip isn't specified, a DB snapshot is created before the DB * instance is deleted. By default, skip isn't specified, and the DB snapshot is * created.
When a DB instance is in a failure state and has a status of * 'failed', 'incompatible-restore', or 'incompatible-network', it can only be * deleted when skip is specified.
Specify skip when deleting a read * replica.
The FinalDBSnapshotIdentifier parameter must be specified * if skip isn't specified.
*/ inline void SetSkipFinalSnapshot(bool value) { m_skipFinalSnapshotHasBeenSet = true; m_skipFinalSnapshot = value; } /** *A value that indicates whether to skip the creation of a final DB snapshot * before the DB instance is deleted. If skip is specified, no DB snapshot is * created. If skip isn't specified, a DB snapshot is created before the DB * instance is deleted. By default, skip isn't specified, and the DB snapshot is * created.
When a DB instance is in a failure state and has a status of * 'failed', 'incompatible-restore', or 'incompatible-network', it can only be * deleted when skip is specified.
Specify skip when deleting a read * replica.
The FinalDBSnapshotIdentifier parameter must be specified * if skip isn't specified.
*/ inline DeleteDBInstanceRequest& WithSkipFinalSnapshot(bool value) { SetSkipFinalSnapshot(value); return *this;} /** * The DBSnapshotIdentifier of the new DBSnapshot
* created when the SkipFinalSnapshot parameter is disabled.
Specifying this parameter and also specifying to skip final DB * snapshot creation in SkipFinalShapshot results in an error.
*Constraints:
Must be 1 to 255 letters or numbers.
First character must be a letter.
Can't end with a * hyphen or contain two consecutive hyphens.
Can't be specified * when deleting a read replica.
The DBSnapshotIdentifier of the new DBSnapshot
* created when the SkipFinalSnapshot parameter is disabled.
Specifying this parameter and also specifying to skip final DB * snapshot creation in SkipFinalShapshot results in an error.
*Constraints:
Must be 1 to 255 letters or numbers.
First character must be a letter.
Can't end with a * hyphen or contain two consecutive hyphens.
Can't be specified * when deleting a read replica.
The DBSnapshotIdentifier of the new DBSnapshot
* created when the SkipFinalSnapshot parameter is disabled.
Specifying this parameter and also specifying to skip final DB * snapshot creation in SkipFinalShapshot results in an error.
*Constraints:
Must be 1 to 255 letters or numbers.
First character must be a letter.
Can't end with a * hyphen or contain two consecutive hyphens.
Can't be specified * when deleting a read replica.
The DBSnapshotIdentifier of the new DBSnapshot
* created when the SkipFinalSnapshot parameter is disabled.
Specifying this parameter and also specifying to skip final DB * snapshot creation in SkipFinalShapshot results in an error.
*Constraints:
Must be 1 to 255 letters or numbers.
First character must be a letter.
Can't end with a * hyphen or contain two consecutive hyphens.
Can't be specified * when deleting a read replica.
The DBSnapshotIdentifier of the new DBSnapshot
* created when the SkipFinalSnapshot parameter is disabled.
Specifying this parameter and also specifying to skip final DB * snapshot creation in SkipFinalShapshot results in an error.
*Constraints:
Must be 1 to 255 letters or numbers.
First character must be a letter.
Can't end with a * hyphen or contain two consecutive hyphens.
Can't be specified * when deleting a read replica.
The DBSnapshotIdentifier of the new DBSnapshot
* created when the SkipFinalSnapshot parameter is disabled.
Specifying this parameter and also specifying to skip final DB * snapshot creation in SkipFinalShapshot results in an error.
*Constraints:
Must be 1 to 255 letters or numbers.
First character must be a letter.
Can't end with a * hyphen or contain two consecutive hyphens.
Can't be specified * when deleting a read replica.
The DBSnapshotIdentifier of the new DBSnapshot
* created when the SkipFinalSnapshot parameter is disabled.
Specifying this parameter and also specifying to skip final DB * snapshot creation in SkipFinalShapshot results in an error.
*Constraints:
Must be 1 to 255 letters or numbers.
First character must be a letter.
Can't end with a * hyphen or contain two consecutive hyphens.
Can't be specified * when deleting a read replica.
The DBSnapshotIdentifier of the new DBSnapshot
* created when the SkipFinalSnapshot parameter is disabled.
Specifying this parameter and also specifying to skip final DB * snapshot creation in SkipFinalShapshot results in an error.
*Constraints:
Must be 1 to 255 letters or numbers.
First character must be a letter.
Can't end with a * hyphen or contain two consecutive hyphens.
Can't be specified * when deleting a read replica.
A value that indicates whether to remove automated backups immediately after * the DB instance is deleted. This parameter isn't case-sensitive. The default is * to remove automated backups immediately after the DB instance is deleted.
*/ inline bool GetDeleteAutomatedBackups() const{ return m_deleteAutomatedBackups; } /** *A value that indicates whether to remove automated backups immediately after * the DB instance is deleted. This parameter isn't case-sensitive. The default is * to remove automated backups immediately after the DB instance is deleted.
*/ inline bool DeleteAutomatedBackupsHasBeenSet() const { return m_deleteAutomatedBackupsHasBeenSet; } /** *A value that indicates whether to remove automated backups immediately after * the DB instance is deleted. This parameter isn't case-sensitive. The default is * to remove automated backups immediately after the DB instance is deleted.
*/ inline void SetDeleteAutomatedBackups(bool value) { m_deleteAutomatedBackupsHasBeenSet = true; m_deleteAutomatedBackups = value; } /** *A value that indicates whether to remove automated backups immediately after * the DB instance is deleted. This parameter isn't case-sensitive. The default is * to remove automated backups immediately after the DB instance is deleted.
*/ inline DeleteDBInstanceRequest& WithDeleteAutomatedBackups(bool value) { SetDeleteAutomatedBackups(value); return *this;} private: Aws::String m_dBInstanceIdentifier; bool m_dBInstanceIdentifierHasBeenSet; bool m_skipFinalSnapshot; bool m_skipFinalSnapshotHasBeenSet; Aws::String m_finalDBSnapshotIdentifier; bool m_finalDBSnapshotIdentifierHasBeenSet; bool m_deleteAutomatedBackups; bool m_deleteAutomatedBackupsHasBeenSet; }; } // namespace Model } // namespace RDS } // namespace Aws