AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Snapshot.h
1
6#pragma once
7#include <aws/redshift/Redshift_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/core/utils/memory/stl/AWSVector.h>
12#include <aws/redshift/model/AccountWithRestoreAccess.h>
13#include <aws/redshift/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace Redshift
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_REDSHIFT_API Snapshot() = default;
39 AWS_REDSHIFT_API Snapshot(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_REDSHIFT_API Snapshot& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetSnapshotIdentifier() const { return m_snapshotIdentifier; }
51 inline bool SnapshotIdentifierHasBeenSet() const { return m_snapshotIdentifierHasBeenSet; }
52 template<typename SnapshotIdentifierT = Aws::String>
53 void SetSnapshotIdentifier(SnapshotIdentifierT&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = std::forward<SnapshotIdentifierT>(value); }
54 template<typename SnapshotIdentifierT = Aws::String>
55 Snapshot& WithSnapshotIdentifier(SnapshotIdentifierT&& value) { SetSnapshotIdentifier(std::forward<SnapshotIdentifierT>(value)); return *this;}
57
59
62 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
63 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
64 template<typename ClusterIdentifierT = Aws::String>
65 void SetClusterIdentifier(ClusterIdentifierT&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::forward<ClusterIdentifierT>(value); }
66 template<typename ClusterIdentifierT = Aws::String>
67 Snapshot& WithClusterIdentifier(ClusterIdentifierT&& value) { SetClusterIdentifier(std::forward<ClusterIdentifierT>(value)); return *this;}
69
71
75 inline const Aws::Utils::DateTime& GetSnapshotCreateTime() const { return m_snapshotCreateTime; }
76 inline bool SnapshotCreateTimeHasBeenSet() const { return m_snapshotCreateTimeHasBeenSet; }
77 template<typename SnapshotCreateTimeT = Aws::Utils::DateTime>
78 void SetSnapshotCreateTime(SnapshotCreateTimeT&& value) { m_snapshotCreateTimeHasBeenSet = true; m_snapshotCreateTime = std::forward<SnapshotCreateTimeT>(value); }
79 template<typename SnapshotCreateTimeT = Aws::Utils::DateTime>
80 Snapshot& WithSnapshotCreateTime(SnapshotCreateTimeT&& value) { SetSnapshotCreateTime(std::forward<SnapshotCreateTimeT>(value)); return *this;}
82
84
92 inline const Aws::String& GetStatus() const { return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 template<typename StatusT = Aws::String>
95 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
96 template<typename StatusT = Aws::String>
97 Snapshot& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
99
101
104 inline int GetPort() const { return m_port; }
105 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
106 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
107 inline Snapshot& WithPort(int value) { SetPort(value); return *this;}
109
111
114 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
115 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
116 template<typename AvailabilityZoneT = Aws::String>
117 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
118 template<typename AvailabilityZoneT = Aws::String>
119 Snapshot& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
121
123
126 inline const Aws::Utils::DateTime& GetClusterCreateTime() const { return m_clusterCreateTime; }
127 inline bool ClusterCreateTimeHasBeenSet() const { return m_clusterCreateTimeHasBeenSet; }
128 template<typename ClusterCreateTimeT = Aws::Utils::DateTime>
129 void SetClusterCreateTime(ClusterCreateTimeT&& value) { m_clusterCreateTimeHasBeenSet = true; m_clusterCreateTime = std::forward<ClusterCreateTimeT>(value); }
130 template<typename ClusterCreateTimeT = Aws::Utils::DateTime>
131 Snapshot& WithClusterCreateTime(ClusterCreateTimeT&& value) { SetClusterCreateTime(std::forward<ClusterCreateTimeT>(value)); return *this;}
133
135
138 inline const Aws::String& GetMasterUsername() const { return m_masterUsername; }
139 inline bool MasterUsernameHasBeenSet() const { return m_masterUsernameHasBeenSet; }
140 template<typename MasterUsernameT = Aws::String>
141 void SetMasterUsername(MasterUsernameT&& value) { m_masterUsernameHasBeenSet = true; m_masterUsername = std::forward<MasterUsernameT>(value); }
142 template<typename MasterUsernameT = Aws::String>
143 Snapshot& WithMasterUsername(MasterUsernameT&& value) { SetMasterUsername(std::forward<MasterUsernameT>(value)); return *this;}
145
147
151 inline const Aws::String& GetClusterVersion() const { return m_clusterVersion; }
152 inline bool ClusterVersionHasBeenSet() const { return m_clusterVersionHasBeenSet; }
153 template<typename ClusterVersionT = Aws::String>
154 void SetClusterVersion(ClusterVersionT&& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = std::forward<ClusterVersionT>(value); }
155 template<typename ClusterVersionT = Aws::String>
156 Snapshot& WithClusterVersion(ClusterVersionT&& value) { SetClusterVersion(std::forward<ClusterVersionT>(value)); return *this;}
158
160
164 inline const Aws::String& GetEngineFullVersion() const { return m_engineFullVersion; }
165 inline bool EngineFullVersionHasBeenSet() const { return m_engineFullVersionHasBeenSet; }
166 template<typename EngineFullVersionT = Aws::String>
167 void SetEngineFullVersion(EngineFullVersionT&& value) { m_engineFullVersionHasBeenSet = true; m_engineFullVersion = std::forward<EngineFullVersionT>(value); }
168 template<typename EngineFullVersionT = Aws::String>
169 Snapshot& WithEngineFullVersion(EngineFullVersionT&& value) { SetEngineFullVersion(std::forward<EngineFullVersionT>(value)); return *this;}
171
173
177 inline const Aws::String& GetSnapshotType() const { return m_snapshotType; }
178 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
179 template<typename SnapshotTypeT = Aws::String>
180 void SetSnapshotType(SnapshotTypeT&& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = std::forward<SnapshotTypeT>(value); }
181 template<typename SnapshotTypeT = Aws::String>
182 Snapshot& WithSnapshotType(SnapshotTypeT&& value) { SetSnapshotType(std::forward<SnapshotTypeT>(value)); return *this;}
184
186
189 inline const Aws::String& GetNodeType() const { return m_nodeType; }
190 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
191 template<typename NodeTypeT = Aws::String>
192 void SetNodeType(NodeTypeT&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::forward<NodeTypeT>(value); }
193 template<typename NodeTypeT = Aws::String>
194 Snapshot& WithNodeType(NodeTypeT&& value) { SetNodeType(std::forward<NodeTypeT>(value)); return *this;}
196
198
201 inline int GetNumberOfNodes() const { return m_numberOfNodes; }
202 inline bool NumberOfNodesHasBeenSet() const { return m_numberOfNodesHasBeenSet; }
203 inline void SetNumberOfNodes(int value) { m_numberOfNodesHasBeenSet = true; m_numberOfNodes = value; }
204 inline Snapshot& WithNumberOfNodes(int value) { SetNumberOfNodes(value); return *this;}
206
208
211 inline const Aws::String& GetDBName() const { return m_dBName; }
212 inline bool DBNameHasBeenSet() const { return m_dBNameHasBeenSet; }
213 template<typename DBNameT = Aws::String>
214 void SetDBName(DBNameT&& value) { m_dBNameHasBeenSet = true; m_dBName = std::forward<DBNameT>(value); }
215 template<typename DBNameT = Aws::String>
216 Snapshot& WithDBName(DBNameT&& value) { SetDBName(std::forward<DBNameT>(value)); return *this;}
218
220
224 inline const Aws::String& GetVpcId() const { return m_vpcId; }
225 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
226 template<typename VpcIdT = Aws::String>
227 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
228 template<typename VpcIdT = Aws::String>
229 Snapshot& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
231
233
236 inline bool GetEncrypted() const { return m_encrypted; }
237 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
238 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
239 inline Snapshot& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
241
243
247 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
248 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
249 template<typename KmsKeyIdT = Aws::String>
250 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
251 template<typename KmsKeyIdT = Aws::String>
252 Snapshot& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
254
256
261 inline bool GetEncryptedWithHSM() const { return m_encryptedWithHSM; }
262 inline bool EncryptedWithHSMHasBeenSet() const { return m_encryptedWithHSMHasBeenSet; }
263 inline void SetEncryptedWithHSM(bool value) { m_encryptedWithHSMHasBeenSet = true; m_encryptedWithHSM = value; }
264 inline Snapshot& WithEncryptedWithHSM(bool value) { SetEncryptedWithHSM(value); return *this;}
266
268
273 inline const Aws::Vector<AccountWithRestoreAccess>& GetAccountsWithRestoreAccess() const { return m_accountsWithRestoreAccess; }
274 inline bool AccountsWithRestoreAccessHasBeenSet() const { return m_accountsWithRestoreAccessHasBeenSet; }
275 template<typename AccountsWithRestoreAccessT = Aws::Vector<AccountWithRestoreAccess>>
276 void SetAccountsWithRestoreAccess(AccountsWithRestoreAccessT&& value) { m_accountsWithRestoreAccessHasBeenSet = true; m_accountsWithRestoreAccess = std::forward<AccountsWithRestoreAccessT>(value); }
277 template<typename AccountsWithRestoreAccessT = Aws::Vector<AccountWithRestoreAccess>>
278 Snapshot& WithAccountsWithRestoreAccess(AccountsWithRestoreAccessT&& value) { SetAccountsWithRestoreAccess(std::forward<AccountsWithRestoreAccessT>(value)); return *this;}
279 template<typename AccountsWithRestoreAccessT = AccountWithRestoreAccess>
280 Snapshot& AddAccountsWithRestoreAccess(AccountsWithRestoreAccessT&& value) { m_accountsWithRestoreAccessHasBeenSet = true; m_accountsWithRestoreAccess.emplace_back(std::forward<AccountsWithRestoreAccessT>(value)); return *this; }
282
284
289 inline const Aws::String& GetOwnerAccount() const { return m_ownerAccount; }
290 inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; }
291 template<typename OwnerAccountT = Aws::String>
292 void SetOwnerAccount(OwnerAccountT&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::forward<OwnerAccountT>(value); }
293 template<typename OwnerAccountT = Aws::String>
294 Snapshot& WithOwnerAccount(OwnerAccountT&& value) { SetOwnerAccount(std::forward<OwnerAccountT>(value)); return *this;}
296
298
302 inline double GetTotalBackupSizeInMegaBytes() const { return m_totalBackupSizeInMegaBytes; }
303 inline bool TotalBackupSizeInMegaBytesHasBeenSet() const { return m_totalBackupSizeInMegaBytesHasBeenSet; }
304 inline void SetTotalBackupSizeInMegaBytes(double value) { m_totalBackupSizeInMegaBytesHasBeenSet = true; m_totalBackupSizeInMegaBytes = value; }
305 inline Snapshot& WithTotalBackupSizeInMegaBytes(double value) { SetTotalBackupSizeInMegaBytes(value); return *this;}
307
309
312 inline double GetActualIncrementalBackupSizeInMegaBytes() const { return m_actualIncrementalBackupSizeInMegaBytes; }
313 inline bool ActualIncrementalBackupSizeInMegaBytesHasBeenSet() const { return m_actualIncrementalBackupSizeInMegaBytesHasBeenSet; }
314 inline void SetActualIncrementalBackupSizeInMegaBytes(double value) { m_actualIncrementalBackupSizeInMegaBytesHasBeenSet = true; m_actualIncrementalBackupSizeInMegaBytes = value; }
317
319
323 inline double GetBackupProgressInMegaBytes() const { return m_backupProgressInMegaBytes; }
324 inline bool BackupProgressInMegaBytesHasBeenSet() const { return m_backupProgressInMegaBytesHasBeenSet; }
325 inline void SetBackupProgressInMegaBytes(double value) { m_backupProgressInMegaBytesHasBeenSet = true; m_backupProgressInMegaBytes = value; }
326 inline Snapshot& WithBackupProgressInMegaBytes(double value) { SetBackupProgressInMegaBytes(value); return *this;}
328
330
334 inline double GetCurrentBackupRateInMegaBytesPerSecond() const { return m_currentBackupRateInMegaBytesPerSecond; }
335 inline bool CurrentBackupRateInMegaBytesPerSecondHasBeenSet() const { return m_currentBackupRateInMegaBytesPerSecondHasBeenSet; }
336 inline void SetCurrentBackupRateInMegaBytesPerSecond(double value) { m_currentBackupRateInMegaBytesPerSecondHasBeenSet = true; m_currentBackupRateInMegaBytesPerSecond = value; }
339
341
345 inline long long GetEstimatedSecondsToCompletion() const { return m_estimatedSecondsToCompletion; }
346 inline bool EstimatedSecondsToCompletionHasBeenSet() const { return m_estimatedSecondsToCompletionHasBeenSet; }
347 inline void SetEstimatedSecondsToCompletion(long long value) { m_estimatedSecondsToCompletionHasBeenSet = true; m_estimatedSecondsToCompletion = value; }
348 inline Snapshot& WithEstimatedSecondsToCompletion(long long value) { SetEstimatedSecondsToCompletion(value); return *this;}
350
352
356 inline long long GetElapsedTimeInSeconds() const { return m_elapsedTimeInSeconds; }
357 inline bool ElapsedTimeInSecondsHasBeenSet() const { return m_elapsedTimeInSecondsHasBeenSet; }
358 inline void SetElapsedTimeInSeconds(long long value) { m_elapsedTimeInSecondsHasBeenSet = true; m_elapsedTimeInSeconds = value; }
359 inline Snapshot& WithElapsedTimeInSeconds(long long value) { SetElapsedTimeInSeconds(value); return *this;}
361
363
366 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
367 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
368 template<typename SourceRegionT = Aws::String>
369 void SetSourceRegion(SourceRegionT&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::forward<SourceRegionT>(value); }
370 template<typename SourceRegionT = Aws::String>
371 Snapshot& WithSourceRegion(SourceRegionT&& value) { SetSourceRegion(std::forward<SourceRegionT>(value)); return *this;}
373
375
378 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
379 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
380 template<typename TagsT = Aws::Vector<Tag>>
381 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
382 template<typename TagsT = Aws::Vector<Tag>>
383 Snapshot& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
384 template<typename TagsT = Tag>
385 Snapshot& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
387
389
393 inline const Aws::Vector<Aws::String>& GetRestorableNodeTypes() const { return m_restorableNodeTypes; }
394 inline bool RestorableNodeTypesHasBeenSet() const { return m_restorableNodeTypesHasBeenSet; }
395 template<typename RestorableNodeTypesT = Aws::Vector<Aws::String>>
396 void SetRestorableNodeTypes(RestorableNodeTypesT&& value) { m_restorableNodeTypesHasBeenSet = true; m_restorableNodeTypes = std::forward<RestorableNodeTypesT>(value); }
397 template<typename RestorableNodeTypesT = Aws::Vector<Aws::String>>
398 Snapshot& WithRestorableNodeTypes(RestorableNodeTypesT&& value) { SetRestorableNodeTypes(std::forward<RestorableNodeTypesT>(value)); return *this;}
399 template<typename RestorableNodeTypesT = Aws::String>
400 Snapshot& AddRestorableNodeTypes(RestorableNodeTypesT&& value) { m_restorableNodeTypesHasBeenSet = true; m_restorableNodeTypes.emplace_back(std::forward<RestorableNodeTypesT>(value)); return *this; }
402
404
413 inline bool GetEnhancedVpcRouting() const { return m_enhancedVpcRouting; }
414 inline bool EnhancedVpcRoutingHasBeenSet() const { return m_enhancedVpcRoutingHasBeenSet; }
415 inline void SetEnhancedVpcRouting(bool value) { m_enhancedVpcRoutingHasBeenSet = true; m_enhancedVpcRouting = value; }
416 inline Snapshot& WithEnhancedVpcRouting(bool value) { SetEnhancedVpcRouting(value); return *this;}
418
420
423 inline const Aws::String& GetMaintenanceTrackName() const { return m_maintenanceTrackName; }
424 inline bool MaintenanceTrackNameHasBeenSet() const { return m_maintenanceTrackNameHasBeenSet; }
425 template<typename MaintenanceTrackNameT = Aws::String>
426 void SetMaintenanceTrackName(MaintenanceTrackNameT&& value) { m_maintenanceTrackNameHasBeenSet = true; m_maintenanceTrackName = std::forward<MaintenanceTrackNameT>(value); }
427 template<typename MaintenanceTrackNameT = Aws::String>
428 Snapshot& WithMaintenanceTrackName(MaintenanceTrackNameT&& value) { SetMaintenanceTrackName(std::forward<MaintenanceTrackNameT>(value)); return *this;}
430
432
437 inline int GetManualSnapshotRetentionPeriod() const { return m_manualSnapshotRetentionPeriod; }
438 inline bool ManualSnapshotRetentionPeriodHasBeenSet() const { return m_manualSnapshotRetentionPeriodHasBeenSet; }
439 inline void SetManualSnapshotRetentionPeriod(int value) { m_manualSnapshotRetentionPeriodHasBeenSet = true; m_manualSnapshotRetentionPeriod = value; }
442
444
448 inline int GetManualSnapshotRemainingDays() const { return m_manualSnapshotRemainingDays; }
449 inline bool ManualSnapshotRemainingDaysHasBeenSet() const { return m_manualSnapshotRemainingDaysHasBeenSet; }
450 inline void SetManualSnapshotRemainingDays(int value) { m_manualSnapshotRemainingDaysHasBeenSet = true; m_manualSnapshotRemainingDays = value; }
453
455
459 inline const Aws::Utils::DateTime& GetSnapshotRetentionStartTime() const { return m_snapshotRetentionStartTime; }
460 inline bool SnapshotRetentionStartTimeHasBeenSet() const { return m_snapshotRetentionStartTimeHasBeenSet; }
461 template<typename SnapshotRetentionStartTimeT = Aws::Utils::DateTime>
462 void SetSnapshotRetentionStartTime(SnapshotRetentionStartTimeT&& value) { m_snapshotRetentionStartTimeHasBeenSet = true; m_snapshotRetentionStartTime = std::forward<SnapshotRetentionStartTimeT>(value); }
463 template<typename SnapshotRetentionStartTimeT = Aws::Utils::DateTime>
464 Snapshot& WithSnapshotRetentionStartTime(SnapshotRetentionStartTimeT&& value) { SetSnapshotRetentionStartTime(std::forward<SnapshotRetentionStartTimeT>(value)); return *this;}
466
468
472 inline const Aws::String& GetMasterPasswordSecretArn() const { return m_masterPasswordSecretArn; }
473 inline bool MasterPasswordSecretArnHasBeenSet() const { return m_masterPasswordSecretArnHasBeenSet; }
474 template<typename MasterPasswordSecretArnT = Aws::String>
475 void SetMasterPasswordSecretArn(MasterPasswordSecretArnT&& value) { m_masterPasswordSecretArnHasBeenSet = true; m_masterPasswordSecretArn = std::forward<MasterPasswordSecretArnT>(value); }
476 template<typename MasterPasswordSecretArnT = Aws::String>
477 Snapshot& WithMasterPasswordSecretArn(MasterPasswordSecretArnT&& value) { SetMasterPasswordSecretArn(std::forward<MasterPasswordSecretArnT>(value)); return *this;}
479
481
485 inline const Aws::String& GetMasterPasswordSecretKmsKeyId() const { return m_masterPasswordSecretKmsKeyId; }
486 inline bool MasterPasswordSecretKmsKeyIdHasBeenSet() const { return m_masterPasswordSecretKmsKeyIdHasBeenSet; }
487 template<typename MasterPasswordSecretKmsKeyIdT = Aws::String>
488 void SetMasterPasswordSecretKmsKeyId(MasterPasswordSecretKmsKeyIdT&& value) { m_masterPasswordSecretKmsKeyIdHasBeenSet = true; m_masterPasswordSecretKmsKeyId = std::forward<MasterPasswordSecretKmsKeyIdT>(value); }
489 template<typename MasterPasswordSecretKmsKeyIdT = Aws::String>
490 Snapshot& WithMasterPasswordSecretKmsKeyId(MasterPasswordSecretKmsKeyIdT&& value) { SetMasterPasswordSecretKmsKeyId(std::forward<MasterPasswordSecretKmsKeyIdT>(value)); return *this;}
492
494
497 inline const Aws::String& GetSnapshotArn() const { return m_snapshotArn; }
498 inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; }
499 template<typename SnapshotArnT = Aws::String>
500 void SetSnapshotArn(SnapshotArnT&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::forward<SnapshotArnT>(value); }
501 template<typename SnapshotArnT = Aws::String>
502 Snapshot& WithSnapshotArn(SnapshotArnT&& value) { SetSnapshotArn(std::forward<SnapshotArnT>(value)); return *this;}
504 private:
505
506 Aws::String m_snapshotIdentifier;
507 bool m_snapshotIdentifierHasBeenSet = false;
508
509 Aws::String m_clusterIdentifier;
510 bool m_clusterIdentifierHasBeenSet = false;
511
512 Aws::Utils::DateTime m_snapshotCreateTime{};
513 bool m_snapshotCreateTimeHasBeenSet = false;
514
515 Aws::String m_status;
516 bool m_statusHasBeenSet = false;
517
518 int m_port{0};
519 bool m_portHasBeenSet = false;
520
521 Aws::String m_availabilityZone;
522 bool m_availabilityZoneHasBeenSet = false;
523
524 Aws::Utils::DateTime m_clusterCreateTime{};
525 bool m_clusterCreateTimeHasBeenSet = false;
526
527 Aws::String m_masterUsername;
528 bool m_masterUsernameHasBeenSet = false;
529
530 Aws::String m_clusterVersion;
531 bool m_clusterVersionHasBeenSet = false;
532
533 Aws::String m_engineFullVersion;
534 bool m_engineFullVersionHasBeenSet = false;
535
536 Aws::String m_snapshotType;
537 bool m_snapshotTypeHasBeenSet = false;
538
539 Aws::String m_nodeType;
540 bool m_nodeTypeHasBeenSet = false;
541
542 int m_numberOfNodes{0};
543 bool m_numberOfNodesHasBeenSet = false;
544
545 Aws::String m_dBName;
546 bool m_dBNameHasBeenSet = false;
547
548 Aws::String m_vpcId;
549 bool m_vpcIdHasBeenSet = false;
550
551 bool m_encrypted{false};
552 bool m_encryptedHasBeenSet = false;
553
554 Aws::String m_kmsKeyId;
555 bool m_kmsKeyIdHasBeenSet = false;
556
557 bool m_encryptedWithHSM{false};
558 bool m_encryptedWithHSMHasBeenSet = false;
559
560 Aws::Vector<AccountWithRestoreAccess> m_accountsWithRestoreAccess;
561 bool m_accountsWithRestoreAccessHasBeenSet = false;
562
563 Aws::String m_ownerAccount;
564 bool m_ownerAccountHasBeenSet = false;
565
566 double m_totalBackupSizeInMegaBytes{0.0};
567 bool m_totalBackupSizeInMegaBytesHasBeenSet = false;
568
569 double m_actualIncrementalBackupSizeInMegaBytes{0.0};
570 bool m_actualIncrementalBackupSizeInMegaBytesHasBeenSet = false;
571
572 double m_backupProgressInMegaBytes{0.0};
573 bool m_backupProgressInMegaBytesHasBeenSet = false;
574
575 double m_currentBackupRateInMegaBytesPerSecond{0.0};
576 bool m_currentBackupRateInMegaBytesPerSecondHasBeenSet = false;
577
578 long long m_estimatedSecondsToCompletion{0};
579 bool m_estimatedSecondsToCompletionHasBeenSet = false;
580
581 long long m_elapsedTimeInSeconds{0};
582 bool m_elapsedTimeInSecondsHasBeenSet = false;
583
584 Aws::String m_sourceRegion;
585 bool m_sourceRegionHasBeenSet = false;
586
587 Aws::Vector<Tag> m_tags;
588 bool m_tagsHasBeenSet = false;
589
590 Aws::Vector<Aws::String> m_restorableNodeTypes;
591 bool m_restorableNodeTypesHasBeenSet = false;
592
593 bool m_enhancedVpcRouting{false};
594 bool m_enhancedVpcRoutingHasBeenSet = false;
595
596 Aws::String m_maintenanceTrackName;
597 bool m_maintenanceTrackNameHasBeenSet = false;
598
599 int m_manualSnapshotRetentionPeriod{0};
600 bool m_manualSnapshotRetentionPeriodHasBeenSet = false;
601
602 int m_manualSnapshotRemainingDays{0};
603 bool m_manualSnapshotRemainingDaysHasBeenSet = false;
604
605 Aws::Utils::DateTime m_snapshotRetentionStartTime{};
606 bool m_snapshotRetentionStartTimeHasBeenSet = false;
607
608 Aws::String m_masterPasswordSecretArn;
609 bool m_masterPasswordSecretArnHasBeenSet = false;
610
611 Aws::String m_masterPasswordSecretKmsKeyId;
612 bool m_masterPasswordSecretKmsKeyIdHasBeenSet = false;
613
614 Aws::String m_snapshotArn;
615 bool m_snapshotArnHasBeenSet = false;
616 };
617
618} // namespace Model
619} // namespace Redshift
620} // namespace Aws
Snapshot & WithAvailabilityZone(AvailabilityZoneT &&value)
Definition Snapshot.h:119
Snapshot & WithClusterCreateTime(ClusterCreateTimeT &&value)
Definition Snapshot.h:131
void SetEstimatedSecondsToCompletion(long long value)
Definition Snapshot.h:347
bool ElapsedTimeInSecondsHasBeenSet() const
Definition Snapshot.h:357
const Aws::Utils::DateTime & GetClusterCreateTime() const
Definition Snapshot.h:126
void SetAccountsWithRestoreAccess(AccountsWithRestoreAccessT &&value)
Definition Snapshot.h:276
void SetEngineFullVersion(EngineFullVersionT &&value)
Definition Snapshot.h:167
void SetManualSnapshotRetentionPeriod(int value)
Definition Snapshot.h:439
const Aws::String & GetClusterIdentifier() const
Definition Snapshot.h:62
Snapshot & WithDBName(DBNameT &&value)
Definition Snapshot.h:216
bool SnapshotCreateTimeHasBeenSet() const
Definition Snapshot.h:76
const Aws::String & GetMasterUsername() const
Definition Snapshot.h:138
void SetKmsKeyId(KmsKeyIdT &&value)
Definition Snapshot.h:250
Snapshot & WithElapsedTimeInSeconds(long long value)
Definition Snapshot.h:359
void SetNodeType(NodeTypeT &&value)
Definition Snapshot.h:192
Snapshot & WithTotalBackupSizeInMegaBytes(double value)
Definition Snapshot.h:305
bool SnapshotArnHasBeenSet() const
Definition Snapshot.h:498
void SetActualIncrementalBackupSizeInMegaBytes(double value)
Definition Snapshot.h:314
bool ActualIncrementalBackupSizeInMegaBytesHasBeenSet() const
Definition Snapshot.h:313
void SetSnapshotRetentionStartTime(SnapshotRetentionStartTimeT &&value)
Definition Snapshot.h:462
void SetAvailabilityZone(AvailabilityZoneT &&value)
Definition Snapshot.h:117
AWS_REDSHIFT_API Snapshot & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetRestorableNodeTypes() const
Definition Snapshot.h:393
const Aws::Vector< Tag > & GetTags() const
Definition Snapshot.h:378
const Aws::String & GetVpcId() const
Definition Snapshot.h:224
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Snapshot & WithEncryptedWithHSM(bool value)
Definition Snapshot.h:264
const Aws::String & GetMasterPasswordSecretKmsKeyId() const
Definition Snapshot.h:485
void SetDBName(DBNameT &&value)
Definition Snapshot.h:214
Snapshot & WithClusterIdentifier(ClusterIdentifierT &&value)
Definition Snapshot.h:67
void SetEncrypted(bool value)
Definition Snapshot.h:238
double GetActualIncrementalBackupSizeInMegaBytes() const
Definition Snapshot.h:312
bool TotalBackupSizeInMegaBytesHasBeenSet() const
Definition Snapshot.h:303
Snapshot & WithManualSnapshotRetentionPeriod(int value)
Definition Snapshot.h:440
const Aws::String & GetMaintenanceTrackName() const
Definition Snapshot.h:423
Snapshot & WithSnapshotCreateTime(SnapshotCreateTimeT &&value)
Definition Snapshot.h:80
Snapshot & WithNumberOfNodes(int value)
Definition Snapshot.h:204
Snapshot & WithEngineFullVersion(EngineFullVersionT &&value)
Definition Snapshot.h:169
bool ManualSnapshotRemainingDaysHasBeenSet() const
Definition Snapshot.h:449
bool AccountsWithRestoreAccessHasBeenSet() const
Definition Snapshot.h:274
double GetCurrentBackupRateInMegaBytesPerSecond() const
Definition Snapshot.h:334
Snapshot & WithOwnerAccount(OwnerAccountT &&value)
Definition Snapshot.h:294
void SetSourceRegion(SourceRegionT &&value)
Definition Snapshot.h:369
Snapshot & WithMasterPasswordSecretKmsKeyId(MasterPasswordSecretKmsKeyIdT &&value)
Definition Snapshot.h:490
bool EncryptedWithHSMHasBeenSet() const
Definition Snapshot.h:262
Snapshot & WithSnapshotArn(SnapshotArnT &&value)
Definition Snapshot.h:502
Snapshot & WithManualSnapshotRemainingDays(int value)
Definition Snapshot.h:451
Snapshot & WithEnhancedVpcRouting(bool value)
Definition Snapshot.h:416
bool ClusterIdentifierHasBeenSet() const
Definition Snapshot.h:63
const Aws::String & GetEngineFullVersion() const
Definition Snapshot.h:164
void SetOwnerAccount(OwnerAccountT &&value)
Definition Snapshot.h:292
const Aws::String & GetMasterPasswordSecretArn() const
Definition Snapshot.h:472
double GetTotalBackupSizeInMegaBytes() const
Definition Snapshot.h:302
const Aws::String & GetClusterVersion() const
Definition Snapshot.h:151
const Aws::String & GetSourceRegion() const
Definition Snapshot.h:366
bool MasterPasswordSecretArnHasBeenSet() const
Definition Snapshot.h:473
bool OwnerAccountHasBeenSet() const
Definition Snapshot.h:290
void SetManualSnapshotRemainingDays(int value)
Definition Snapshot.h:450
Snapshot & WithEstimatedSecondsToCompletion(long long value)
Definition Snapshot.h:348
Snapshot & AddRestorableNodeTypes(RestorableNodeTypesT &&value)
Definition Snapshot.h:400
void SetVpcId(VpcIdT &&value)
Definition Snapshot.h:227
bool MasterUsernameHasBeenSet() const
Definition Snapshot.h:139
void SetMasterPasswordSecretArn(MasterPasswordSecretArnT &&value)
Definition Snapshot.h:475
bool SnapshotTypeHasBeenSet() const
Definition Snapshot.h:178
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetStatus(StatusT &&value)
Definition Snapshot.h:95
const Aws::String & GetNodeType() const
Definition Snapshot.h:189
bool BackupProgressInMegaBytesHasBeenSet() const
Definition Snapshot.h:324
int GetManualSnapshotRemainingDays() const
Definition Snapshot.h:448
const Aws::Vector< AccountWithRestoreAccess > & GetAccountsWithRestoreAccess() const
Definition Snapshot.h:273
Snapshot & AddAccountsWithRestoreAccess(AccountsWithRestoreAccessT &&value)
Definition Snapshot.h:280
const Aws::String & GetSnapshotType() const
Definition Snapshot.h:177
bool MasterPasswordSecretKmsKeyIdHasBeenSet() const
Definition Snapshot.h:486
Snapshot & WithCurrentBackupRateInMegaBytesPerSecond(double value)
Definition Snapshot.h:337
bool CurrentBackupRateInMegaBytesPerSecondHasBeenSet() const
Definition Snapshot.h:335
const Aws::String & GetSnapshotIdentifier() const
Definition Snapshot.h:50
void SetTotalBackupSizeInMegaBytes(double value)
Definition Snapshot.h:304
void SetBackupProgressInMegaBytes(double value)
Definition Snapshot.h:325
bool EngineFullVersionHasBeenSet() const
Definition Snapshot.h:165
bool SnapshotIdentifierHasBeenSet() const
Definition Snapshot.h:51
void SetSnapshotIdentifier(SnapshotIdentifierT &&value)
Definition Snapshot.h:53
Snapshot & AddTags(TagsT &&value)
Definition Snapshot.h:385
void SetElapsedTimeInSeconds(long long value)
Definition Snapshot.h:358
long long GetEstimatedSecondsToCompletion() const
Definition Snapshot.h:345
const Aws::String & GetKmsKeyId() const
Definition Snapshot.h:247
const Aws::String & GetOwnerAccount() const
Definition Snapshot.h:289
Snapshot & WithStatus(StatusT &&value)
Definition Snapshot.h:97
bool GetEnhancedVpcRouting() const
Definition Snapshot.h:413
bool ManualSnapshotRetentionPeriodHasBeenSet() const
Definition Snapshot.h:438
bool NumberOfNodesHasBeenSet() const
Definition Snapshot.h:202
double GetBackupProgressInMegaBytes() const
Definition Snapshot.h:323
void SetCurrentBackupRateInMegaBytesPerSecond(double value)
Definition Snapshot.h:336
const Aws::Utils::DateTime & GetSnapshotCreateTime() const
Definition Snapshot.h:75
Snapshot & WithActualIncrementalBackupSizeInMegaBytes(double value)
Definition Snapshot.h:315
Snapshot & WithRestorableNodeTypes(RestorableNodeTypesT &&value)
Definition Snapshot.h:398
bool ClusterCreateTimeHasBeenSet() const
Definition Snapshot.h:127
const Aws::String & GetDBName() const
Definition Snapshot.h:211
void SetNumberOfNodes(int value)
Definition Snapshot.h:203
void SetTags(TagsT &&value)
Definition Snapshot.h:381
void SetMasterPasswordSecretKmsKeyId(MasterPasswordSecretKmsKeyIdT &&value)
Definition Snapshot.h:488
void SetClusterVersion(ClusterVersionT &&value)
Definition Snapshot.h:154
Snapshot & WithNodeType(NodeTypeT &&value)
Definition Snapshot.h:194
bool SnapshotRetentionStartTimeHasBeenSet() const
Definition Snapshot.h:460
void SetClusterCreateTime(ClusterCreateTimeT &&value)
Definition Snapshot.h:129
void SetSnapshotCreateTime(SnapshotCreateTimeT &&value)
Definition Snapshot.h:78
Snapshot & WithMaintenanceTrackName(MaintenanceTrackNameT &&value)
Definition Snapshot.h:428
Snapshot & WithTags(TagsT &&value)
Definition Snapshot.h:383
void SetSnapshotArn(SnapshotArnT &&value)
Definition Snapshot.h:500
void SetMasterUsername(MasterUsernameT &&value)
Definition Snapshot.h:141
Snapshot & WithKmsKeyId(KmsKeyIdT &&value)
Definition Snapshot.h:252
Snapshot & WithBackupProgressInMegaBytes(double value)
Definition Snapshot.h:326
Snapshot & WithSourceRegion(SourceRegionT &&value)
Definition Snapshot.h:371
Snapshot & WithSnapshotRetentionStartTime(SnapshotRetentionStartTimeT &&value)
Definition Snapshot.h:464
const Aws::Utils::DateTime & GetSnapshotRetentionStartTime() const
Definition Snapshot.h:459
bool AvailabilityZoneHasBeenSet() const
Definition Snapshot.h:115
const Aws::String & GetStatus() const
Definition Snapshot.h:92
int GetManualSnapshotRetentionPeriod() const
Definition Snapshot.h:437
bool EstimatedSecondsToCompletionHasBeenSet() const
Definition Snapshot.h:346
AWS_REDSHIFT_API Snapshot()=default
Snapshot & WithAccountsWithRestoreAccess(AccountsWithRestoreAccessT &&value)
Definition Snapshot.h:278
Snapshot & WithSnapshotType(SnapshotTypeT &&value)
Definition Snapshot.h:182
Snapshot & WithMasterUsername(MasterUsernameT &&value)
Definition Snapshot.h:143
void SetEncryptedWithHSM(bool value)
Definition Snapshot.h:263
void SetEnhancedVpcRouting(bool value)
Definition Snapshot.h:415
Snapshot & WithVpcId(VpcIdT &&value)
Definition Snapshot.h:229
void SetMaintenanceTrackName(MaintenanceTrackNameT &&value)
Definition Snapshot.h:426
const Aws::String & GetAvailabilityZone() const
Definition Snapshot.h:114
bool EnhancedVpcRoutingHasBeenSet() const
Definition Snapshot.h:414
Snapshot & WithMasterPasswordSecretArn(MasterPasswordSecretArnT &&value)
Definition Snapshot.h:477
void SetSnapshotType(SnapshotTypeT &&value)
Definition Snapshot.h:180
bool RestorableNodeTypesHasBeenSet() const
Definition Snapshot.h:394
Snapshot & WithPort(int value)
Definition Snapshot.h:107
Snapshot & WithSnapshotIdentifier(SnapshotIdentifierT &&value)
Definition Snapshot.h:55
AWS_REDSHIFT_API Snapshot(const Aws::Utils::Xml::XmlNode &xmlNode)
Snapshot & WithClusterVersion(ClusterVersionT &&value)
Definition Snapshot.h:156
const Aws::String & GetSnapshotArn() const
Definition Snapshot.h:497
void SetRestorableNodeTypes(RestorableNodeTypesT &&value)
Definition Snapshot.h:396
bool MaintenanceTrackNameHasBeenSet() const
Definition Snapshot.h:424
bool SourceRegionHasBeenSet() const
Definition Snapshot.h:367
void SetClusterIdentifier(ClusterIdentifierT &&value)
Definition Snapshot.h:65
Snapshot & WithEncrypted(bool value)
Definition Snapshot.h:239
long long GetElapsedTimeInSeconds() const
Definition Snapshot.h:356
bool ClusterVersionHasBeenSet() const
Definition Snapshot.h:152
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