/** * 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 DeleteDBClusterRequest : public NeptuneRequest { public: AWS_NEPTUNE_API DeleteDBClusterRequest(); // 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 "DeleteDBCluster"; } AWS_NEPTUNE_API Aws::String SerializePayload() const override; protected: AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The DB cluster identifier for the DB cluster to be deleted. This parameter * isn't case-sensitive.

Constraints:

  • Must match an * existing DBClusterIdentifier.

*/ inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; } /** *

The DB cluster identifier for the DB cluster to be deleted. This parameter * isn't case-sensitive.

Constraints:

  • Must match an * existing DBClusterIdentifier.

*/ inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; } /** *

The DB cluster identifier for the DB cluster to be deleted. This parameter * isn't case-sensitive.

Constraints:

  • Must match an * existing DBClusterIdentifier.

*/ inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; } /** *

The DB cluster identifier for the DB cluster to be deleted. This parameter * isn't case-sensitive.

Constraints:

  • Must match an * existing DBClusterIdentifier.

*/ inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); } /** *

The DB cluster identifier for the DB cluster to be deleted. This parameter * isn't case-sensitive.

Constraints:

  • Must match an * existing DBClusterIdentifier.

*/ inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); } /** *

The DB cluster identifier for the DB cluster to be deleted. This parameter * isn't case-sensitive.

Constraints:

  • Must match an * existing DBClusterIdentifier.

*/ inline DeleteDBClusterRequest& WithDBClusterIdentifier(const Aws::String& value) { SetDBClusterIdentifier(value); return *this;} /** *

The DB cluster identifier for the DB cluster to be deleted. This parameter * isn't case-sensitive.

Constraints:

  • Must match an * existing DBClusterIdentifier.

*/ inline DeleteDBClusterRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;} /** *

The DB cluster identifier for the DB cluster to be deleted. This parameter * isn't case-sensitive.

Constraints:

  • Must match an * existing DBClusterIdentifier.

*/ inline DeleteDBClusterRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;} /** *

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

You must specify a * FinalDBSnapshotIdentifier parameter if * SkipFinalSnapshot is false.

Default: * false

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

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

You must specify a * FinalDBSnapshotIdentifier parameter if * SkipFinalSnapshot is false.

Default: * false

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

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

You must specify a * FinalDBSnapshotIdentifier parameter if * SkipFinalSnapshot is false.

Default: * false

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

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

You must specify a * FinalDBSnapshotIdentifier parameter if * SkipFinalSnapshot is false.

Default: * false

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

The DB cluster snapshot identifier of the new DB cluster snapshot 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, numbers, or hyphens.

  • First * character must be a letter

  • Cannot end with a hyphen or contain * two consecutive hyphens

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

The DB cluster snapshot identifier of the new DB cluster snapshot 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, numbers, or hyphens.

  • First * character must be a letter

  • Cannot end with a hyphen or contain * two consecutive hyphens

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

The DB cluster snapshot identifier of the new DB cluster snapshot 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, numbers, or hyphens.

  • First * character must be a letter

  • Cannot end with a hyphen or contain * two consecutive hyphens

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

The DB cluster snapshot identifier of the new DB cluster snapshot 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, numbers, or hyphens.

  • First * character must be a letter

  • Cannot end with a hyphen or contain * two consecutive hyphens

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

The DB cluster snapshot identifier of the new DB cluster snapshot 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, numbers, or hyphens.

  • First * character must be a letter

  • Cannot end with a hyphen or contain * two consecutive hyphens

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

The DB cluster snapshot identifier of the new DB cluster snapshot 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, numbers, or hyphens.

  • First * character must be a letter

  • Cannot end with a hyphen or contain * two consecutive hyphens

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

The DB cluster snapshot identifier of the new DB cluster snapshot 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, numbers, or hyphens.

  • First * character must be a letter

  • Cannot end with a hyphen or contain * two consecutive hyphens

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

The DB cluster snapshot identifier of the new DB cluster snapshot 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, numbers, or hyphens.

  • First * character must be a letter

  • Cannot end with a hyphen or contain * two consecutive hyphens

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