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

See Also:

AWS * API Reference

*/ class DeleteClusterSnapshotRequest : public RedshiftRequest { public: AWS_REDSHIFT_API DeleteClusterSnapshotRequest(); // 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 "DeleteClusterSnapshot"; } AWS_REDSHIFT_API Aws::String SerializePayload() const override; protected: AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The unique identifier of the manual snapshot to be deleted.

*

Constraints: Must be the name of an existing snapshot that is in the * available, failed, or cancelled * state.

*/ inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; } /** *

The unique identifier of the manual snapshot to be deleted.

*

Constraints: Must be the name of an existing snapshot that is in the * available, failed, or cancelled * state.

*/ inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; } /** *

The unique identifier of the manual snapshot to be deleted.

*

Constraints: Must be the name of an existing snapshot that is in the * available, failed, or cancelled * state.

*/ inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; } /** *

The unique identifier of the manual snapshot to be deleted.

*

Constraints: Must be the name of an existing snapshot that is in the * available, failed, or cancelled * state.

*/ inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::move(value); } /** *

The unique identifier of the manual snapshot to be deleted.

*

Constraints: Must be the name of an existing snapshot that is in the * available, failed, or cancelled * state.

*/ inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); } /** *

The unique identifier of the manual snapshot to be deleted.

*

Constraints: Must be the name of an existing snapshot that is in the * available, failed, or cancelled * state.

*/ inline DeleteClusterSnapshotRequest& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;} /** *

The unique identifier of the manual snapshot to be deleted.

*

Constraints: Must be the name of an existing snapshot that is in the * available, failed, or cancelled * state.

*/ inline DeleteClusterSnapshotRequest& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(std::move(value)); return *this;} /** *

The unique identifier of the manual snapshot to be deleted.

*

Constraints: Must be the name of an existing snapshot that is in the * available, failed, or cancelled * state.

*/ inline DeleteClusterSnapshotRequest& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;} /** *

The unique identifier of the cluster the snapshot was created from. This * parameter is required if your IAM user has a policy containing a snapshot * resource element that specifies anything other than * for the cluster name.

*

Constraints: Must be the name of valid cluster.

*/ inline const Aws::String& GetSnapshotClusterIdentifier() const{ return m_snapshotClusterIdentifier; } /** *

The unique identifier of the cluster the snapshot was created from. This * parameter is required if your IAM user has a policy containing a snapshot * resource element that specifies anything other than * for the cluster name.

*

Constraints: Must be the name of valid cluster.

*/ inline bool SnapshotClusterIdentifierHasBeenSet() const { return m_snapshotClusterIdentifierHasBeenSet; } /** *

The unique identifier of the cluster the snapshot was created from. This * parameter is required if your IAM user has a policy containing a snapshot * resource element that specifies anything other than * for the cluster name.

*

Constraints: Must be the name of valid cluster.

*/ inline void SetSnapshotClusterIdentifier(const Aws::String& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = value; } /** *

The unique identifier of the cluster the snapshot was created from. This * parameter is required if your IAM user has a policy containing a snapshot * resource element that specifies anything other than * for the cluster name.

*

Constraints: Must be the name of valid cluster.

*/ inline void SetSnapshotClusterIdentifier(Aws::String&& value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier = std::move(value); } /** *

The unique identifier of the cluster the snapshot was created from. This * parameter is required if your IAM user has a policy containing a snapshot * resource element that specifies anything other than * for the cluster name.

*

Constraints: Must be the name of valid cluster.

*/ inline void SetSnapshotClusterIdentifier(const char* value) { m_snapshotClusterIdentifierHasBeenSet = true; m_snapshotClusterIdentifier.assign(value); } /** *

The unique identifier of the cluster the snapshot was created from. This * parameter is required if your IAM user has a policy containing a snapshot * resource element that specifies anything other than * for the cluster name.

*

Constraints: Must be the name of valid cluster.

*/ inline DeleteClusterSnapshotRequest& WithSnapshotClusterIdentifier(const Aws::String& value) { SetSnapshotClusterIdentifier(value); return *this;} /** *

The unique identifier of the cluster the snapshot was created from. This * parameter is required if your IAM user has a policy containing a snapshot * resource element that specifies anything other than * for the cluster name.

*

Constraints: Must be the name of valid cluster.

*/ inline DeleteClusterSnapshotRequest& WithSnapshotClusterIdentifier(Aws::String&& value) { SetSnapshotClusterIdentifier(std::move(value)); return *this;} /** *

The unique identifier of the cluster the snapshot was created from. This * parameter is required if your IAM user has a policy containing a snapshot * resource element that specifies anything other than * for the cluster name.

*

Constraints: Must be the name of valid cluster.

*/ inline DeleteClusterSnapshotRequest& WithSnapshotClusterIdentifier(const char* value) { SetSnapshotClusterIdentifier(value); return *this;} private: Aws::String m_snapshotIdentifier; bool m_snapshotIdentifierHasBeenSet = false; Aws::String m_snapshotClusterIdentifier; bool m_snapshotClusterIdentifierHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws