AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateClusterRequest.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/memorydb/MemoryDBRequest.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/IpDiscovery.h>
12#include <aws/memorydb/model/ReplicaConfigurationRequest.h>
13#include <aws/memorydb/model/ShardConfigurationRequest.h>
14
15#include <utility>
16
17namespace Aws {
18namespace MemoryDB {
19namespace Model {
20
24 public:
25 AWS_MEMORYDB_API UpdateClusterRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateCluster"; }
32
33 AWS_MEMORYDB_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetClusterName() const { return m_clusterName; }
42 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
43 template <typename ClusterNameT = Aws::String>
44 void SetClusterName(ClusterNameT&& value) {
45 m_clusterNameHasBeenSet = true;
46 m_clusterName = std::forward<ClusterNameT>(value);
47 }
48 template <typename ClusterNameT = Aws::String>
49 UpdateClusterRequest& WithClusterName(ClusterNameT&& value) {
50 SetClusterName(std::forward<ClusterNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
67 UpdateClusterRequest& WithDescription(DescriptionT&& value) {
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
78 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
79 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
80 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
81 m_securityGroupIdsHasBeenSet = true;
82 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
83 }
84 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
85 UpdateClusterRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
86 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
87 return *this;
88 }
89 template <typename SecurityGroupIdsT = Aws::String>
90 UpdateClusterRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
91 m_securityGroupIdsHasBeenSet = true;
92 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
93 return *this;
94 }
96
98
108 inline const Aws::String& GetMaintenanceWindow() const { return m_maintenanceWindow; }
109 inline bool MaintenanceWindowHasBeenSet() const { return m_maintenanceWindowHasBeenSet; }
110 template <typename MaintenanceWindowT = Aws::String>
111 void SetMaintenanceWindow(MaintenanceWindowT&& value) {
112 m_maintenanceWindowHasBeenSet = true;
113 m_maintenanceWindow = std::forward<MaintenanceWindowT>(value);
114 }
115 template <typename MaintenanceWindowT = Aws::String>
116 UpdateClusterRequest& WithMaintenanceWindow(MaintenanceWindowT&& value) {
117 SetMaintenanceWindow(std::forward<MaintenanceWindowT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetSnsTopicArn() const { return m_snsTopicArn; }
127 inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; }
128 template <typename SnsTopicArnT = Aws::String>
129 void SetSnsTopicArn(SnsTopicArnT&& value) {
130 m_snsTopicArnHasBeenSet = true;
131 m_snsTopicArn = std::forward<SnsTopicArnT>(value);
132 }
133 template <typename SnsTopicArnT = Aws::String>
134 UpdateClusterRequest& WithSnsTopicArn(SnsTopicArnT&& value) {
135 SetSnsTopicArn(std::forward<SnsTopicArnT>(value));
136 return *this;
137 }
139
141
145 inline const Aws::String& GetSnsTopicStatus() const { return m_snsTopicStatus; }
146 inline bool SnsTopicStatusHasBeenSet() const { return m_snsTopicStatusHasBeenSet; }
147 template <typename SnsTopicStatusT = Aws::String>
148 void SetSnsTopicStatus(SnsTopicStatusT&& value) {
149 m_snsTopicStatusHasBeenSet = true;
150 m_snsTopicStatus = std::forward<SnsTopicStatusT>(value);
151 }
152 template <typename SnsTopicStatusT = Aws::String>
153 UpdateClusterRequest& WithSnsTopicStatus(SnsTopicStatusT&& value) {
154 SetSnsTopicStatus(std::forward<SnsTopicStatusT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::String& GetParameterGroupName() const { return m_parameterGroupName; }
164 inline bool ParameterGroupNameHasBeenSet() const { return m_parameterGroupNameHasBeenSet; }
165 template <typename ParameterGroupNameT = Aws::String>
166 void SetParameterGroupName(ParameterGroupNameT&& value) {
167 m_parameterGroupNameHasBeenSet = true;
168 m_parameterGroupName = std::forward<ParameterGroupNameT>(value);
169 }
170 template <typename ParameterGroupNameT = Aws::String>
171 UpdateClusterRequest& WithParameterGroupName(ParameterGroupNameT&& value) {
172 SetParameterGroupName(std::forward<ParameterGroupNameT>(value));
173 return *this;
174 }
176
178
182 inline const Aws::String& GetSnapshotWindow() const { return m_snapshotWindow; }
183 inline bool SnapshotWindowHasBeenSet() const { return m_snapshotWindowHasBeenSet; }
184 template <typename SnapshotWindowT = Aws::String>
185 void SetSnapshotWindow(SnapshotWindowT&& value) {
186 m_snapshotWindowHasBeenSet = true;
187 m_snapshotWindow = std::forward<SnapshotWindowT>(value);
188 }
189 template <typename SnapshotWindowT = Aws::String>
190 UpdateClusterRequest& WithSnapshotWindow(SnapshotWindowT&& value) {
191 SetSnapshotWindow(std::forward<SnapshotWindowT>(value));
192 return *this;
193 }
195
197
202 inline int GetSnapshotRetentionLimit() const { return m_snapshotRetentionLimit; }
203 inline bool SnapshotRetentionLimitHasBeenSet() const { return m_snapshotRetentionLimitHasBeenSet; }
204 inline void SetSnapshotRetentionLimit(int value) {
205 m_snapshotRetentionLimitHasBeenSet = true;
206 m_snapshotRetentionLimit = value;
207 }
210 return *this;
211 }
213
215
218 inline const Aws::String& GetNodeType() const { return m_nodeType; }
219 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
220 template <typename NodeTypeT = Aws::String>
221 void SetNodeType(NodeTypeT&& value) {
222 m_nodeTypeHasBeenSet = true;
223 m_nodeType = std::forward<NodeTypeT>(value);
224 }
225 template <typename NodeTypeT = Aws::String>
226 UpdateClusterRequest& WithNodeType(NodeTypeT&& value) {
227 SetNodeType(std::forward<NodeTypeT>(value));
228 return *this;
229 }
231
233
236 inline const Aws::String& GetEngine() const { return m_engine; }
237 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
238 template <typename EngineT = Aws::String>
239 void SetEngine(EngineT&& value) {
240 m_engineHasBeenSet = true;
241 m_engine = std::forward<EngineT>(value);
242 }
243 template <typename EngineT = Aws::String>
245 SetEngine(std::forward<EngineT>(value));
246 return *this;
247 }
249
251
257 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
258 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
259 template <typename EngineVersionT = Aws::String>
260 void SetEngineVersion(EngineVersionT&& value) {
261 m_engineVersionHasBeenSet = true;
262 m_engineVersion = std::forward<EngineVersionT>(value);
263 }
264 template <typename EngineVersionT = Aws::String>
265 UpdateClusterRequest& WithEngineVersion(EngineVersionT&& value) {
266 SetEngineVersion(std::forward<EngineVersionT>(value));
267 return *this;
268 }
270
272
275 inline const ReplicaConfigurationRequest& GetReplicaConfiguration() const { return m_replicaConfiguration; }
276 inline bool ReplicaConfigurationHasBeenSet() const { return m_replicaConfigurationHasBeenSet; }
277 template <typename ReplicaConfigurationT = ReplicaConfigurationRequest>
278 void SetReplicaConfiguration(ReplicaConfigurationT&& value) {
279 m_replicaConfigurationHasBeenSet = true;
280 m_replicaConfiguration = std::forward<ReplicaConfigurationT>(value);
281 }
282 template <typename ReplicaConfigurationT = ReplicaConfigurationRequest>
283 UpdateClusterRequest& WithReplicaConfiguration(ReplicaConfigurationT&& value) {
284 SetReplicaConfiguration(std::forward<ReplicaConfigurationT>(value));
285 return *this;
286 }
288
290
293 inline const ShardConfigurationRequest& GetShardConfiguration() const { return m_shardConfiguration; }
294 inline bool ShardConfigurationHasBeenSet() const { return m_shardConfigurationHasBeenSet; }
295 template <typename ShardConfigurationT = ShardConfigurationRequest>
296 void SetShardConfiguration(ShardConfigurationT&& value) {
297 m_shardConfigurationHasBeenSet = true;
298 m_shardConfiguration = std::forward<ShardConfigurationT>(value);
299 }
300 template <typename ShardConfigurationT = ShardConfigurationRequest>
301 UpdateClusterRequest& WithShardConfiguration(ShardConfigurationT&& value) {
302 SetShardConfiguration(std::forward<ShardConfigurationT>(value));
303 return *this;
304 }
306
308
311 inline const Aws::String& GetACLName() const { return m_aCLName; }
312 inline bool ACLNameHasBeenSet() const { return m_aCLNameHasBeenSet; }
313 template <typename ACLNameT = Aws::String>
314 void SetACLName(ACLNameT&& value) {
315 m_aCLNameHasBeenSet = true;
316 m_aCLName = std::forward<ACLNameT>(value);
317 }
318 template <typename ACLNameT = Aws::String>
320 SetACLName(std::forward<ACLNameT>(value));
321 return *this;
322 }
324
326
335 inline IpDiscovery GetIpDiscovery() const { return m_ipDiscovery; }
336 inline bool IpDiscoveryHasBeenSet() const { return m_ipDiscoveryHasBeenSet; }
337 inline void SetIpDiscovery(IpDiscovery value) {
338 m_ipDiscoveryHasBeenSet = true;
339 m_ipDiscovery = value;
340 }
342 SetIpDiscovery(value);
343 return *this;
344 }
346 private:
347 Aws::String m_clusterName;
348
349 Aws::String m_description;
350
351 Aws::Vector<Aws::String> m_securityGroupIds;
352
353 Aws::String m_maintenanceWindow;
354
355 Aws::String m_snsTopicArn;
356
357 Aws::String m_snsTopicStatus;
358
359 Aws::String m_parameterGroupName;
360
361 Aws::String m_snapshotWindow;
362
363 int m_snapshotRetentionLimit{0};
364
365 Aws::String m_nodeType;
366
367 Aws::String m_engine;
368
369 Aws::String m_engineVersion;
370
371 ReplicaConfigurationRequest m_replicaConfiguration;
372
373 ShardConfigurationRequest m_shardConfiguration;
374
375 Aws::String m_aCLName;
376
377 IpDiscovery m_ipDiscovery{IpDiscovery::NOT_SET};
378 bool m_clusterNameHasBeenSet = false;
379 bool m_descriptionHasBeenSet = false;
380 bool m_securityGroupIdsHasBeenSet = false;
381 bool m_maintenanceWindowHasBeenSet = false;
382 bool m_snsTopicArnHasBeenSet = false;
383 bool m_snsTopicStatusHasBeenSet = false;
384 bool m_parameterGroupNameHasBeenSet = false;
385 bool m_snapshotWindowHasBeenSet = false;
386 bool m_snapshotRetentionLimitHasBeenSet = false;
387 bool m_nodeTypeHasBeenSet = false;
388 bool m_engineHasBeenSet = false;
389 bool m_engineVersionHasBeenSet = false;
390 bool m_replicaConfigurationHasBeenSet = false;
391 bool m_shardConfigurationHasBeenSet = false;
392 bool m_aCLNameHasBeenSet = false;
393 bool m_ipDiscoveryHasBeenSet = false;
394};
395
396} // namespace Model
397} // namespace MemoryDB
398} // namespace Aws
UpdateClusterRequest & WithIpDiscovery(IpDiscovery value)
UpdateClusterRequest & WithSnapshotWindow(SnapshotWindowT &&value)
UpdateClusterRequest & WithSnsTopicArn(SnsTopicArnT &&value)
UpdateClusterRequest & WithSnsTopicStatus(SnsTopicStatusT &&value)
UpdateClusterRequest & WithReplicaConfiguration(ReplicaConfigurationT &&value)
UpdateClusterRequest & WithNodeType(NodeTypeT &&value)
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
virtual const char * GetServiceRequestName() const override
UpdateClusterRequest & WithMaintenanceWindow(MaintenanceWindowT &&value)
AWS_MEMORYDB_API Aws::String SerializePayload() const override
UpdateClusterRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
UpdateClusterRequest & WithDescription(DescriptionT &&value)
UpdateClusterRequest & WithEngine(EngineT &&value)
UpdateClusterRequest & WithShardConfiguration(ShardConfigurationT &&value)
UpdateClusterRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const ShardConfigurationRequest & GetShardConfiguration() const
void SetShardConfiguration(ShardConfigurationT &&value)
void SetMaintenanceWindow(MaintenanceWindowT &&value)
void SetSnapshotWindow(SnapshotWindowT &&value)
AWS_MEMORYDB_API UpdateClusterRequest()=default
UpdateClusterRequest & WithEngineVersion(EngineVersionT &&value)
UpdateClusterRequest & WithClusterName(ClusterNameT &&value)
UpdateClusterRequest & WithSnapshotRetentionLimit(int value)
void SetSnsTopicStatus(SnsTopicStatusT &&value)
void SetReplicaConfiguration(ReplicaConfigurationT &&value)
const ReplicaConfigurationRequest & GetReplicaConfiguration() const
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
UpdateClusterRequest & WithACLName(ACLNameT &&value)
UpdateClusterRequest & WithParameterGroupName(ParameterGroupNameT &&value)
void SetParameterGroupName(ParameterGroupNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector