/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace ElastiCache { namespace Model { /** *

Represents the input of a RebootCacheCluster * operation.

See Also:

AWS * API Reference

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

The cluster identifier. This parameter is stored as a lowercase string.

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

The cluster identifier. This parameter is stored as a lowercase string.

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

The cluster identifier. This parameter is stored as a lowercase string.

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

The cluster identifier. This parameter is stored as a lowercase string.

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

The cluster identifier. This parameter is stored as a lowercase string.

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

The cluster identifier. This parameter is stored as a lowercase string.

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

The cluster identifier. This parameter is stored as a lowercase string.

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

The cluster identifier. This parameter is stored as a lowercase string.

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

A list of cache node IDs to reboot. A node ID is a numeric identifier (0001, * 0002, etc.). To reboot an entire cluster, specify all of the cache node IDs.

*/ inline const Aws::Vector& GetCacheNodeIdsToReboot() const{ return m_cacheNodeIdsToReboot; } /** *

A list of cache node IDs to reboot. A node ID is a numeric identifier (0001, * 0002, etc.). To reboot an entire cluster, specify all of the cache node IDs.

*/ inline bool CacheNodeIdsToRebootHasBeenSet() const { return m_cacheNodeIdsToRebootHasBeenSet; } /** *

A list of cache node IDs to reboot. A node ID is a numeric identifier (0001, * 0002, etc.). To reboot an entire cluster, specify all of the cache node IDs.

*/ inline void SetCacheNodeIdsToReboot(const Aws::Vector& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot = value; } /** *

A list of cache node IDs to reboot. A node ID is a numeric identifier (0001, * 0002, etc.). To reboot an entire cluster, specify all of the cache node IDs.

*/ inline void SetCacheNodeIdsToReboot(Aws::Vector&& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot = std::move(value); } /** *

A list of cache node IDs to reboot. A node ID is a numeric identifier (0001, * 0002, etc.). To reboot an entire cluster, specify all of the cache node IDs.

*/ inline RebootCacheClusterRequest& WithCacheNodeIdsToReboot(const Aws::Vector& value) { SetCacheNodeIdsToReboot(value); return *this;} /** *

A list of cache node IDs to reboot. A node ID is a numeric identifier (0001, * 0002, etc.). To reboot an entire cluster, specify all of the cache node IDs.

*/ inline RebootCacheClusterRequest& WithCacheNodeIdsToReboot(Aws::Vector&& value) { SetCacheNodeIdsToReboot(std::move(value)); return *this;} /** *

A list of cache node IDs to reboot. A node ID is a numeric identifier (0001, * 0002, etc.). To reboot an entire cluster, specify all of the cache node IDs.

*/ inline RebootCacheClusterRequest& AddCacheNodeIdsToReboot(const Aws::String& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot.push_back(value); return *this; } /** *

A list of cache node IDs to reboot. A node ID is a numeric identifier (0001, * 0002, etc.). To reboot an entire cluster, specify all of the cache node IDs.

*/ inline RebootCacheClusterRequest& AddCacheNodeIdsToReboot(Aws::String&& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot.push_back(std::move(value)); return *this; } /** *

A list of cache node IDs to reboot. A node ID is a numeric identifier (0001, * 0002, etc.). To reboot an entire cluster, specify all of the cache node IDs.

*/ inline RebootCacheClusterRequest& AddCacheNodeIdsToReboot(const char* value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot.push_back(value); return *this; } private: Aws::String m_cacheClusterId; bool m_cacheClusterIdHasBeenSet = false; Aws::Vector m_cacheNodeIdsToReboot; bool m_cacheNodeIdsToRebootHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws