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

Represents the input of a DeleteCacheCluster * operation.

See Also:

AWS * API Reference

*/ class AWS_ELASTICACHE_API DeleteCacheClusterRequest : public ElastiCacheRequest { public: DeleteCacheClusterRequest(); // 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 "DeleteCacheCluster"; } Aws::String SerializePayload() const override; protected: void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The cluster identifier for the cluster to be deleted. This parameter is not * case sensitive.

*/ inline const Aws::String& GetCacheClusterId() const{ return m_cacheClusterId; } /** *

The cluster identifier for the cluster to be deleted. This parameter is not * case sensitive.

*/ inline bool CacheClusterIdHasBeenSet() const { return m_cacheClusterIdHasBeenSet; } /** *

The cluster identifier for the cluster to be deleted. This parameter is not * case sensitive.

*/ inline void SetCacheClusterId(const Aws::String& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; } /** *

The cluster identifier for the cluster to be deleted. This parameter is not * case sensitive.

*/ inline void SetCacheClusterId(Aws::String&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = std::move(value); } /** *

The cluster identifier for the cluster to be deleted. This parameter is not * case sensitive.

*/ inline void SetCacheClusterId(const char* value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId.assign(value); } /** *

The cluster identifier for the cluster to be deleted. This parameter is not * case sensitive.

*/ inline DeleteCacheClusterRequest& WithCacheClusterId(const Aws::String& value) { SetCacheClusterId(value); return *this;} /** *

The cluster identifier for the cluster to be deleted. This parameter is not * case sensitive.

*/ inline DeleteCacheClusterRequest& WithCacheClusterId(Aws::String&& value) { SetCacheClusterId(std::move(value)); return *this;} /** *

The cluster identifier for the cluster to be deleted. This parameter is not * case sensitive.

*/ inline DeleteCacheClusterRequest& WithCacheClusterId(const char* value) { SetCacheClusterId(value); return *this;} /** *

The user-supplied name of a final cluster snapshot. This is the unique name * that identifies the snapshot. ElastiCache creates the snapshot, and then deletes * the cluster immediately afterward.

*/ inline const Aws::String& GetFinalSnapshotIdentifier() const{ return m_finalSnapshotIdentifier; } /** *

The user-supplied name of a final cluster snapshot. This is the unique name * that identifies the snapshot. ElastiCache creates the snapshot, and then deletes * the cluster immediately afterward.

*/ inline bool FinalSnapshotIdentifierHasBeenSet() const { return m_finalSnapshotIdentifierHasBeenSet; } /** *

The user-supplied name of a final cluster snapshot. This is the unique name * that identifies the snapshot. ElastiCache creates the snapshot, and then deletes * the cluster immediately afterward.

*/ inline void SetFinalSnapshotIdentifier(const Aws::String& value) { m_finalSnapshotIdentifierHasBeenSet = true; m_finalSnapshotIdentifier = value; } /** *

The user-supplied name of a final cluster snapshot. This is the unique name * that identifies the snapshot. ElastiCache creates the snapshot, and then deletes * the cluster immediately afterward.

*/ inline void SetFinalSnapshotIdentifier(Aws::String&& value) { m_finalSnapshotIdentifierHasBeenSet = true; m_finalSnapshotIdentifier = std::move(value); } /** *

The user-supplied name of a final cluster snapshot. This is the unique name * that identifies the snapshot. ElastiCache creates the snapshot, and then deletes * the cluster immediately afterward.

*/ inline void SetFinalSnapshotIdentifier(const char* value) { m_finalSnapshotIdentifierHasBeenSet = true; m_finalSnapshotIdentifier.assign(value); } /** *

The user-supplied name of a final cluster snapshot. This is the unique name * that identifies the snapshot. ElastiCache creates the snapshot, and then deletes * the cluster immediately afterward.

*/ inline DeleteCacheClusterRequest& WithFinalSnapshotIdentifier(const Aws::String& value) { SetFinalSnapshotIdentifier(value); return *this;} /** *

The user-supplied name of a final cluster snapshot. This is the unique name * that identifies the snapshot. ElastiCache creates the snapshot, and then deletes * the cluster immediately afterward.

*/ inline DeleteCacheClusterRequest& WithFinalSnapshotIdentifier(Aws::String&& value) { SetFinalSnapshotIdentifier(std::move(value)); return *this;} /** *

The user-supplied name of a final cluster snapshot. This is the unique name * that identifies the snapshot. ElastiCache creates the snapshot, and then deletes * the cluster immediately afterward.

*/ inline DeleteCacheClusterRequest& WithFinalSnapshotIdentifier(const char* value) { SetFinalSnapshotIdentifier(value); return *this;} private: Aws::String m_cacheClusterId; bool m_cacheClusterIdHasBeenSet; Aws::String m_finalSnapshotIdentifier; bool m_finalSnapshotIdentifierHasBeenSet; }; } // namespace Model } // namespace ElastiCache } // namespace Aws