AWS SDK for C++  1.9.123
AWS SDK for C++
RebootCacheClusterRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ElastiCache
16 {
17 namespace Model
18 {
19 
27  {
28  public:
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::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
47  inline const Aws::String& GetCacheClusterId() const{ return m_cacheClusterId; }
48 
52  inline bool CacheClusterIdHasBeenSet() const { return m_cacheClusterIdHasBeenSet; }
53 
57  inline void SetCacheClusterId(const Aws::String& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; }
58 
62  inline void SetCacheClusterId(Aws::String&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = std::move(value); }
63 
67  inline void SetCacheClusterId(const char* value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId.assign(value); }
68 
72  inline RebootCacheClusterRequest& WithCacheClusterId(const Aws::String& value) { SetCacheClusterId(value); return *this;}
73 
77  inline RebootCacheClusterRequest& WithCacheClusterId(Aws::String&& value) { SetCacheClusterId(std::move(value)); return *this;}
78 
82  inline RebootCacheClusterRequest& WithCacheClusterId(const char* value) { SetCacheClusterId(value); return *this;}
83 
84 
89  inline const Aws::Vector<Aws::String>& GetCacheNodeIdsToReboot() const{ return m_cacheNodeIdsToReboot; }
90 
95  inline bool CacheNodeIdsToRebootHasBeenSet() const { return m_cacheNodeIdsToRebootHasBeenSet; }
96 
101  inline void SetCacheNodeIdsToReboot(const Aws::Vector<Aws::String>& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot = value; }
102 
107  inline void SetCacheNodeIdsToReboot(Aws::Vector<Aws::String>&& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot = std::move(value); }
108 
113  inline RebootCacheClusterRequest& WithCacheNodeIdsToReboot(const Aws::Vector<Aws::String>& value) { SetCacheNodeIdsToReboot(value); return *this;}
114 
119  inline RebootCacheClusterRequest& WithCacheNodeIdsToReboot(Aws::Vector<Aws::String>&& value) { SetCacheNodeIdsToReboot(std::move(value)); return *this;}
120 
125  inline RebootCacheClusterRequest& AddCacheNodeIdsToReboot(const Aws::String& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot.push_back(value); return *this; }
126 
131  inline RebootCacheClusterRequest& AddCacheNodeIdsToReboot(Aws::String&& value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot.push_back(std::move(value)); return *this; }
132 
137  inline RebootCacheClusterRequest& AddCacheNodeIdsToReboot(const char* value) { m_cacheNodeIdsToRebootHasBeenSet = true; m_cacheNodeIdsToReboot.push_back(value); return *this; }
138 
139  private:
140 
141  Aws::String m_cacheClusterId;
142  bool m_cacheClusterIdHasBeenSet;
143 
144  Aws::Vector<Aws::String> m_cacheNodeIdsToReboot;
145  bool m_cacheNodeIdsToRebootHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace ElastiCache
150 } // namespace Aws
Aws::ElastiCache::Model::RebootCacheClusterRequest::SetCacheNodeIdsToReboot
void SetCacheNodeIdsToReboot(Aws::Vector< Aws::String > &&value)
Definition: RebootCacheClusterRequest.h:107
Aws::Http::URI
Definition: URI.h:32
Aws::ElastiCache::Model::RebootCacheClusterRequest::SetCacheNodeIdsToReboot
void SetCacheNodeIdsToReboot(const Aws::Vector< Aws::String > &value)
Definition: RebootCacheClusterRequest.h:101
Aws::ElastiCache::Model::RebootCacheClusterRequest::AddCacheNodeIdsToReboot
RebootCacheClusterRequest & AddCacheNodeIdsToReboot(const char *value)
Definition: RebootCacheClusterRequest.h:137
Aws::ElastiCache::Model::RebootCacheClusterRequest::SetCacheClusterId
void SetCacheClusterId(const Aws::String &value)
Definition: RebootCacheClusterRequest.h:57
ElastiCacheRequest.h
Aws::ElastiCache::Model::RebootCacheClusterRequest::WithCacheNodeIdsToReboot
RebootCacheClusterRequest & WithCacheNodeIdsToReboot(Aws::Vector< Aws::String > &&value)
Definition: RebootCacheClusterRequest.h:119
Aws::ElastiCache::Model::RebootCacheClusterRequest::SetCacheClusterId
void SetCacheClusterId(Aws::String &&value)
Definition: RebootCacheClusterRequest.h:62
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElastiCache::Model::RebootCacheClusterRequest::AddCacheNodeIdsToReboot
RebootCacheClusterRequest & AddCacheNodeIdsToReboot(Aws::String &&value)
Definition: RebootCacheClusterRequest.h:131
Aws::ElastiCache::Model::RebootCacheClusterRequest::AddCacheNodeIdsToReboot
RebootCacheClusterRequest & AddCacheNodeIdsToReboot(const Aws::String &value)
Definition: RebootCacheClusterRequest.h:125
ElastiCache_EXPORTS.h
AWSVector.h
Aws::ElastiCache::Model::RebootCacheClusterRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::ElastiCache::Model::RebootCacheClusterRequest::GetCacheNodeIdsToReboot
const Aws::Vector< Aws::String > & GetCacheNodeIdsToReboot() const
Definition: RebootCacheClusterRequest.h:89
Aws::ElastiCache::Model::RebootCacheClusterRequest::CacheNodeIdsToRebootHasBeenSet
bool CacheNodeIdsToRebootHasBeenSet() const
Definition: RebootCacheClusterRequest.h:95
Aws::ElastiCache::Model::RebootCacheClusterRequest::CacheClusterIdHasBeenSet
bool CacheClusterIdHasBeenSet() const
Definition: RebootCacheClusterRequest.h:52
Aws::ElastiCache::Model::RebootCacheClusterRequest::WithCacheClusterId
RebootCacheClusterRequest & WithCacheClusterId(const char *value)
Definition: RebootCacheClusterRequest.h:82
Aws::ElastiCache::Model::RebootCacheClusterRequest
Definition: RebootCacheClusterRequest.h:27
AWSString.h
Aws::ElastiCache::Model::RebootCacheClusterRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_ELASTICACHE_API
#define AWS_ELASTICACHE_API
Definition: ElastiCache_EXPORTS.h:28
Aws::ElastiCache::Model::RebootCacheClusterRequest::RebootCacheClusterRequest
RebootCacheClusterRequest()
Aws::ElastiCache::Model::RebootCacheClusterRequest::WithCacheClusterId
RebootCacheClusterRequest & WithCacheClusterId(const Aws::String &value)
Definition: RebootCacheClusterRequest.h:72
Aws::ElastiCache::Model::RebootCacheClusterRequest::WithCacheNodeIdsToReboot
RebootCacheClusterRequest & WithCacheNodeIdsToReboot(const Aws::Vector< Aws::String > &value)
Definition: RebootCacheClusterRequest.h:113
Aws
Definition: AccessManagementClient.h:15
Aws::ElastiCache::Model::RebootCacheClusterRequest::WithCacheClusterId
RebootCacheClusterRequest & WithCacheClusterId(Aws::String &&value)
Definition: RebootCacheClusterRequest.h:77
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElastiCache::ElastiCacheRequest
Definition: ElastiCacheRequest.h:17
Aws::ElastiCache::Model::RebootCacheClusterRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RebootCacheClusterRequest.h:35
Aws::ElastiCache::Model::RebootCacheClusterRequest::SetCacheClusterId
void SetCacheClusterId(const char *value)
Definition: RebootCacheClusterRequest.h:67
Aws::ElastiCache::Model::RebootCacheClusterRequest::GetCacheClusterId
const Aws::String & GetCacheClusterId() const
Definition: RebootCacheClusterRequest.h:47