AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename CacheClusterIdT = Aws::String>
51 void SetCacheClusterId(CacheClusterIdT&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = std::forward<CacheClusterIdT>(value); }
52 template<typename CacheClusterIdT = Aws::String>
53 RebootCacheClusterRequest& WithCacheClusterId(CacheClusterIdT&& value) { SetCacheClusterId(std::forward<CacheClusterIdT>(value)); return *this;}
55
57
61 inline const Aws::Vector<Aws::String>& GetCacheNodeIdsToReboot() const { return m_cacheNodeIdsToReboot; }
62 inline bool CacheNodeIdsToRebootHasBeenSet() const { return m_cacheNodeIdsToRebootHasBeenSet; }
63 template<typename CacheNodeIdsToRebootT = Aws::Vector<Aws::String>>
64 void SetCacheNodeIdsToReboot(CacheNodeIdsToRebootT&& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot = std::forward<CacheNodeIdsToRebootT>(value); }
65 template<typename CacheNodeIdsToRebootT = Aws::Vector<Aws::String>>
66 RebootCacheClusterRequest& WithCacheNodeIdsToReboot(CacheNodeIdsToRebootT&& value) { SetCacheNodeIdsToReboot(std::forward<CacheNodeIdsToRebootT>(value)); return *this;}
67 template<typename CacheNodeIdsToRebootT = Aws::String>
68 RebootCacheClusterRequest& AddCacheNodeIdsToReboot(CacheNodeIdsToRebootT&& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot.emplace_back(std::forward<CacheNodeIdsToRebootT>(value)); return *this; }
70 private:
71
72 Aws::String m_cacheClusterId;
73 bool m_cacheClusterIdHasBeenSet = false;
74
75 Aws::Vector<Aws::String> m_cacheNodeIdsToReboot;
76 bool m_cacheNodeIdsToRebootHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace ElastiCache
81} // 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