AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Snapshot.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/elasticache/model/AutomaticFailoverStatus.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/elasticache/model/DataTieringStatus.h>
14#include <aws/elasticache/model/NodeSnapshot.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace ElastiCache
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_ELASTICACHE_API Snapshot();
41 AWS_ELASTICACHE_API Snapshot(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_ELASTICACHE_API Snapshot& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
53 inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; }
54 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
55 inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; }
56 inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::move(value); }
57 inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); }
58 inline Snapshot& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;}
59 inline Snapshot& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;}
60 inline Snapshot& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;}
62
64
67 inline const Aws::String& GetReplicationGroupId() const{ return m_replicationGroupId; }
68 inline bool ReplicationGroupIdHasBeenSet() const { return m_replicationGroupIdHasBeenSet; }
69 inline void SetReplicationGroupId(const Aws::String& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = value; }
70 inline void SetReplicationGroupId(Aws::String&& value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId = std::move(value); }
71 inline void SetReplicationGroupId(const char* value) { m_replicationGroupIdHasBeenSet = true; m_replicationGroupId.assign(value); }
72 inline Snapshot& WithReplicationGroupId(const Aws::String& value) { SetReplicationGroupId(value); return *this;}
73 inline Snapshot& WithReplicationGroupId(Aws::String&& value) { SetReplicationGroupId(std::move(value)); return *this;}
74 inline Snapshot& WithReplicationGroupId(const char* value) { SetReplicationGroupId(value); return *this;}
76
78
81 inline const Aws::String& GetReplicationGroupDescription() const{ return m_replicationGroupDescription; }
82 inline bool ReplicationGroupDescriptionHasBeenSet() const { return m_replicationGroupDescriptionHasBeenSet; }
83 inline void SetReplicationGroupDescription(const Aws::String& value) { m_replicationGroupDescriptionHasBeenSet = true; m_replicationGroupDescription = value; }
84 inline void SetReplicationGroupDescription(Aws::String&& value) { m_replicationGroupDescriptionHasBeenSet = true; m_replicationGroupDescription = std::move(value); }
85 inline void SetReplicationGroupDescription(const char* value) { m_replicationGroupDescriptionHasBeenSet = true; m_replicationGroupDescription.assign(value); }
87 inline Snapshot& WithReplicationGroupDescription(Aws::String&& value) { SetReplicationGroupDescription(std::move(value)); return *this;}
88 inline Snapshot& WithReplicationGroupDescription(const char* value) { SetReplicationGroupDescription(value); return *this;}
90
92
95 inline const Aws::String& GetCacheClusterId() const{ return m_cacheClusterId; }
96 inline bool CacheClusterIdHasBeenSet() const { return m_cacheClusterIdHasBeenSet; }
97 inline void SetCacheClusterId(const Aws::String& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = value; }
98 inline void SetCacheClusterId(Aws::String&& value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId = std::move(value); }
99 inline void SetCacheClusterId(const char* value) { m_cacheClusterIdHasBeenSet = true; m_cacheClusterId.assign(value); }
100 inline Snapshot& WithCacheClusterId(const Aws::String& value) { SetCacheClusterId(value); return *this;}
101 inline Snapshot& WithCacheClusterId(Aws::String&& value) { SetCacheClusterId(std::move(value)); return *this;}
102 inline Snapshot& WithCacheClusterId(const char* value) { SetCacheClusterId(value); return *this;}
104
106
111 inline const Aws::String& GetSnapshotStatus() const{ return m_snapshotStatus; }
112 inline bool SnapshotStatusHasBeenSet() const { return m_snapshotStatusHasBeenSet; }
113 inline void SetSnapshotStatus(const Aws::String& value) { m_snapshotStatusHasBeenSet = true; m_snapshotStatus = value; }
114 inline void SetSnapshotStatus(Aws::String&& value) { m_snapshotStatusHasBeenSet = true; m_snapshotStatus = std::move(value); }
115 inline void SetSnapshotStatus(const char* value) { m_snapshotStatusHasBeenSet = true; m_snapshotStatus.assign(value); }
116 inline Snapshot& WithSnapshotStatus(const Aws::String& value) { SetSnapshotStatus(value); return *this;}
117 inline Snapshot& WithSnapshotStatus(Aws::String&& value) { SetSnapshotStatus(std::move(value)); return *this;}
118 inline Snapshot& WithSnapshotStatus(const char* value) { SetSnapshotStatus(value); return *this;}
120
122
126 inline const Aws::String& GetSnapshotSource() const{ return m_snapshotSource; }
127 inline bool SnapshotSourceHasBeenSet() const { return m_snapshotSourceHasBeenSet; }
128 inline void SetSnapshotSource(const Aws::String& value) { m_snapshotSourceHasBeenSet = true; m_snapshotSource = value; }
129 inline void SetSnapshotSource(Aws::String&& value) { m_snapshotSourceHasBeenSet = true; m_snapshotSource = std::move(value); }
130 inline void SetSnapshotSource(const char* value) { m_snapshotSourceHasBeenSet = true; m_snapshotSource.assign(value); }
131 inline Snapshot& WithSnapshotSource(const Aws::String& value) { SetSnapshotSource(value); return *this;}
132 inline Snapshot& WithSnapshotSource(Aws::String&& value) { SetSnapshotSource(std::move(value)); return *this;}
133 inline Snapshot& WithSnapshotSource(const char* value) { SetSnapshotSource(value); return *this;}
135
137
212 inline const Aws::String& GetCacheNodeType() const{ return m_cacheNodeType; }
213 inline bool CacheNodeTypeHasBeenSet() const { return m_cacheNodeTypeHasBeenSet; }
214 inline void SetCacheNodeType(const Aws::String& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = value; }
215 inline void SetCacheNodeType(Aws::String&& value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType = std::move(value); }
216 inline void SetCacheNodeType(const char* value) { m_cacheNodeTypeHasBeenSet = true; m_cacheNodeType.assign(value); }
217 inline Snapshot& WithCacheNodeType(const Aws::String& value) { SetCacheNodeType(value); return *this;}
218 inline Snapshot& WithCacheNodeType(Aws::String&& value) { SetCacheNodeType(std::move(value)); return *this;}
219 inline Snapshot& WithCacheNodeType(const char* value) { SetCacheNodeType(value); return *this;}
221
223
227 inline const Aws::String& GetEngine() const{ return m_engine; }
228 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
229 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
230 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
231 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
232 inline Snapshot& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
233 inline Snapshot& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
234 inline Snapshot& WithEngine(const char* value) { SetEngine(value); return *this;}
236
238
242 inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
243 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
244 inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
245 inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
246 inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
247 inline Snapshot& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
248 inline Snapshot& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
249 inline Snapshot& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
251
253
258 inline int GetNumCacheNodes() const{ return m_numCacheNodes; }
259 inline bool NumCacheNodesHasBeenSet() const { return m_numCacheNodesHasBeenSet; }
260 inline void SetNumCacheNodes(int value) { m_numCacheNodesHasBeenSet = true; m_numCacheNodes = value; }
261 inline Snapshot& WithNumCacheNodes(int value) { SetNumCacheNodes(value); return *this;}
263
265
268 inline const Aws::String& GetPreferredAvailabilityZone() const{ return m_preferredAvailabilityZone; }
269 inline bool PreferredAvailabilityZoneHasBeenSet() const { return m_preferredAvailabilityZoneHasBeenSet; }
270 inline void SetPreferredAvailabilityZone(const Aws::String& value) { m_preferredAvailabilityZoneHasBeenSet = true; m_preferredAvailabilityZone = value; }
271 inline void SetPreferredAvailabilityZone(Aws::String&& value) { m_preferredAvailabilityZoneHasBeenSet = true; m_preferredAvailabilityZone = std::move(value); }
272 inline void SetPreferredAvailabilityZone(const char* value) { m_preferredAvailabilityZoneHasBeenSet = true; m_preferredAvailabilityZone.assign(value); }
274 inline Snapshot& WithPreferredAvailabilityZone(Aws::String&& value) { SetPreferredAvailabilityZone(std::move(value)); return *this;}
275 inline Snapshot& WithPreferredAvailabilityZone(const char* value) { SetPreferredAvailabilityZone(value); return *this;}
277
279
282 inline const Aws::String& GetPreferredOutpostArn() const{ return m_preferredOutpostArn; }
283 inline bool PreferredOutpostArnHasBeenSet() const { return m_preferredOutpostArnHasBeenSet; }
284 inline void SetPreferredOutpostArn(const Aws::String& value) { m_preferredOutpostArnHasBeenSet = true; m_preferredOutpostArn = value; }
285 inline void SetPreferredOutpostArn(Aws::String&& value) { m_preferredOutpostArnHasBeenSet = true; m_preferredOutpostArn = std::move(value); }
286 inline void SetPreferredOutpostArn(const char* value) { m_preferredOutpostArnHasBeenSet = true; m_preferredOutpostArn.assign(value); }
287 inline Snapshot& WithPreferredOutpostArn(const Aws::String& value) { SetPreferredOutpostArn(value); return *this;}
288 inline Snapshot& WithPreferredOutpostArn(Aws::String&& value) { SetPreferredOutpostArn(std::move(value)); return *this;}
289 inline Snapshot& WithPreferredOutpostArn(const char* value) { SetPreferredOutpostArn(value); return *this;}
291
293
296 inline const Aws::Utils::DateTime& GetCacheClusterCreateTime() const{ return m_cacheClusterCreateTime; }
297 inline bool CacheClusterCreateTimeHasBeenSet() const { return m_cacheClusterCreateTimeHasBeenSet; }
298 inline void SetCacheClusterCreateTime(const Aws::Utils::DateTime& value) { m_cacheClusterCreateTimeHasBeenSet = true; m_cacheClusterCreateTime = value; }
299 inline void SetCacheClusterCreateTime(Aws::Utils::DateTime&& value) { m_cacheClusterCreateTimeHasBeenSet = true; m_cacheClusterCreateTime = std::move(value); }
301 inline Snapshot& WithCacheClusterCreateTime(Aws::Utils::DateTime&& value) { SetCacheClusterCreateTime(std::move(value)); return *this;}
303
305
315 inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
316 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
317 inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
318 inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
319 inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
321 inline Snapshot& WithPreferredMaintenanceWindow(Aws::String&& value) { SetPreferredMaintenanceWindow(std::move(value)); return *this;}
322 inline Snapshot& WithPreferredMaintenanceWindow(const char* value) { SetPreferredMaintenanceWindow(value); return *this;}
324
326
330 inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
331 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
332 inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
333 inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
334 inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
335 inline Snapshot& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
336 inline Snapshot& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
337 inline Snapshot& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
339
341
344 inline int GetPort() const{ return m_port; }
345 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
346 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
347 inline Snapshot& WithPort(int value) { SetPort(value); return *this;}
349
351
354 inline const Aws::String& GetCacheParameterGroupName() const{ return m_cacheParameterGroupName; }
355 inline bool CacheParameterGroupNameHasBeenSet() const { return m_cacheParameterGroupNameHasBeenSet; }
356 inline void SetCacheParameterGroupName(const Aws::String& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = value; }
357 inline void SetCacheParameterGroupName(Aws::String&& value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName = std::move(value); }
358 inline void SetCacheParameterGroupName(const char* value) { m_cacheParameterGroupNameHasBeenSet = true; m_cacheParameterGroupName.assign(value); }
359 inline Snapshot& WithCacheParameterGroupName(const Aws::String& value) { SetCacheParameterGroupName(value); return *this;}
360 inline Snapshot& WithCacheParameterGroupName(Aws::String&& value) { SetCacheParameterGroupName(std::move(value)); return *this;}
361 inline Snapshot& WithCacheParameterGroupName(const char* value) { SetCacheParameterGroupName(value); return *this;}
363
365
368 inline const Aws::String& GetCacheSubnetGroupName() const{ return m_cacheSubnetGroupName; }
369 inline bool CacheSubnetGroupNameHasBeenSet() const { return m_cacheSubnetGroupNameHasBeenSet; }
370 inline void SetCacheSubnetGroupName(const Aws::String& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = value; }
371 inline void SetCacheSubnetGroupName(Aws::String&& value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName = std::move(value); }
372 inline void SetCacheSubnetGroupName(const char* value) { m_cacheSubnetGroupNameHasBeenSet = true; m_cacheSubnetGroupName.assign(value); }
373 inline Snapshot& WithCacheSubnetGroupName(const Aws::String& value) { SetCacheSubnetGroupName(value); return *this;}
374 inline Snapshot& WithCacheSubnetGroupName(Aws::String&& value) { SetCacheSubnetGroupName(std::move(value)); return *this;}
375 inline Snapshot& WithCacheSubnetGroupName(const char* value) { SetCacheSubnetGroupName(value); return *this;}
377
379
383 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
384 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
385 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
386 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
387 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
388 inline Snapshot& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
389 inline Snapshot& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
390 inline Snapshot& WithVpcId(const char* value) { SetVpcId(value); return *this;}
392
394
400 inline bool GetAutoMinorVersionUpgrade() const{ return m_autoMinorVersionUpgrade; }
401 inline bool AutoMinorVersionUpgradeHasBeenSet() const { return m_autoMinorVersionUpgradeHasBeenSet; }
402 inline void SetAutoMinorVersionUpgrade(bool value) { m_autoMinorVersionUpgradeHasBeenSet = true; m_autoMinorVersionUpgrade = value; }
403 inline Snapshot& WithAutoMinorVersionUpgrade(bool value) { SetAutoMinorVersionUpgrade(value); return *this;}
405
407
416 inline int GetSnapshotRetentionLimit() const{ return m_snapshotRetentionLimit; }
417 inline bool SnapshotRetentionLimitHasBeenSet() const { return m_snapshotRetentionLimitHasBeenSet; }
418 inline void SetSnapshotRetentionLimit(int value) { m_snapshotRetentionLimitHasBeenSet = true; m_snapshotRetentionLimit = value; }
419 inline Snapshot& WithSnapshotRetentionLimit(int value) { SetSnapshotRetentionLimit(value); return *this;}
421
423
427 inline const Aws::String& GetSnapshotWindow() const{ return m_snapshotWindow; }
428 inline bool SnapshotWindowHasBeenSet() const { return m_snapshotWindowHasBeenSet; }
429 inline void SetSnapshotWindow(const Aws::String& value) { m_snapshotWindowHasBeenSet = true; m_snapshotWindow = value; }
430 inline void SetSnapshotWindow(Aws::String&& value) { m_snapshotWindowHasBeenSet = true; m_snapshotWindow = std::move(value); }
431 inline void SetSnapshotWindow(const char* value) { m_snapshotWindowHasBeenSet = true; m_snapshotWindow.assign(value); }
432 inline Snapshot& WithSnapshotWindow(const Aws::String& value) { SetSnapshotWindow(value); return *this;}
433 inline Snapshot& WithSnapshotWindow(Aws::String&& value) { SetSnapshotWindow(std::move(value)); return *this;}
434 inline Snapshot& WithSnapshotWindow(const char* value) { SetSnapshotWindow(value); return *this;}
436
438
443 inline int GetNumNodeGroups() const{ return m_numNodeGroups; }
444 inline bool NumNodeGroupsHasBeenSet() const { return m_numNodeGroupsHasBeenSet; }
445 inline void SetNumNodeGroups(int value) { m_numNodeGroupsHasBeenSet = true; m_numNodeGroups = value; }
446 inline Snapshot& WithNumNodeGroups(int value) { SetNumNodeGroups(value); return *this;}
448
450
454 inline const AutomaticFailoverStatus& GetAutomaticFailover() const{ return m_automaticFailover; }
455 inline bool AutomaticFailoverHasBeenSet() const { return m_automaticFailoverHasBeenSet; }
456 inline void SetAutomaticFailover(const AutomaticFailoverStatus& value) { m_automaticFailoverHasBeenSet = true; m_automaticFailover = value; }
457 inline void SetAutomaticFailover(AutomaticFailoverStatus&& value) { m_automaticFailoverHasBeenSet = true; m_automaticFailover = std::move(value); }
458 inline Snapshot& WithAutomaticFailover(const AutomaticFailoverStatus& value) { SetAutomaticFailover(value); return *this;}
459 inline Snapshot& WithAutomaticFailover(AutomaticFailoverStatus&& value) { SetAutomaticFailover(std::move(value)); return *this;}
461
463
466 inline const Aws::Vector<NodeSnapshot>& GetNodeSnapshots() const{ return m_nodeSnapshots; }
467 inline bool NodeSnapshotsHasBeenSet() const { return m_nodeSnapshotsHasBeenSet; }
468 inline void SetNodeSnapshots(const Aws::Vector<NodeSnapshot>& value) { m_nodeSnapshotsHasBeenSet = true; m_nodeSnapshots = value; }
469 inline void SetNodeSnapshots(Aws::Vector<NodeSnapshot>&& value) { m_nodeSnapshotsHasBeenSet = true; m_nodeSnapshots = std::move(value); }
470 inline Snapshot& WithNodeSnapshots(const Aws::Vector<NodeSnapshot>& value) { SetNodeSnapshots(value); return *this;}
471 inline Snapshot& WithNodeSnapshots(Aws::Vector<NodeSnapshot>&& value) { SetNodeSnapshots(std::move(value)); return *this;}
472 inline Snapshot& AddNodeSnapshots(const NodeSnapshot& value) { m_nodeSnapshotsHasBeenSet = true; m_nodeSnapshots.push_back(value); return *this; }
473 inline Snapshot& AddNodeSnapshots(NodeSnapshot&& value) { m_nodeSnapshotsHasBeenSet = true; m_nodeSnapshots.push_back(std::move(value)); return *this; }
475
477
480 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
481 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
482 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
483 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
484 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
485 inline Snapshot& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
486 inline Snapshot& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
487 inline Snapshot& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
489
491
494 inline const Aws::String& GetARN() const{ return m_aRN; }
495 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
496 inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
497 inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
498 inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
499 inline Snapshot& WithARN(const Aws::String& value) { SetARN(value); return *this;}
500 inline Snapshot& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
501 inline Snapshot& WithARN(const char* value) { SetARN(value); return *this;}
503
505
512 inline const DataTieringStatus& GetDataTiering() const{ return m_dataTiering; }
513 inline bool DataTieringHasBeenSet() const { return m_dataTieringHasBeenSet; }
514 inline void SetDataTiering(const DataTieringStatus& value) { m_dataTieringHasBeenSet = true; m_dataTiering = value; }
515 inline void SetDataTiering(DataTieringStatus&& value) { m_dataTieringHasBeenSet = true; m_dataTiering = std::move(value); }
516 inline Snapshot& WithDataTiering(const DataTieringStatus& value) { SetDataTiering(value); return *this;}
517 inline Snapshot& WithDataTiering(DataTieringStatus&& value) { SetDataTiering(std::move(value)); return *this;}
519 private:
520
521 Aws::String m_snapshotName;
522 bool m_snapshotNameHasBeenSet = false;
523
524 Aws::String m_replicationGroupId;
525 bool m_replicationGroupIdHasBeenSet = false;
526
527 Aws::String m_replicationGroupDescription;
528 bool m_replicationGroupDescriptionHasBeenSet = false;
529
530 Aws::String m_cacheClusterId;
531 bool m_cacheClusterIdHasBeenSet = false;
532
533 Aws::String m_snapshotStatus;
534 bool m_snapshotStatusHasBeenSet = false;
535
536 Aws::String m_snapshotSource;
537 bool m_snapshotSourceHasBeenSet = false;
538
539 Aws::String m_cacheNodeType;
540 bool m_cacheNodeTypeHasBeenSet = false;
541
542 Aws::String m_engine;
543 bool m_engineHasBeenSet = false;
544
545 Aws::String m_engineVersion;
546 bool m_engineVersionHasBeenSet = false;
547
548 int m_numCacheNodes;
549 bool m_numCacheNodesHasBeenSet = false;
550
551 Aws::String m_preferredAvailabilityZone;
552 bool m_preferredAvailabilityZoneHasBeenSet = false;
553
554 Aws::String m_preferredOutpostArn;
555 bool m_preferredOutpostArnHasBeenSet = false;
556
557 Aws::Utils::DateTime m_cacheClusterCreateTime;
558 bool m_cacheClusterCreateTimeHasBeenSet = false;
559
560 Aws::String m_preferredMaintenanceWindow;
561 bool m_preferredMaintenanceWindowHasBeenSet = false;
562
563 Aws::String m_topicArn;
564 bool m_topicArnHasBeenSet = false;
565
566 int m_port;
567 bool m_portHasBeenSet = false;
568
569 Aws::String m_cacheParameterGroupName;
570 bool m_cacheParameterGroupNameHasBeenSet = false;
571
572 Aws::String m_cacheSubnetGroupName;
573 bool m_cacheSubnetGroupNameHasBeenSet = false;
574
575 Aws::String m_vpcId;
576 bool m_vpcIdHasBeenSet = false;
577
578 bool m_autoMinorVersionUpgrade;
579 bool m_autoMinorVersionUpgradeHasBeenSet = false;
580
581 int m_snapshotRetentionLimit;
582 bool m_snapshotRetentionLimitHasBeenSet = false;
583
584 Aws::String m_snapshotWindow;
585 bool m_snapshotWindowHasBeenSet = false;
586
587 int m_numNodeGroups;
588 bool m_numNodeGroupsHasBeenSet = false;
589
590 AutomaticFailoverStatus m_automaticFailover;
591 bool m_automaticFailoverHasBeenSet = false;
592
593 Aws::Vector<NodeSnapshot> m_nodeSnapshots;
594 bool m_nodeSnapshotsHasBeenSet = false;
595
596 Aws::String m_kmsKeyId;
597 bool m_kmsKeyIdHasBeenSet = false;
598
599 Aws::String m_aRN;
600 bool m_aRNHasBeenSet = false;
601
602 DataTieringStatus m_dataTiering;
603 bool m_dataTieringHasBeenSet = false;
604 };
605
606} // namespace Model
607} // namespace ElastiCache
608} // namespace Aws
void SetVpcId(Aws::String &&value)
Definition Snapshot.h:386
Snapshot & WithCacheParameterGroupName(const Aws::String &value)
Definition Snapshot.h:359
Snapshot & WithReplicationGroupDescription(const char *value)
Definition Snapshot.h:88
void SetTopicArn(const char *value)
Definition Snapshot.h:334
void SetAutomaticFailover(AutomaticFailoverStatus &&value)
Definition Snapshot.h:457
const Aws::String & GetReplicationGroupId() const
Definition Snapshot.h:67
void SetSnapshotStatus(const Aws::String &value)
Definition Snapshot.h:113
const Aws::String & GetSnapshotSource() const
Definition Snapshot.h:126
Snapshot & WithReplicationGroupId(const char *value)
Definition Snapshot.h:74
void SetSnapshotWindow(const char *value)
Definition Snapshot.h:431
const Aws::String & GetCacheParameterGroupName() const
Definition Snapshot.h:354
Snapshot & WithPreferredOutpostArn(const Aws::String &value)
Definition Snapshot.h:287
Snapshot & WithSnapshotWindow(const Aws::String &value)
Definition Snapshot.h:432
void SetEngineVersion(Aws::String &&value)
Definition Snapshot.h:245
Snapshot & WithEngineVersion(Aws::String &&value)
Definition Snapshot.h:248
Snapshot & WithPort(int value)
Definition Snapshot.h:347
Snapshot & WithSnapshotName(const Aws::String &value)
Definition Snapshot.h:58
Snapshot & WithPreferredMaintenanceWindow(const Aws::String &value)
Definition Snapshot.h:320
Snapshot & WithDataTiering(DataTieringStatus &&value)
Definition Snapshot.h:517
Snapshot & WithEngine(const char *value)
Definition Snapshot.h:234
const Aws::String & GetVpcId() const
Definition Snapshot.h:383
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetReplicationGroupDescription(const Aws::String &value)
Definition Snapshot.h:83
void SetEngine(const Aws::String &value)
Definition Snapshot.h:229
Snapshot & AddNodeSnapshots(const NodeSnapshot &value)
Definition Snapshot.h:472
Snapshot & WithEngineVersion(const char *value)
Definition Snapshot.h:249
const Aws::String & GetCacheSubnetGroupName() const
Definition Snapshot.h:368
const AutomaticFailoverStatus & GetAutomaticFailover() const
Definition Snapshot.h:454
AWS_ELASTICACHE_API Snapshot(const Aws::Utils::Xml::XmlNode &xmlNode)
Snapshot & WithCacheClusterId(Aws::String &&value)
Definition Snapshot.h:101
void SetPreferredAvailabilityZone(const char *value)
Definition Snapshot.h:272
bool AutoMinorVersionUpgradeHasBeenSet() const
Definition Snapshot.h:401
Snapshot & WithKmsKeyId(const char *value)
Definition Snapshot.h:487
Snapshot & WithSnapshotWindow(Aws::String &&value)
Definition Snapshot.h:433
const DataTieringStatus & GetDataTiering() const
Definition Snapshot.h:512
void SetSnapshotStatus(const char *value)
Definition Snapshot.h:115
void SetPreferredOutpostArn(Aws::String &&value)
Definition Snapshot.h:285
Snapshot & WithAutomaticFailover(const AutomaticFailoverStatus &value)
Definition Snapshot.h:458
void SetReplicationGroupId(Aws::String &&value)
Definition Snapshot.h:70
void SetSnapshotWindow(Aws::String &&value)
Definition Snapshot.h:430
Snapshot & WithSnapshotSource(Aws::String &&value)
Definition Snapshot.h:132
Snapshot & WithReplicationGroupId(Aws::String &&value)
Definition Snapshot.h:73
bool CacheClusterIdHasBeenSet() const
Definition Snapshot.h:96
Snapshot & WithPreferredMaintenanceWindow(Aws::String &&value)
Definition Snapshot.h:321
bool CacheParameterGroupNameHasBeenSet() const
Definition Snapshot.h:355
Snapshot & WithSnapshotStatus(Aws::String &&value)
Definition Snapshot.h:117
Snapshot & WithTopicArn(const Aws::String &value)
Definition Snapshot.h:335
const Aws::String & GetReplicationGroupDescription() const
Definition Snapshot.h:81
Snapshot & WithSnapshotName(const char *value)
Definition Snapshot.h:60
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Snapshot & WithARN(const char *value)
Definition Snapshot.h:501
Snapshot & WithTopicArn(const char *value)
Definition Snapshot.h:337
Snapshot & WithCacheClusterCreateTime(const Aws::Utils::DateTime &value)
Definition Snapshot.h:300
Snapshot & WithNumCacheNodes(int value)
Definition Snapshot.h:261
Snapshot & WithCacheClusterId(const char *value)
Definition Snapshot.h:102
Snapshot & WithTopicArn(Aws::String &&value)
Definition Snapshot.h:336
void SetARN(const Aws::String &value)
Definition Snapshot.h:496
Snapshot & WithARN(Aws::String &&value)
Definition Snapshot.h:500
const Aws::String & GetEngine() const
Definition Snapshot.h:227
Snapshot & WithCacheParameterGroupName(const char *value)
Definition Snapshot.h:361
Snapshot & WithCacheNodeType(const char *value)
Definition Snapshot.h:219
void SetTopicArn(Aws::String &&value)
Definition Snapshot.h:333
void SetVpcId(const char *value)
Definition Snapshot.h:387
void SetEngineVersion(const char *value)
Definition Snapshot.h:246
bool GetAutoMinorVersionUpgrade() const
Definition Snapshot.h:400
const Aws::String & GetSnapshotWindow() const
Definition Snapshot.h:427
Snapshot & WithEngine(const Aws::String &value)
Definition Snapshot.h:232
void SetCacheClusterCreateTime(Aws::Utils::DateTime &&value)
Definition Snapshot.h:299
void SetReplicationGroupId(const Aws::String &value)
Definition Snapshot.h:69
const Aws::String & GetTopicArn() const
Definition Snapshot.h:330
AWS_ELASTICACHE_API Snapshot()
Snapshot & WithSnapshotSource(const char *value)
Definition Snapshot.h:133
const Aws::String & GetCacheClusterId() const
Definition Snapshot.h:95
Snapshot & WithVpcId(Aws::String &&value)
Definition Snapshot.h:389
void SetCacheSubnetGroupName(const char *value)
Definition Snapshot.h:372
const Aws::String & GetSnapshotStatus() const
Definition Snapshot.h:111
const Aws::String & GetPreferredOutpostArn() const
Definition Snapshot.h:282
void SetNodeSnapshots(Aws::Vector< NodeSnapshot > &&value)
Definition Snapshot.h:469
const Aws::String & GetPreferredAvailabilityZone() const
Definition Snapshot.h:268
Snapshot & WithNumNodeGroups(int value)
Definition Snapshot.h:446
void SetCacheParameterGroupName(Aws::String &&value)
Definition Snapshot.h:357
Snapshot & WithReplicationGroupId(const Aws::String &value)
Definition Snapshot.h:72
Snapshot & WithPreferredAvailabilityZone(const char *value)
Definition Snapshot.h:275
void SetCacheNodeType(Aws::String &&value)
Definition Snapshot.h:215
void SetPreferredOutpostArn(const Aws::String &value)
Definition Snapshot.h:284
void SetARN(const char *value)
Definition Snapshot.h:498
void SetPreferredAvailabilityZone(const Aws::String &value)
Definition Snapshot.h:270
void SetSnapshotSource(Aws::String &&value)
Definition Snapshot.h:129
Snapshot & WithVpcId(const char *value)
Definition Snapshot.h:390
const Aws::String & GetCacheNodeType() const
Definition Snapshot.h:212
void SetCacheClusterId(const char *value)
Definition Snapshot.h:99
void SetPreferredMaintenanceWindow(const Aws::String &value)
Definition Snapshot.h:317
Snapshot & WithSnapshotName(Aws::String &&value)
Definition Snapshot.h:59
void SetKmsKeyId(const Aws::String &value)
Definition Snapshot.h:482
Snapshot & WithReplicationGroupDescription(const Aws::String &value)
Definition Snapshot.h:86
void SetCacheNodeType(const Aws::String &value)
Definition Snapshot.h:214
void SetCacheParameterGroupName(const Aws::String &value)
Definition Snapshot.h:356
void SetPreferredMaintenanceWindow(const char *value)
Definition Snapshot.h:319
void SetCacheClusterId(const Aws::String &value)
Definition Snapshot.h:97
void SetSnapshotRetentionLimit(int value)
Definition Snapshot.h:418
Snapshot & WithSnapshotSource(const Aws::String &value)
Definition Snapshot.h:131
void SetSnapshotStatus(Aws::String &&value)
Definition Snapshot.h:114
void SetNodeSnapshots(const Aws::Vector< NodeSnapshot > &value)
Definition Snapshot.h:468
bool PreferredAvailabilityZoneHasBeenSet() const
Definition Snapshot.h:269
Snapshot & WithPreferredOutpostArn(Aws::String &&value)
Definition Snapshot.h:288
void SetKmsKeyId(Aws::String &&value)
Definition Snapshot.h:483
bool AutomaticFailoverHasBeenSet() const
Definition Snapshot.h:455
void SetSnapshotSource(const Aws::String &value)
Definition Snapshot.h:128
bool SnapshotRetentionLimitHasBeenSet() const
Definition Snapshot.h:417
Snapshot & WithVpcId(const Aws::String &value)
Definition Snapshot.h:388
void SetPreferredOutpostArn(const char *value)
Definition Snapshot.h:286
Snapshot & WithCacheSubnetGroupName(const Aws::String &value)
Definition Snapshot.h:373
void SetAutomaticFailover(const AutomaticFailoverStatus &value)
Definition Snapshot.h:456
Snapshot & WithAutomaticFailover(AutomaticFailoverStatus &&value)
Definition Snapshot.h:459
void SetCacheClusterCreateTime(const Aws::Utils::DateTime &value)
Definition Snapshot.h:298
bool PreferredOutpostArnHasBeenSet() const
Definition Snapshot.h:283
const Aws::String & GetARN() const
Definition Snapshot.h:494
Snapshot & WithCacheNodeType(const Aws::String &value)
Definition Snapshot.h:217
void SetPreferredMaintenanceWindow(Aws::String &&value)
Definition Snapshot.h:318
Snapshot & WithCacheParameterGroupName(Aws::String &&value)
Definition Snapshot.h:360
void SetReplicationGroupId(const char *value)
Definition Snapshot.h:71
void SetTopicArn(const Aws::String &value)
Definition Snapshot.h:332
void SetARN(Aws::String &&value)
Definition Snapshot.h:497
void SetReplicationGroupDescription(const char *value)
Definition Snapshot.h:85
Snapshot & WithReplicationGroupDescription(Aws::String &&value)
Definition Snapshot.h:87
Snapshot & WithKmsKeyId(const Aws::String &value)
Definition Snapshot.h:485
Snapshot & WithEngine(Aws::String &&value)
Definition Snapshot.h:233
const Aws::Vector< NodeSnapshot > & GetNodeSnapshots() const
Definition Snapshot.h:466
void SetKmsKeyId(const char *value)
Definition Snapshot.h:484
void SetCacheSubnetGroupName(Aws::String &&value)
Definition Snapshot.h:371
Snapshot & WithNodeSnapshots(const Aws::Vector< NodeSnapshot > &value)
Definition Snapshot.h:470
void SetCacheParameterGroupName(const char *value)
Definition Snapshot.h:358
bool CacheClusterCreateTimeHasBeenSet() const
Definition Snapshot.h:297
Snapshot & WithARN(const Aws::String &value)
Definition Snapshot.h:499
Snapshot & WithCacheSubnetGroupName(const char *value)
Definition Snapshot.h:375
void SetEngineVersion(const Aws::String &value)
Definition Snapshot.h:244
Snapshot & WithPreferredAvailabilityZone(Aws::String &&value)
Definition Snapshot.h:274
void SetEngine(Aws::String &&value)
Definition Snapshot.h:230
bool ReplicationGroupIdHasBeenSet() const
Definition Snapshot.h:68
void SetSnapshotWindow(const Aws::String &value)
Definition Snapshot.h:429
void SetEngine(const char *value)
Definition Snapshot.h:231
void SetSnapshotName(const Aws::String &value)
Definition Snapshot.h:55
Snapshot & AddNodeSnapshots(NodeSnapshot &&value)
Definition Snapshot.h:473
void SetSnapshotName(const char *value)
Definition Snapshot.h:57
Snapshot & WithCacheSubnetGroupName(Aws::String &&value)
Definition Snapshot.h:374
void SetVpcId(const Aws::String &value)
Definition Snapshot.h:385
const Aws::String & GetPreferredMaintenanceWindow() const
Definition Snapshot.h:315
const Aws::String & GetKmsKeyId() const
Definition Snapshot.h:480
void SetCacheNodeType(const char *value)
Definition Snapshot.h:216
Snapshot & WithDataTiering(const DataTieringStatus &value)
Definition Snapshot.h:516
Snapshot & WithSnapshotStatus(const Aws::String &value)
Definition Snapshot.h:116
Snapshot & WithPreferredAvailabilityZone(const Aws::String &value)
Definition Snapshot.h:273
Snapshot & WithSnapshotStatus(const char *value)
Definition Snapshot.h:118
Snapshot & WithSnapshotWindow(const char *value)
Definition Snapshot.h:434
bool CacheSubnetGroupNameHasBeenSet() const
Definition Snapshot.h:369
void SetDataTiering(DataTieringStatus &&value)
Definition Snapshot.h:515
bool ReplicationGroupDescriptionHasBeenSet() const
Definition Snapshot.h:82
void SetCacheClusterId(Aws::String &&value)
Definition Snapshot.h:98
AWS_ELASTICACHE_API Snapshot & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSnapshotName(Aws::String &&value)
Definition Snapshot.h:56
Snapshot & WithSnapshotRetentionLimit(int value)
Definition Snapshot.h:419
Snapshot & WithAutoMinorVersionUpgrade(bool value)
Definition Snapshot.h:403
void SetAutoMinorVersionUpgrade(bool value)
Definition Snapshot.h:402
Snapshot & WithEngineVersion(const Aws::String &value)
Definition Snapshot.h:247
Snapshot & WithPreferredMaintenanceWindow(const char *value)
Definition Snapshot.h:322
Snapshot & WithPreferredOutpostArn(const char *value)
Definition Snapshot.h:289
const Aws::String & GetEngineVersion() const
Definition Snapshot.h:242
void SetPreferredAvailabilityZone(Aws::String &&value)
Definition Snapshot.h:271
Snapshot & WithNodeSnapshots(Aws::Vector< NodeSnapshot > &&value)
Definition Snapshot.h:471
void SetDataTiering(const DataTieringStatus &value)
Definition Snapshot.h:514
Snapshot & WithCacheNodeType(Aws::String &&value)
Definition Snapshot.h:218
Snapshot & WithKmsKeyId(Aws::String &&value)
Definition Snapshot.h:486
void SetSnapshotSource(const char *value)
Definition Snapshot.h:130
Snapshot & WithCacheClusterCreateTime(Aws::Utils::DateTime &&value)
Definition Snapshot.h:301
const Aws::String & GetSnapshotName() const
Definition Snapshot.h:53
Snapshot & WithCacheClusterId(const Aws::String &value)
Definition Snapshot.h:100
void SetReplicationGroupDescription(Aws::String &&value)
Definition Snapshot.h:84
const Aws::Utils::DateTime & GetCacheClusterCreateTime() const
Definition Snapshot.h:296
bool PreferredMaintenanceWindowHasBeenSet() const
Definition Snapshot.h:316
void SetCacheSubnetGroupName(const Aws::String &value)
Definition Snapshot.h:370
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream