/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Neptune { namespace Model { /** */ class DeleteDBInstanceRequest : public NeptuneRequest { public: AWS_NEPTUNE_API DeleteDBInstanceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DeleteDBInstance"; } AWS_NEPTUNE_API Aws::String SerializePayload() const override; protected: AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

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.

*/ inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; } /** *

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.

*/ inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; } /** *

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.

*/ inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; } /** *

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.

*/ inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); } /** *

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.

*/ inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); } /** *

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.

*/ inline DeleteDBInstanceRequest& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;} /** *

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.

*/ inline DeleteDBInstanceRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;} /** *

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.

*/ inline DeleteDBInstanceRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;} /** *

Determines whether a final DB snapshot is created before the DB instance is * deleted. If true is specified, no DBSnapshot is created. If * false is specified, a DB snapshot is created before the DB instance * is deleted.

Note that 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 the SkipFinalSnapshot parameter is set to "true".

*

Specify true when deleting a Read Replica.

The * FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is * false.

Default: false

*/ inline bool GetSkipFinalSnapshot() const{ return m_skipFinalSnapshot; } /** *

Determines whether a final DB snapshot is created before the DB instance is * deleted. If true is specified, no DBSnapshot is created. If * false is specified, a DB snapshot is created before the DB instance * is deleted.

Note that 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 the SkipFinalSnapshot parameter is set to "true".

*

Specify true when deleting a Read Replica.

The * FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is * false.

Default: false

*/ inline bool SkipFinalSnapshotHasBeenSet() const { return m_skipFinalSnapshotHasBeenSet; } /** *

Determines whether a final DB snapshot is created before the DB instance is * deleted. If true is specified, no DBSnapshot is created. If * false is specified, a DB snapshot is created before the DB instance * is deleted.

Note that 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 the SkipFinalSnapshot parameter is set to "true".

*

Specify true when deleting a Read Replica.

The * FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is * false.

Default: false

*/ inline void SetSkipFinalSnapshot(bool value) { m_skipFinalSnapshotHasBeenSet = true; m_skipFinalSnapshot = value; } /** *

Determines whether a final DB snapshot is created before the DB instance is * deleted. If true is specified, no DBSnapshot is created. If * false is specified, a DB snapshot is created before the DB instance * is deleted.

Note that 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 the SkipFinalSnapshot parameter is set to "true".

*

Specify true when deleting a Read Replica.

The * FinalDBSnapshotIdentifier parameter must be specified if SkipFinalSnapshot is * false.

Default: false

*/ inline DeleteDBInstanceRequest& WithSkipFinalSnapshot(bool value) { SetSkipFinalSnapshot(value); return *this;} /** *

The DBSnapshotIdentifier of the new DBSnapshot created when * SkipFinalSnapshot is set to false.

Specifying this * parameter and also setting the SkipFinalShapshot parameter to true results in an * error.

Constraints:

  • Must be 1 to 255 letters or * numbers.

  • First character must be a letter

  • *

    Cannot end with a hyphen or contain two consecutive hyphens

  • *

    Cannot be specified when deleting a Read Replica.

*/ inline const Aws::String& GetFinalDBSnapshotIdentifier() const{ return m_finalDBSnapshotIdentifier; } /** *

The DBSnapshotIdentifier of the new DBSnapshot created when * SkipFinalSnapshot is set to false.

Specifying this * parameter and also setting the SkipFinalShapshot parameter to true results in an * error.

Constraints:

  • Must be 1 to 255 letters or * numbers.

  • First character must be a letter

  • *

    Cannot end with a hyphen or contain two consecutive hyphens

  • *

    Cannot be specified when deleting a Read Replica.

*/ inline bool FinalDBSnapshotIdentifierHasBeenSet() const { return m_finalDBSnapshotIdentifierHasBeenSet; } /** *

The DBSnapshotIdentifier of the new DBSnapshot created when * SkipFinalSnapshot is set to false.

Specifying this * parameter and also setting the SkipFinalShapshot parameter to true results in an * error.

Constraints:

  • Must be 1 to 255 letters or * numbers.

  • First character must be a letter

  • *

    Cannot end with a hyphen or contain two consecutive hyphens

  • *

    Cannot be specified when deleting a Read Replica.

*/ inline void SetFinalDBSnapshotIdentifier(const Aws::String& value) { m_finalDBSnapshotIdentifierHasBeenSet = true; m_finalDBSnapshotIdentifier = value; } /** *

The DBSnapshotIdentifier of the new DBSnapshot created when * SkipFinalSnapshot is set to false.

Specifying this * parameter and also setting the SkipFinalShapshot parameter to true results in an * error.

Constraints:

  • Must be 1 to 255 letters or * numbers.

  • First character must be a letter

  • *

    Cannot end with a hyphen or contain two consecutive hyphens

  • *

    Cannot be specified when deleting a Read Replica.

*/ inline void SetFinalDBSnapshotIdentifier(Aws::String&& value) { m_finalDBSnapshotIdentifierHasBeenSet = true; m_finalDBSnapshotIdentifier = std::move(value); } /** *

The DBSnapshotIdentifier of the new DBSnapshot created when * SkipFinalSnapshot is set to false.

Specifying this * parameter and also setting the SkipFinalShapshot parameter to true results in an * error.

Constraints:

  • Must be 1 to 255 letters or * numbers.

  • First character must be a letter

  • *

    Cannot end with a hyphen or contain two consecutive hyphens

  • *

    Cannot be specified when deleting a Read Replica.

*/ inline void SetFinalDBSnapshotIdentifier(const char* value) { m_finalDBSnapshotIdentifierHasBeenSet = true; m_finalDBSnapshotIdentifier.assign(value); } /** *

The DBSnapshotIdentifier of the new DBSnapshot created when * SkipFinalSnapshot is set to false.

Specifying this * parameter and also setting the SkipFinalShapshot parameter to true results in an * error.

Constraints:

  • Must be 1 to 255 letters or * numbers.

  • First character must be a letter

  • *

    Cannot end with a hyphen or contain two consecutive hyphens

  • *

    Cannot be specified when deleting a Read Replica.

*/ inline DeleteDBInstanceRequest& WithFinalDBSnapshotIdentifier(const Aws::String& value) { SetFinalDBSnapshotIdentifier(value); return *this;} /** *

The DBSnapshotIdentifier of the new DBSnapshot created when * SkipFinalSnapshot is set to false.

Specifying this * parameter and also setting the SkipFinalShapshot parameter to true results in an * error.

Constraints:

  • Must be 1 to 255 letters or * numbers.

  • First character must be a letter

  • *

    Cannot end with a hyphen or contain two consecutive hyphens

  • *

    Cannot be specified when deleting a Read Replica.

*/ inline DeleteDBInstanceRequest& WithFinalDBSnapshotIdentifier(Aws::String&& value) { SetFinalDBSnapshotIdentifier(std::move(value)); return *this;} /** *

The DBSnapshotIdentifier of the new DBSnapshot created when * SkipFinalSnapshot is set to false.

Specifying this * parameter and also setting the SkipFinalShapshot parameter to true results in an * error.

Constraints:

  • Must be 1 to 255 letters or * numbers.

  • First character must be a letter

  • *

    Cannot end with a hyphen or contain two consecutive hyphens

  • *

    Cannot be specified when deleting a Read Replica.

*/ inline DeleteDBInstanceRequest& WithFinalDBSnapshotIdentifier(const char* value) { SetFinalDBSnapshotIdentifier(value); return *this;} private: Aws::String m_dBInstanceIdentifier; bool m_dBInstanceIdentifierHasBeenSet = false; bool m_skipFinalSnapshot; bool m_skipFinalSnapshotHasBeenSet = false; Aws::String m_finalDBSnapshotIdentifier; bool m_finalDBSnapshotIdentifierHasBeenSet = false; }; } // namespace Model } // namespace Neptune } // namespace Aws