AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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