AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ClusterConfiguration.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/crt/cbor/Cbor.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/ShardDetail.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace MemoryDB {
22namespace Model {
23
30 public:
31 AWS_MEMORYDB_API ClusterConfiguration() = default;
32 AWS_MEMORYDB_API ClusterConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_MEMORYDB_API ClusterConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 ClusterConfiguration& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetNodeType() const { return m_nodeType; }
77 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
78 template <typename NodeTypeT = Aws::String>
79 void SetNodeType(NodeTypeT&& value) {
80 m_nodeTypeHasBeenSet = true;
81 m_nodeType = std::forward<NodeTypeT>(value);
82 }
83 template <typename NodeTypeT = Aws::String>
84 ClusterConfiguration& WithNodeType(NodeTypeT&& value) {
85 SetNodeType(std::forward<NodeTypeT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetEngine() const { return m_engine; }
95 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
96 template <typename EngineT = Aws::String>
97 void SetEngine(EngineT&& value) {
98 m_engineHasBeenSet = true;
99 m_engine = std::forward<EngineT>(value);
100 }
101 template <typename EngineT = Aws::String>
103 SetEngine(std::forward<EngineT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
113 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
114 template <typename EngineVersionT = Aws::String>
115 void SetEngineVersion(EngineVersionT&& value) {
116 m_engineVersionHasBeenSet = true;
117 m_engineVersion = std::forward<EngineVersionT>(value);
118 }
119 template <typename EngineVersionT = Aws::String>
120 ClusterConfiguration& WithEngineVersion(EngineVersionT&& value) {
121 SetEngineVersion(std::forward<EngineVersionT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetMaintenanceWindow() const { return m_maintenanceWindow; }
131 inline bool MaintenanceWindowHasBeenSet() const { return m_maintenanceWindowHasBeenSet; }
132 template <typename MaintenanceWindowT = Aws::String>
133 void SetMaintenanceWindow(MaintenanceWindowT&& value) {
134 m_maintenanceWindowHasBeenSet = true;
135 m_maintenanceWindow = std::forward<MaintenanceWindowT>(value);
136 }
137 template <typename MaintenanceWindowT = Aws::String>
138 ClusterConfiguration& WithMaintenanceWindow(MaintenanceWindowT&& value) {
139 SetMaintenanceWindow(std::forward<MaintenanceWindowT>(value));
140 return *this;
141 }
143
145
149 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
150 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
151 template <typename TopicArnT = Aws::String>
152 void SetTopicArn(TopicArnT&& value) {
153 m_topicArnHasBeenSet = true;
154 m_topicArn = std::forward<TopicArnT>(value);
155 }
156 template <typename TopicArnT = Aws::String>
157 ClusterConfiguration& WithTopicArn(TopicArnT&& value) {
158 SetTopicArn(std::forward<TopicArnT>(value));
159 return *this;
160 }
162
164
167 inline int64_t GetPort() const { return m_port; }
168 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
169 inline void SetPort(int64_t value) {
170 m_portHasBeenSet = true;
171 m_port = value;
172 }
173 inline ClusterConfiguration& WithPort(int64_t value) {
174 SetPort(value);
175 return *this;
176 }
178
180
183 inline const Aws::String& GetParameterGroupName() const { return m_parameterGroupName; }
184 inline bool ParameterGroupNameHasBeenSet() const { return m_parameterGroupNameHasBeenSet; }
185 template <typename ParameterGroupNameT = Aws::String>
186 void SetParameterGroupName(ParameterGroupNameT&& value) {
187 m_parameterGroupNameHasBeenSet = true;
188 m_parameterGroupName = std::forward<ParameterGroupNameT>(value);
189 }
190 template <typename ParameterGroupNameT = Aws::String>
191 ClusterConfiguration& WithParameterGroupName(ParameterGroupNameT&& value) {
192 SetParameterGroupName(std::forward<ParameterGroupNameT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetSubnetGroupName() const { return m_subnetGroupName; }
202 inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; }
203 template <typename SubnetGroupNameT = Aws::String>
204 void SetSubnetGroupName(SubnetGroupNameT&& value) {
205 m_subnetGroupNameHasBeenSet = true;
206 m_subnetGroupName = std::forward<SubnetGroupNameT>(value);
207 }
208 template <typename SubnetGroupNameT = Aws::String>
209 ClusterConfiguration& WithSubnetGroupName(SubnetGroupNameT&& value) {
210 SetSubnetGroupName(std::forward<SubnetGroupNameT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::String& GetVpcId() const { return m_vpcId; }
220 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
221 template <typename VpcIdT = Aws::String>
222 void SetVpcId(VpcIdT&& value) {
223 m_vpcIdHasBeenSet = true;
224 m_vpcId = std::forward<VpcIdT>(value);
225 }
226 template <typename VpcIdT = Aws::String>
228 SetVpcId(std::forward<VpcIdT>(value));
229 return *this;
230 }
232
234
237 inline int64_t GetSnapshotRetentionLimit() const { return m_snapshotRetentionLimit; }
238 inline bool SnapshotRetentionLimitHasBeenSet() const { return m_snapshotRetentionLimitHasBeenSet; }
239 inline void SetSnapshotRetentionLimit(int64_t value) {
240 m_snapshotRetentionLimitHasBeenSet = true;
241 m_snapshotRetentionLimit = value;
242 }
245 return *this;
246 }
248
250
253 inline const Aws::String& GetSnapshotWindow() const { return m_snapshotWindow; }
254 inline bool SnapshotWindowHasBeenSet() const { return m_snapshotWindowHasBeenSet; }
255 template <typename SnapshotWindowT = Aws::String>
256 void SetSnapshotWindow(SnapshotWindowT&& value) {
257 m_snapshotWindowHasBeenSet = true;
258 m_snapshotWindow = std::forward<SnapshotWindowT>(value);
259 }
260 template <typename SnapshotWindowT = Aws::String>
261 ClusterConfiguration& WithSnapshotWindow(SnapshotWindowT&& value) {
262 SetSnapshotWindow(std::forward<SnapshotWindowT>(value));
263 return *this;
264 }
266
268
271 inline int64_t GetNumShards() const { return m_numShards; }
272 inline bool NumShardsHasBeenSet() const { return m_numShardsHasBeenSet; }
273 inline void SetNumShards(int64_t value) {
274 m_numShardsHasBeenSet = true;
275 m_numShards = value;
276 }
277 inline ClusterConfiguration& WithNumShards(int64_t value) {
278 SetNumShards(value);
279 return *this;
280 }
282
284
287 inline const Aws::Vector<ShardDetail>& GetShards() const { return m_shards; }
288 inline bool ShardsHasBeenSet() const { return m_shardsHasBeenSet; }
289 template <typename ShardsT = Aws::Vector<ShardDetail>>
290 void SetShards(ShardsT&& value) {
291 m_shardsHasBeenSet = true;
292 m_shards = std::forward<ShardsT>(value);
293 }
294 template <typename ShardsT = Aws::Vector<ShardDetail>>
296 SetShards(std::forward<ShardsT>(value));
297 return *this;
298 }
299 template <typename ShardsT = ShardDetail>
300 ClusterConfiguration& AddShards(ShardsT&& value) {
301 m_shardsHasBeenSet = true;
302 m_shards.emplace_back(std::forward<ShardsT>(value));
303 return *this;
304 }
306
308
312 inline const Aws::String& GetMultiRegionParameterGroupName() const { return m_multiRegionParameterGroupName; }
313 inline bool MultiRegionParameterGroupNameHasBeenSet() const { return m_multiRegionParameterGroupNameHasBeenSet; }
314 template <typename MultiRegionParameterGroupNameT = Aws::String>
315 void SetMultiRegionParameterGroupName(MultiRegionParameterGroupNameT&& value) {
316 m_multiRegionParameterGroupNameHasBeenSet = true;
317 m_multiRegionParameterGroupName = std::forward<MultiRegionParameterGroupNameT>(value);
318 }
319 template <typename MultiRegionParameterGroupNameT = Aws::String>
320 ClusterConfiguration& WithMultiRegionParameterGroupName(MultiRegionParameterGroupNameT&& value) {
321 SetMultiRegionParameterGroupName(std::forward<MultiRegionParameterGroupNameT>(value));
322 return *this;
323 }
325
327
331 inline const Aws::String& GetMultiRegionClusterName() const { return m_multiRegionClusterName; }
332 inline bool MultiRegionClusterNameHasBeenSet() const { return m_multiRegionClusterNameHasBeenSet; }
333 template <typename MultiRegionClusterNameT = Aws::String>
334 void SetMultiRegionClusterName(MultiRegionClusterNameT&& value) {
335 m_multiRegionClusterNameHasBeenSet = true;
336 m_multiRegionClusterName = std::forward<MultiRegionClusterNameT>(value);
337 }
338 template <typename MultiRegionClusterNameT = Aws::String>
339 ClusterConfiguration& WithMultiRegionClusterName(MultiRegionClusterNameT&& value) {
340 SetMultiRegionClusterName(std::forward<MultiRegionClusterNameT>(value));
341 return *this;
342 }
344 private:
345 Aws::String m_name;
346
347 Aws::String m_description;
348
349 Aws::String m_nodeType;
350
351 Aws::String m_engine;
352
353 Aws::String m_engineVersion;
354
355 Aws::String m_maintenanceWindow;
356
357 Aws::String m_topicArn;
358
359 int64_t m_port{0};
360
361 Aws::String m_parameterGroupName;
362
363 Aws::String m_subnetGroupName;
364
365 Aws::String m_vpcId;
366
367 int64_t m_snapshotRetentionLimit{0};
368
369 Aws::String m_snapshotWindow;
370
371 int64_t m_numShards{0};
372
374
375 Aws::String m_multiRegionParameterGroupName;
376
377 Aws::String m_multiRegionClusterName;
378 bool m_nameHasBeenSet = false;
379 bool m_descriptionHasBeenSet = false;
380 bool m_nodeTypeHasBeenSet = false;
381 bool m_engineHasBeenSet = false;
382 bool m_engineVersionHasBeenSet = false;
383 bool m_maintenanceWindowHasBeenSet = false;
384 bool m_topicArnHasBeenSet = false;
385 bool m_portHasBeenSet = false;
386 bool m_parameterGroupNameHasBeenSet = false;
387 bool m_subnetGroupNameHasBeenSet = false;
388 bool m_vpcIdHasBeenSet = false;
389 bool m_snapshotRetentionLimitHasBeenSet = false;
390 bool m_snapshotWindowHasBeenSet = false;
391 bool m_numShardsHasBeenSet = false;
392 bool m_shardsHasBeenSet = false;
393 bool m_multiRegionParameterGroupNameHasBeenSet = false;
394 bool m_multiRegionClusterNameHasBeenSet = false;
395};
396
397} // namespace Model
398} // namespace MemoryDB
399} // namespace Aws
AWS_MEMORYDB_API ClusterConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_MEMORYDB_API ClusterConfiguration()=default
ClusterConfiguration & WithNumShards(int64_t value)
ClusterConfiguration & WithTopicArn(TopicArnT &&value)
ClusterConfiguration & WithSnapshotWindow(SnapshotWindowT &&value)
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetMultiRegionClusterName(MultiRegionClusterNameT &&value)
ClusterConfiguration & WithPort(int64_t value)
void SetMultiRegionParameterGroupName(MultiRegionParameterGroupNameT &&value)
void SetSnapshotWindow(SnapshotWindowT &&value)
ClusterConfiguration & WithVpcId(VpcIdT &&value)
const Aws::String & GetMultiRegionParameterGroupName() const
ClusterConfiguration & WithNodeType(NodeTypeT &&value)
void SetMaintenanceWindow(MaintenanceWindowT &&value)
const Aws::Vector< ShardDetail > & GetShards() const
ClusterConfiguration & WithSnapshotRetentionLimit(int64_t value)
ClusterConfiguration & WithName(NameT &&value)
ClusterConfiguration & WithDescription(DescriptionT &&value)
ClusterConfiguration & WithShards(ShardsT &&value)
ClusterConfiguration & WithMaintenanceWindow(MaintenanceWindowT &&value)
void SetParameterGroupName(ParameterGroupNameT &&value)
AWS_MEMORYDB_API ClusterConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ClusterConfiguration & AddShards(ShardsT &&value)
ClusterConfiguration & WithEngine(EngineT &&value)
ClusterConfiguration & WithMultiRegionClusterName(MultiRegionClusterNameT &&value)
ClusterConfiguration & WithMultiRegionParameterGroupName(MultiRegionParameterGroupNameT &&value)
ClusterConfiguration & WithParameterGroupName(ParameterGroupNameT &&value)
void SetSubnetGroupName(SubnetGroupNameT &&value)
const Aws::String & GetMultiRegionClusterName() const
ClusterConfiguration & WithSubnetGroupName(SubnetGroupNameT &&value)
ClusterConfiguration & WithEngineVersion(EngineVersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector