AWS SDK for C++  0.14.3
AWS SDK for C++
Snapshot.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
22 #include <aws/redshift/model/Tag.h>
23 
24 namespace Aws
25 {
26 namespace Utils
27 {
28 namespace Xml
29 {
30  class XmlNode;
31 } // namespace Xml
32 } // namespace Utils
33 namespace Redshift
34 {
35 namespace Model
36 {
37 
42  {
43  public:
44  Snapshot();
45  Snapshot(const Aws::Utils::Xml::XmlNode& xmlNode);
46  Snapshot& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47 
48  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49  void OutputToStream(Aws::OStream& oStream, const char* location) const;
50 
54  inline const Aws::String& GetSnapshotIdentifier() const{ return m_snapshotIdentifier; }
55 
59  inline void SetSnapshotIdentifier(const Aws::String& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
60 
64  inline void SetSnapshotIdentifier(Aws::String&& value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier = value; }
65 
69  inline void SetSnapshotIdentifier(const char* value) { m_snapshotIdentifierHasBeenSet = true; m_snapshotIdentifier.assign(value); }
70 
74  inline Snapshot& WithSnapshotIdentifier(const Aws::String& value) { SetSnapshotIdentifier(value); return *this;}
75 
79  inline Snapshot& WithSnapshotIdentifier(Aws::String&& value) { SetSnapshotIdentifier(value); return *this;}
80 
84  inline Snapshot& WithSnapshotIdentifier(const char* value) { SetSnapshotIdentifier(value); return *this;}
85 
89  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
90 
94  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
95 
99  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
100 
104  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
105 
109  inline Snapshot& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
110 
114  inline Snapshot& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(value); return *this;}
115 
119  inline Snapshot& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
120 
125  inline const Aws::Utils::DateTime& GetSnapshotCreateTime() const{ return m_snapshotCreateTime; }
126 
131  inline void SetSnapshotCreateTime(const Aws::Utils::DateTime& value) { m_snapshotCreateTimeHasBeenSet = true; m_snapshotCreateTime = value; }
132 
137  inline void SetSnapshotCreateTime(Aws::Utils::DateTime&& value) { m_snapshotCreateTimeHasBeenSet = true; m_snapshotCreateTime = value; }
138 
143  inline Snapshot& WithSnapshotCreateTime(const Aws::Utils::DateTime& value) { SetSnapshotCreateTime(value); return *this;}
144 
149  inline Snapshot& WithSnapshotCreateTime(Aws::Utils::DateTime&& value) { SetSnapshotCreateTime(value); return *this;}
150 
158  inline const Aws::String& GetStatus() const{ return m_status; }
159 
167  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
168 
176  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = value; }
177 
185  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
186 
194  inline Snapshot& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
195 
203  inline Snapshot& WithStatus(Aws::String&& value) { SetStatus(value); return *this;}
204 
212  inline Snapshot& WithStatus(const char* value) { SetStatus(value); return *this;}
213 
217  inline int GetPort() const{ return m_port; }
218 
222  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
223 
227  inline Snapshot& WithPort(int value) { SetPort(value); return *this;}
228 
232  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
233 
237  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
238 
242  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
243 
247  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
248 
252  inline Snapshot& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
253 
257  inline Snapshot& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(value); return *this;}
258 
262  inline Snapshot& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
263 
267  inline const Aws::Utils::DateTime& GetClusterCreateTime() const{ return m_clusterCreateTime; }
268 
272  inline void SetClusterCreateTime(const Aws::Utils::DateTime& value) { m_clusterCreateTimeHasBeenSet = true; m_clusterCreateTime = value; }
273 
277  inline void SetClusterCreateTime(Aws::Utils::DateTime&& value) { m_clusterCreateTimeHasBeenSet = true; m_clusterCreateTime = value; }
278 
282  inline Snapshot& WithClusterCreateTime(const Aws::Utils::DateTime& value) { SetClusterCreateTime(value); return *this;}
283 
287  inline Snapshot& WithClusterCreateTime(Aws::Utils::DateTime&& value) { SetClusterCreateTime(value); return *this;}
288 
292  inline const Aws::String& GetMasterUsername() const{ return m_masterUsername; }
293 
297  inline void SetMasterUsername(const Aws::String& value) { m_masterUsernameHasBeenSet = true; m_masterUsername = value; }
298 
302  inline void SetMasterUsername(Aws::String&& value) { m_masterUsernameHasBeenSet = true; m_masterUsername = value; }
303 
307  inline void SetMasterUsername(const char* value) { m_masterUsernameHasBeenSet = true; m_masterUsername.assign(value); }
308 
312  inline Snapshot& WithMasterUsername(const Aws::String& value) { SetMasterUsername(value); return *this;}
313 
317  inline Snapshot& WithMasterUsername(Aws::String&& value) { SetMasterUsername(value); return *this;}
318 
322  inline Snapshot& WithMasterUsername(const char* value) { SetMasterUsername(value); return *this;}
323 
328  inline const Aws::String& GetClusterVersion() const{ return m_clusterVersion; }
329 
334  inline void SetClusterVersion(const Aws::String& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = value; }
335 
340  inline void SetClusterVersion(Aws::String&& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = value; }
341 
346  inline void SetClusterVersion(const char* value) { m_clusterVersionHasBeenSet = true; m_clusterVersion.assign(value); }
347 
352  inline Snapshot& WithClusterVersion(const Aws::String& value) { SetClusterVersion(value); return *this;}
353 
358  inline Snapshot& WithClusterVersion(Aws::String&& value) { SetClusterVersion(value); return *this;}
359 
364  inline Snapshot& WithClusterVersion(const char* value) { SetClusterVersion(value); return *this;}
365 
370  inline const Aws::String& GetSnapshotType() const{ return m_snapshotType; }
371 
376  inline void SetSnapshotType(const Aws::String& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = value; }
377 
382  inline void SetSnapshotType(Aws::String&& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = value; }
383 
388  inline void SetSnapshotType(const char* value) { m_snapshotTypeHasBeenSet = true; m_snapshotType.assign(value); }
389 
394  inline Snapshot& WithSnapshotType(const Aws::String& value) { SetSnapshotType(value); return *this;}
395 
400  inline Snapshot& WithSnapshotType(Aws::String&& value) { SetSnapshotType(value); return *this;}
401 
406  inline Snapshot& WithSnapshotType(const char* value) { SetSnapshotType(value); return *this;}
407 
411  inline const Aws::String& GetNodeType() const{ return m_nodeType; }
412 
416  inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
417 
421  inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
422 
426  inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); }
427 
431  inline Snapshot& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;}
432 
436  inline Snapshot& WithNodeType(Aws::String&& value) { SetNodeType(value); return *this;}
437 
441  inline Snapshot& WithNodeType(const char* value) { SetNodeType(value); return *this;}
442 
446  inline int GetNumberOfNodes() const{ return m_numberOfNodes; }
447 
451  inline void SetNumberOfNodes(int value) { m_numberOfNodesHasBeenSet = true; m_numberOfNodes = value; }
452 
456  inline Snapshot& WithNumberOfNodes(int value) { SetNumberOfNodes(value); return *this;}
457 
461  inline const Aws::String& GetDBName() const{ return m_dBName; }
462 
466  inline void SetDBName(const Aws::String& value) { m_dBNameHasBeenSet = true; m_dBName = value; }
467 
471  inline void SetDBName(Aws::String&& value) { m_dBNameHasBeenSet = true; m_dBName = value; }
472 
476  inline void SetDBName(const char* value) { m_dBNameHasBeenSet = true; m_dBName.assign(value); }
477 
481  inline Snapshot& WithDBName(const Aws::String& value) { SetDBName(value); return *this;}
482 
486  inline Snapshot& WithDBName(Aws::String&& value) { SetDBName(value); return *this;}
487 
491  inline Snapshot& WithDBName(const char* value) { SetDBName(value); return *this;}
492 
497  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
498 
503  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
504 
509  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
510 
515  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
516 
521  inline Snapshot& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
522 
527  inline Snapshot& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
528 
533  inline Snapshot& WithVpcId(const char* value) { SetVpcId(value); return *this;}
534 
538  inline bool GetEncrypted() const{ return m_encrypted; }
539 
543  inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
544 
548  inline Snapshot& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
549 
554  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
555 
560  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
561 
566  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
567 
572  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
573 
578  inline Snapshot& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
579 
584  inline Snapshot& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(value); return *this;}
585 
590  inline Snapshot& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
591 
597  inline bool GetEncryptedWithHSM() const{ return m_encryptedWithHSM; }
598 
604  inline void SetEncryptedWithHSM(bool value) { m_encryptedWithHSMHasBeenSet = true; m_encryptedWithHSM = value; }
605 
611  inline Snapshot& WithEncryptedWithHSM(bool value) { SetEncryptedWithHSM(value); return *this;}
612 
618  inline const Aws::Vector<AccountWithRestoreAccess>& GetAccountsWithRestoreAccess() const{ return m_accountsWithRestoreAccess; }
619 
625  inline void SetAccountsWithRestoreAccess(const Aws::Vector<AccountWithRestoreAccess>& value) { m_accountsWithRestoreAccessHasBeenSet = true; m_accountsWithRestoreAccess = value; }
626 
632  inline void SetAccountsWithRestoreAccess(Aws::Vector<AccountWithRestoreAccess>&& value) { m_accountsWithRestoreAccessHasBeenSet = true; m_accountsWithRestoreAccess = value; }
633 
639  inline Snapshot& WithAccountsWithRestoreAccess(const Aws::Vector<AccountWithRestoreAccess>& value) { SetAccountsWithRestoreAccess(value); return *this;}
640 
646  inline Snapshot& WithAccountsWithRestoreAccess(Aws::Vector<AccountWithRestoreAccess>&& value) { SetAccountsWithRestoreAccess(value); return *this;}
647 
653  inline Snapshot& AddAccountsWithRestoreAccess(const AccountWithRestoreAccess& value) { m_accountsWithRestoreAccessHasBeenSet = true; m_accountsWithRestoreAccess.push_back(value); return *this; }
654 
660  inline Snapshot& AddAccountsWithRestoreAccess(AccountWithRestoreAccess&& value) { m_accountsWithRestoreAccessHasBeenSet = true; m_accountsWithRestoreAccess.push_back(value); return *this; }
661 
667  inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; }
668 
674  inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
675 
681  inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; }
682 
688  inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); }
689 
695  inline Snapshot& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;}
696 
702  inline Snapshot& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(value); return *this;}
703 
709  inline Snapshot& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;}
710 
715  inline double GetTotalBackupSizeInMegaBytes() const{ return m_totalBackupSizeInMegaBytes; }
716 
721  inline void SetTotalBackupSizeInMegaBytes(double value) { m_totalBackupSizeInMegaBytesHasBeenSet = true; m_totalBackupSizeInMegaBytes = value; }
722 
727  inline Snapshot& WithTotalBackupSizeInMegaBytes(double value) { SetTotalBackupSizeInMegaBytes(value); return *this;}
728 
732  inline double GetActualIncrementalBackupSizeInMegaBytes() const{ return m_actualIncrementalBackupSizeInMegaBytes; }
733 
737  inline void SetActualIncrementalBackupSizeInMegaBytes(double value) { m_actualIncrementalBackupSizeInMegaBytesHasBeenSet = true; m_actualIncrementalBackupSizeInMegaBytes = value; }
738 
742  inline Snapshot& WithActualIncrementalBackupSizeInMegaBytes(double value) { SetActualIncrementalBackupSizeInMegaBytes(value); return *this;}
743 
748  inline double GetBackupProgressInMegaBytes() const{ return m_backupProgressInMegaBytes; }
749 
754  inline void SetBackupProgressInMegaBytes(double value) { m_backupProgressInMegaBytesHasBeenSet = true; m_backupProgressInMegaBytes = value; }
755 
760  inline Snapshot& WithBackupProgressInMegaBytes(double value) { SetBackupProgressInMegaBytes(value); return *this;}
761 
766  inline double GetCurrentBackupRateInMegaBytesPerSecond() const{ return m_currentBackupRateInMegaBytesPerSecond; }
767 
772  inline void SetCurrentBackupRateInMegaBytesPerSecond(double value) { m_currentBackupRateInMegaBytesPerSecondHasBeenSet = true; m_currentBackupRateInMegaBytesPerSecond = value; }
773 
778  inline Snapshot& WithCurrentBackupRateInMegaBytesPerSecond(double value) { SetCurrentBackupRateInMegaBytesPerSecond(value); return *this;}
779 
784  inline long long GetEstimatedSecondsToCompletion() const{ return m_estimatedSecondsToCompletion; }
785 
790  inline void SetEstimatedSecondsToCompletion(long long value) { m_estimatedSecondsToCompletionHasBeenSet = true; m_estimatedSecondsToCompletion = value; }
791 
796  inline Snapshot& WithEstimatedSecondsToCompletion(long long value) { SetEstimatedSecondsToCompletion(value); return *this;}
797 
802  inline long long GetElapsedTimeInSeconds() const{ return m_elapsedTimeInSeconds; }
803 
808  inline void SetElapsedTimeInSeconds(long long value) { m_elapsedTimeInSecondsHasBeenSet = true; m_elapsedTimeInSeconds = value; }
809 
814  inline Snapshot& WithElapsedTimeInSeconds(long long value) { SetElapsedTimeInSeconds(value); return *this;}
815 
819  inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; }
820 
824  inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
825 
829  inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
830 
834  inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); }
835 
839  inline Snapshot& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
840 
844  inline Snapshot& WithSourceRegion(Aws::String&& value) { SetSourceRegion(value); return *this;}
845 
849  inline Snapshot& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
850 
854  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
855 
859  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
860 
864  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
865 
869  inline Snapshot& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
870 
874  inline Snapshot& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
875 
879  inline Snapshot& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
880 
884  inline Snapshot& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
885 
890  inline const Aws::Vector<Aws::String>& GetRestorableNodeTypes() const{ return m_restorableNodeTypes; }
891 
896  inline void SetRestorableNodeTypes(const Aws::Vector<Aws::String>& value) { m_restorableNodeTypesHasBeenSet = true; m_restorableNodeTypes = value; }
897 
902  inline void SetRestorableNodeTypes(Aws::Vector<Aws::String>&& value) { m_restorableNodeTypesHasBeenSet = true; m_restorableNodeTypes = value; }
903 
908  inline Snapshot& WithRestorableNodeTypes(const Aws::Vector<Aws::String>& value) { SetRestorableNodeTypes(value); return *this;}
909 
914  inline Snapshot& WithRestorableNodeTypes(Aws::Vector<Aws::String>&& value) { SetRestorableNodeTypes(value); return *this;}
915 
920  inline Snapshot& AddRestorableNodeTypes(const Aws::String& value) { m_restorableNodeTypesHasBeenSet = true; m_restorableNodeTypes.push_back(value); return *this; }
921 
926  inline Snapshot& AddRestorableNodeTypes(Aws::String&& value) { m_restorableNodeTypesHasBeenSet = true; m_restorableNodeTypes.push_back(value); return *this; }
927 
932  inline Snapshot& AddRestorableNodeTypes(const char* value) { m_restorableNodeTypesHasBeenSet = true; m_restorableNodeTypes.push_back(value); return *this; }
933 
934  private:
935  Aws::String m_snapshotIdentifier;
936  bool m_snapshotIdentifierHasBeenSet;
937  Aws::String m_clusterIdentifier;
938  bool m_clusterIdentifierHasBeenSet;
939  Aws::Utils::DateTime m_snapshotCreateTime;
940  bool m_snapshotCreateTimeHasBeenSet;
941  Aws::String m_status;
942  bool m_statusHasBeenSet;
943  int m_port;
944  bool m_portHasBeenSet;
945  Aws::String m_availabilityZone;
946  bool m_availabilityZoneHasBeenSet;
947  Aws::Utils::DateTime m_clusterCreateTime;
948  bool m_clusterCreateTimeHasBeenSet;
949  Aws::String m_masterUsername;
950  bool m_masterUsernameHasBeenSet;
951  Aws::String m_clusterVersion;
952  bool m_clusterVersionHasBeenSet;
953  Aws::String m_snapshotType;
954  bool m_snapshotTypeHasBeenSet;
955  Aws::String m_nodeType;
956  bool m_nodeTypeHasBeenSet;
957  int m_numberOfNodes;
958  bool m_numberOfNodesHasBeenSet;
959  Aws::String m_dBName;
960  bool m_dBNameHasBeenSet;
961  Aws::String m_vpcId;
962  bool m_vpcIdHasBeenSet;
963  bool m_encrypted;
964  bool m_encryptedHasBeenSet;
965  Aws::String m_kmsKeyId;
966  bool m_kmsKeyIdHasBeenSet;
967  bool m_encryptedWithHSM;
968  bool m_encryptedWithHSMHasBeenSet;
969  Aws::Vector<AccountWithRestoreAccess> m_accountsWithRestoreAccess;
970  bool m_accountsWithRestoreAccessHasBeenSet;
971  Aws::String m_ownerAccount;
972  bool m_ownerAccountHasBeenSet;
973  double m_totalBackupSizeInMegaBytes;
974  bool m_totalBackupSizeInMegaBytesHasBeenSet;
975  double m_actualIncrementalBackupSizeInMegaBytes;
976  bool m_actualIncrementalBackupSizeInMegaBytesHasBeenSet;
977  double m_backupProgressInMegaBytes;
978  bool m_backupProgressInMegaBytesHasBeenSet;
979  double m_currentBackupRateInMegaBytesPerSecond;
980  bool m_currentBackupRateInMegaBytesPerSecondHasBeenSet;
981  long long m_estimatedSecondsToCompletion;
982  bool m_estimatedSecondsToCompletionHasBeenSet;
983  long long m_elapsedTimeInSeconds;
984  bool m_elapsedTimeInSecondsHasBeenSet;
985  Aws::String m_sourceRegion;
986  bool m_sourceRegionHasBeenSet;
987  Aws::Vector<Tag> m_tags;
988  bool m_tagsHasBeenSet;
989  Aws::Vector<Aws::String> m_restorableNodeTypes;
990  bool m_restorableNodeTypesHasBeenSet;
991  };
992 
993 } // namespace Model
994 } // namespace Redshift
995 } // namespace Aws
Snapshot & WithSnapshotIdentifier(const Aws::String &value)
Definition: Snapshot.h:74
Snapshot & WithClusterIdentifier(const char *value)
Definition: Snapshot.h:119
Snapshot & WithOwnerAccount(Aws::String &&value)
Definition: Snapshot.h:702
const Aws::Vector< AccountWithRestoreAccess > & GetAccountsWithRestoreAccess() const
Definition: Snapshot.h:618
Snapshot & WithAvailabilityZone(const char *value)
Definition: Snapshot.h:262
void SetVpcId(const char *value)
Definition: Snapshot.h:515
void SetClusterVersion(const char *value)
Definition: Snapshot.h:346
void SetBackupProgressInMegaBytes(double value)
Definition: Snapshot.h:754
void SetNodeType(const char *value)
Definition: Snapshot.h:426
void SetAccountsWithRestoreAccess(const Aws::Vector< AccountWithRestoreAccess > &value)
Definition: Snapshot.h:625
Snapshot & WithRestorableNodeTypes(Aws::Vector< Aws::String > &&value)
Definition: Snapshot.h:914
Snapshot & AddRestorableNodeTypes(const Aws::String &value)
Definition: Snapshot.h:920
Snapshot & AddTags(Tag &&value)
Definition: Snapshot.h:884
void SetKmsKeyId(const Aws::String &value)
Definition: Snapshot.h:560
Snapshot & WithClusterIdentifier(Aws::String &&value)
Definition: Snapshot.h:114
void SetSourceRegion(const char *value)
Definition: Snapshot.h:834
const Aws::Utils::DateTime & GetSnapshotCreateTime() const
Definition: Snapshot.h:125
Snapshot & WithTags(Aws::Vector< Tag > &&value)
Definition: Snapshot.h:874
void SetSourceRegion(Aws::String &&value)
Definition: Snapshot.h:829
Snapshot & AddAccountsWithRestoreAccess(AccountWithRestoreAccess &&value)
Definition: Snapshot.h:660
void SetSnapshotIdentifier(Aws::String &&value)
Definition: Snapshot.h:64
double GetTotalBackupSizeInMegaBytes() const
Definition: Snapshot.h:715
void SetAccountsWithRestoreAccess(Aws::Vector< AccountWithRestoreAccess > &&value)
Definition: Snapshot.h:632
Snapshot & AddTags(const Tag &value)
Definition: Snapshot.h:879
Snapshot & WithVpcId(const char *value)
Definition: Snapshot.h:533
void SetStatus(const Aws::String &value)
Definition: Snapshot.h:167
const Aws::String & GetNodeType() const
Definition: Snapshot.h:411
Snapshot & WithSnapshotType(Aws::String &&value)
Definition: Snapshot.h:400
Snapshot & AddRestorableNodeTypes(const char *value)
Definition: Snapshot.h:932
void SetClusterVersion(Aws::String &&value)
Definition: Snapshot.h:340
const Aws::String & GetMasterUsername() const
Definition: Snapshot.h:292
void SetClusterIdentifier(Aws::String &&value)
Definition: Snapshot.h:99
Snapshot & WithMasterUsername(const Aws::String &value)
Definition: Snapshot.h:312
const Aws::Utils::DateTime & GetClusterCreateTime() const
Definition: Snapshot.h:267
Snapshot & WithKmsKeyId(const Aws::String &value)
Definition: Snapshot.h:578
Snapshot & AddAccountsWithRestoreAccess(const AccountWithRestoreAccess &value)
Definition: Snapshot.h:653
Snapshot & WithOwnerAccount(const Aws::String &value)
Definition: Snapshot.h:695
Snapshot & WithSourceRegion(const char *value)
Definition: Snapshot.h:849
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::String & GetDBName() const
Definition: Snapshot.h:461
Snapshot & WithStatus(Aws::String &&value)
Definition: Snapshot.h:203
Snapshot & WithVpcId(Aws::String &&value)
Definition: Snapshot.h:527
void SetTags(Aws::Vector< Tag > &&value)
Definition: Snapshot.h:864
Snapshot & WithNodeType(const char *value)
Definition: Snapshot.h:441
const Aws::String & GetStatus() const
Definition: Snapshot.h:158
void SetDBName(Aws::String &&value)
Definition: Snapshot.h:471
Snapshot & WithDBName(Aws::String &&value)
Definition: Snapshot.h:486
void SetClusterVersion(const Aws::String &value)
Definition: Snapshot.h:334
Snapshot & WithCurrentBackupRateInMegaBytesPerSecond(double value)
Definition: Snapshot.h:778
Snapshot & WithStatus(const Aws::String &value)
Definition: Snapshot.h:194
Snapshot & WithNodeType(Aws::String &&value)
Definition: Snapshot.h:436
void SetKmsKeyId(const char *value)
Definition: Snapshot.h:572
Snapshot & WithSourceRegion(Aws::String &&value)
Definition: Snapshot.h:844
void SetDBName(const char *value)
Definition: Snapshot.h:476
void SetOwnerAccount(const char *value)
Definition: Snapshot.h:688
Snapshot & WithNumberOfNodes(int value)
Definition: Snapshot.h:456
void SetSnapshotIdentifier(const Aws::String &value)
Definition: Snapshot.h:59
Snapshot & WithSnapshotCreateTime(Aws::Utils::DateTime &&value)
Definition: Snapshot.h:149
Snapshot & WithSnapshotType(const Aws::String &value)
Definition: Snapshot.h:394
Snapshot & WithAccountsWithRestoreAccess(Aws::Vector< AccountWithRestoreAccess > &&value)
Definition: Snapshot.h:646
Snapshot & WithDBName(const char *value)
Definition: Snapshot.h:491
void SetMasterUsername(const char *value)
Definition: Snapshot.h:307
long long GetEstimatedSecondsToCompletion() const
Definition: Snapshot.h:784
Snapshot & WithSnapshotIdentifier(const char *value)
Definition: Snapshot.h:84
void SetClusterCreateTime(Aws::Utils::DateTime &&value)
Definition: Snapshot.h:277
void SetSnapshotCreateTime(Aws::Utils::DateTime &&value)
Definition: Snapshot.h:137
long long GetElapsedTimeInSeconds() const
Definition: Snapshot.h:802
void SetTags(const Aws::Vector< Tag > &value)
Definition: Snapshot.h:859
Snapshot & WithMasterUsername(Aws::String &&value)
Definition: Snapshot.h:317
Snapshot & WithClusterVersion(Aws::String &&value)
Definition: Snapshot.h:358
Snapshot & WithSnapshotCreateTime(const Aws::Utils::DateTime &value)
Definition: Snapshot.h:143
bool GetEncryptedWithHSM() const
Definition: Snapshot.h:597
const Aws::String & GetSnapshotType() const
Definition: Snapshot.h:370
double GetCurrentBackupRateInMegaBytesPerSecond() const
Definition: Snapshot.h:766
double GetActualIncrementalBackupSizeInMegaBytes() const
Definition: Snapshot.h:732
void SetNumberOfNodes(int value)
Definition: Snapshot.h:451
void SetSnapshotType(const char *value)
Definition: Snapshot.h:388
Snapshot & WithStatus(const char *value)
Definition: Snapshot.h:212
const Aws::String & GetAvailabilityZone() const
Definition: Snapshot.h:232
#define AWS_REDSHIFT_API
Snapshot & WithOwnerAccount(const char *value)
Definition: Snapshot.h:709
void SetMasterUsername(Aws::String &&value)
Definition: Snapshot.h:302
void SetVpcId(const Aws::String &value)
Definition: Snapshot.h:503
Snapshot & WithPort(int value)
Definition: Snapshot.h:227
void SetSnapshotType(const Aws::String &value)
Definition: Snapshot.h:376
Snapshot & AddRestorableNodeTypes(Aws::String &&value)
Definition: Snapshot.h:926
Snapshot & WithKmsKeyId(Aws::String &&value)
Definition: Snapshot.h:584
void SetAvailabilityZone(const Aws::String &value)
Definition: Snapshot.h:237
void SetRestorableNodeTypes(Aws::Vector< Aws::String > &&value)
Definition: Snapshot.h:902
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetDBName(const Aws::String &value)
Definition: Snapshot.h:466
void SetSnapshotCreateTime(const Aws::Utils::DateTime &value)
Definition: Snapshot.h:131
const Aws::String & GetVpcId() const
Definition: Snapshot.h:497
void SetActualIncrementalBackupSizeInMegaBytes(double value)
Definition: Snapshot.h:737
void SetOwnerAccount(const Aws::String &value)
Definition: Snapshot.h:674
void SetElapsedTimeInSeconds(long long value)
Definition: Snapshot.h:808
Snapshot & WithClusterVersion(const Aws::String &value)
Definition: Snapshot.h:352
Snapshot & WithTotalBackupSizeInMegaBytes(double value)
Definition: Snapshot.h:727
void SetRestorableNodeTypes(const Aws::Vector< Aws::String > &value)
Definition: Snapshot.h:896
Snapshot & WithClusterCreateTime(Aws::Utils::DateTime &&value)
Definition: Snapshot.h:287
const Aws::Vector< Tag > & GetTags() const
Definition: Snapshot.h:854
const Aws::String & GetClusterIdentifier() const
Definition: Snapshot.h:89
Snapshot & WithAccountsWithRestoreAccess(const Aws::Vector< AccountWithRestoreAccess > &value)
Definition: Snapshot.h:639
Snapshot & WithSnapshotIdentifier(Aws::String &&value)
Definition: Snapshot.h:79
void SetSnapshotType(Aws::String &&value)
Definition: Snapshot.h:382
void SetAvailabilityZone(const char *value)
Definition: Snapshot.h:247
Snapshot & WithSourceRegion(const Aws::String &value)
Definition: Snapshot.h:839
void SetStatus(Aws::String &&value)
Definition: Snapshot.h:176
Snapshot & WithClusterCreateTime(const Aws::Utils::DateTime &value)
Definition: Snapshot.h:282
Snapshot & WithClusterVersion(const char *value)
Definition: Snapshot.h:364
Snapshot & WithVpcId(const Aws::String &value)
Definition: Snapshot.h:521
void SetSourceRegion(const Aws::String &value)
Definition: Snapshot.h:824
void SetNodeType(const Aws::String &value)
Definition: Snapshot.h:416
const Aws::Vector< Aws::String > & GetRestorableNodeTypes() const
Definition: Snapshot.h:890
void SetCurrentBackupRateInMegaBytesPerSecond(double value)
Definition: Snapshot.h:772
void SetMasterUsername(const Aws::String &value)
Definition: Snapshot.h:297
Snapshot & WithRestorableNodeTypes(const Aws::Vector< Aws::String > &value)
Definition: Snapshot.h:908
Snapshot & WithAvailabilityZone(Aws::String &&value)
Definition: Snapshot.h:257
void SetVpcId(Aws::String &&value)
Definition: Snapshot.h:509
void SetNodeType(Aws::String &&value)
Definition: Snapshot.h:421
Snapshot & WithMasterUsername(const char *value)
Definition: Snapshot.h:322
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Snapshot & WithEncryptedWithHSM(bool value)
Definition: Snapshot.h:611
void SetClusterIdentifier(const char *value)
Definition: Snapshot.h:104
Snapshot & WithAvailabilityZone(const Aws::String &value)
Definition: Snapshot.h:252
const Aws::String & GetKmsKeyId() const
Definition: Snapshot.h:554
const Aws::String & GetClusterVersion() const
Definition: Snapshot.h:328
const Aws::String & GetOwnerAccount() const
Definition: Snapshot.h:667
void SetEncrypted(bool value)
Definition: Snapshot.h:543
Snapshot & WithEstimatedSecondsToCompletion(long long value)
Definition: Snapshot.h:796
void SetKmsKeyId(Aws::String &&value)
Definition: Snapshot.h:566
Snapshot & WithClusterIdentifier(const Aws::String &value)
Definition: Snapshot.h:109
void SetTotalBackupSizeInMegaBytes(double value)
Definition: Snapshot.h:721
Snapshot & WithSnapshotType(const char *value)
Definition: Snapshot.h:406
Snapshot & WithNodeType(const Aws::String &value)
Definition: Snapshot.h:431
Snapshot & WithTags(const Aws::Vector< Tag > &value)
Definition: Snapshot.h:869
void SetClusterIdentifier(const Aws::String &value)
Definition: Snapshot.h:94
Snapshot & WithActualIncrementalBackupSizeInMegaBytes(double value)
Definition: Snapshot.h:742
void SetSnapshotIdentifier(const char *value)
Definition: Snapshot.h:69
double GetBackupProgressInMegaBytes() const
Definition: Snapshot.h:748
Snapshot & WithEncrypted(bool value)
Definition: Snapshot.h:548
void SetEstimatedSecondsToCompletion(long long value)
Definition: Snapshot.h:790
Snapshot & WithElapsedTimeInSeconds(long long value)
Definition: Snapshot.h:814
const Aws::String & GetSnapshotIdentifier() const
Definition: Snapshot.h:54
void SetClusterCreateTime(const Aws::Utils::DateTime &value)
Definition: Snapshot.h:272
void SetAvailabilityZone(Aws::String &&value)
Definition: Snapshot.h:242
const Aws::String & GetSourceRegion() const
Definition: Snapshot.h:819
Snapshot & WithBackupProgressInMegaBytes(double value)
Definition: Snapshot.h:760
void SetEncryptedWithHSM(bool value)
Definition: Snapshot.h:604
Snapshot & WithDBName(const Aws::String &value)
Definition: Snapshot.h:481
JSON (JavaScript Object Notation).
void SetOwnerAccount(Aws::String &&value)
Definition: Snapshot.h:681
Snapshot & WithKmsKeyId(const char *value)
Definition: Snapshot.h:590
void SetStatus(const char *value)
Definition: Snapshot.h:185