/** * 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 RDS { namespace Model { /** *

See Also:

AWS * API Reference

*/ class DeleteDBClusterRequest : public RDSRequest { public: AWS_RDS_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_RDS_API Aws::String SerializePayload() const override; protected: AWS_RDS_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;} /** *

A value that indicates whether to skip the creation of a final DB cluster * snapshot before the DB cluster is deleted. If skip is specified, no DB cluster * snapshot is created. If skip isn't specified, a DB cluster snapshot is created * before the DB cluster is deleted. By default, skip isn't specified, and the DB * cluster snapshot is created. By default, this parameter is disabled.

*

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

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

A value that indicates whether to skip the creation of a final DB cluster * snapshot before the DB cluster is deleted. If skip is specified, no DB cluster * snapshot is created. If skip isn't specified, a DB cluster snapshot is created * before the DB cluster is deleted. By default, skip isn't specified, and the DB * cluster snapshot is created. By default, this parameter is disabled.

*

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

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

A value that indicates whether to skip the creation of a final DB cluster * snapshot before the DB cluster is deleted. If skip is specified, no DB cluster * snapshot is created. If skip isn't specified, a DB cluster snapshot is created * before the DB cluster is deleted. By default, skip isn't specified, and the DB * cluster snapshot is created. By default, this parameter is disabled.

*

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

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

A value that indicates whether to skip the creation of a final DB cluster * snapshot before the DB cluster is deleted. If skip is specified, no DB cluster * snapshot is created. If skip isn't specified, a DB cluster snapshot is created * before the DB cluster is deleted. By default, skip isn't specified, and the DB * cluster snapshot is created. By default, this parameter is disabled.

*

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

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

The DB cluster snapshot identifier of the new DB cluster snapshot created * when SkipFinalSnapshot is disabled.

Specifying this * parameter and also skipping the creation of a final DB cluster snapshot with the * SkipFinalShapshot parameter results in an error.

*

Constraints:

  • Must be 1 to 255 letters, numbers, or * hyphens.

  • First character must be a letter

  • *

    Can't 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 disabled.

Specifying this * parameter and also skipping the creation of a final DB cluster snapshot with the * SkipFinalShapshot parameter results in an error.

*

Constraints:

  • Must be 1 to 255 letters, numbers, or * hyphens.

  • First character must be a letter

  • *

    Can't 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 disabled.

Specifying this * parameter and also skipping the creation of a final DB cluster snapshot with the * SkipFinalShapshot parameter results in an error.

*

Constraints:

  • Must be 1 to 255 letters, numbers, or * hyphens.

  • First character must be a letter

  • *

    Can't 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 disabled.

Specifying this * parameter and also skipping the creation of a final DB cluster snapshot with the * SkipFinalShapshot parameter results in an error.

*

Constraints:

  • Must be 1 to 255 letters, numbers, or * hyphens.

  • First character must be a letter

  • *

    Can't 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 disabled.

Specifying this * parameter and also skipping the creation of a final DB cluster snapshot with the * SkipFinalShapshot parameter results in an error.

*

Constraints:

  • Must be 1 to 255 letters, numbers, or * hyphens.

  • First character must be a letter

  • *

    Can't 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 disabled.

Specifying this * parameter and also skipping the creation of a final DB cluster snapshot with the * SkipFinalShapshot parameter results in an error.

*

Constraints:

  • Must be 1 to 255 letters, numbers, or * hyphens.

  • First character must be a letter

  • *

    Can't 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 disabled.

Specifying this * parameter and also skipping the creation of a final DB cluster snapshot with the * SkipFinalShapshot parameter results in an error.

*

Constraints:

  • Must be 1 to 255 letters, numbers, or * hyphens.

  • First character must be a letter

  • *

    Can't 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 disabled.

Specifying this * parameter and also skipping the creation of a final DB cluster snapshot with the * SkipFinalShapshot parameter results in an error.

*

Constraints:

  • Must be 1 to 255 letters, numbers, or * hyphens.

  • First character must be a letter

  • *

    Can't 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 RDS } // namespace Aws