AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RebootCacheClusterRequest.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ElastiCache
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_ELASTICACHE_API RebootCacheClusterRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "RebootCacheCluster"; }
36
37 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
48 inline const Aws::String& GetCacheClusterId() const{ return m_cacheClusterId; }
49 inline bool CacheClusterIdHasBeenSet() const { return m_cacheClusterIdHasBeenSet; }
50 inline void SetCacheClusterId(const Aws::String& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; }
51 inline void SetCacheClusterId(Aws::String&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = std::move(value); }
52 inline void SetCacheClusterId(const char* value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId.assign(value); }
53 inline RebootCacheClusterRequest& WithCacheClusterId(const Aws::String& value) { SetCacheClusterId(value); return *this;}
54 inline RebootCacheClusterRequest& WithCacheClusterId(Aws::String&& value) { SetCacheClusterId(std::move(value)); return *this;}
55 inline RebootCacheClusterRequest& WithCacheClusterId(const char* value) { SetCacheClusterId(value); return *this;}
57
59
63 inline const Aws::Vector<Aws::String>& GetCacheNodeIdsToReboot() const{ return m_cacheNodeIdsToReboot; }
64 inline bool CacheNodeIdsToRebootHasBeenSet() const { return m_cacheNodeIdsToRebootHasBeenSet; }
65 inline void SetCacheNodeIdsToReboot(const Aws::Vector<Aws::String>& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot = value; }
66 inline void SetCacheNodeIdsToReboot(Aws::Vector<Aws::String>&& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot = std::move(value); }
69 inline RebootCacheClusterRequest& AddCacheNodeIdsToReboot(const Aws::String& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot.push_back(value); return *this; }
70 inline RebootCacheClusterRequest& AddCacheNodeIdsToReboot(Aws::String&& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot.push_back(std::move(value)); return *this; }
71 inline RebootCacheClusterRequest& AddCacheNodeIdsToReboot(const char* value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot.push_back(value); return *this; }
73 private:
74
75 Aws::String m_cacheClusterId;
76 bool m_cacheClusterIdHasBeenSet = false;
77
78 Aws::Vector<Aws::String> m_cacheNodeIdsToReboot;
79 bool m_cacheNodeIdsToRebootHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace ElastiCache
84} // namespace Aws
RebootCacheClusterRequest & WithCacheClusterId(const Aws::String &value)
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
RebootCacheClusterRequest & WithCacheNodeIdsToReboot(const Aws::Vector< Aws::String > &value)
void SetCacheNodeIdsToReboot(Aws::Vector< Aws::String > &&value)
RebootCacheClusterRequest & WithCacheClusterId(Aws::String &&value)
RebootCacheClusterRequest & AddCacheNodeIdsToReboot(const char *value)
RebootCacheClusterRequest & WithCacheNodeIdsToReboot(Aws::Vector< Aws::String > &&value)
void SetCacheNodeIdsToReboot(const Aws::Vector< Aws::String > &value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
RebootCacheClusterRequest & WithCacheClusterId(const char *value)
virtual const char * GetServiceRequestName() const override
RebootCacheClusterRequest & AddCacheNodeIdsToReboot(const Aws::String &value)
const Aws::Vector< Aws::String > & GetCacheNodeIdsToReboot() const
RebootCacheClusterRequest & AddCacheNodeIdsToReboot(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector