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>
54 inline void SetSnapshotIdentifier(
const char* value) { m_snapshotIdentifierHasBeenSet =
true; m_snapshotIdentifier.assign(value); }
68 inline void SetClusterIdentifier(
const char* value) { m_clusterIdentifierHasBeenSet =
true; m_clusterIdentifier.assign(value); }
100 inline void SetStatus(
const char* value) { m_statusHasBeenSet =
true; m_status.assign(value); }
112 inline void SetPort(
int value) { m_portHasBeenSet =
true; m_port = value; }
124 inline void SetAvailabilityZone(
const char* value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone.assign(value); }
150 inline void SetMasterUsername(
const char* value) { m_masterUsernameHasBeenSet =
true; m_masterUsername.assign(value); }
165 inline void SetClusterVersion(
const char* value) { m_clusterVersionHasBeenSet =
true; m_clusterVersion.assign(value); }
180 inline void SetEngineFullVersion(
const char* value) { m_engineFullVersionHasBeenSet =
true; m_engineFullVersion.assign(value); }
195 inline void SetSnapshotType(
const char* value) { m_snapshotTypeHasBeenSet =
true; m_snapshotType.assign(value); }
209 inline void SetNodeType(
const char* value) { m_nodeTypeHasBeenSet =
true; m_nodeType.assign(value); }
221 inline void SetNumberOfNodes(
int value) { m_numberOfNodesHasBeenSet =
true; m_numberOfNodes = value; }
233 inline void SetDBName(
const char* value) { m_dBNameHasBeenSet =
true; m_dBName.assign(value); }
248 inline void SetVpcId(
const char* value) { m_vpcIdHasBeenSet =
true; m_vpcId.assign(value); }
260 inline void SetEncrypted(
bool value) { m_encryptedHasBeenSet =
true; m_encrypted = value; }
273 inline void SetKmsKeyId(
const char* value) { m_kmsKeyIdHasBeenSet =
true; m_kmsKeyId.assign(value); }
287 inline void SetEncryptedWithHSM(
bool value) { m_encryptedWithHSMHasBeenSet =
true; m_encryptedWithHSM = value; }
317 inline void SetOwnerAccount(
const char* value) { m_ownerAccountHasBeenSet =
true; m_ownerAccount.assign(value); }
384 inline void SetElapsedTimeInSeconds(
long long value) { m_elapsedTimeInSecondsHasBeenSet =
true; m_elapsedTimeInSeconds = value; }
396 inline void SetSourceRegion(
const char* value) { m_sourceRegionHasBeenSet =
true; m_sourceRegion.assign(value); }
412 inline Snapshot&
AddTags(
const Tag& value) { m_tagsHasBeenSet =
true; m_tags.push_back(value);
return *
this; }
413 inline Snapshot&
AddTags(
Tag&& value) { m_tagsHasBeenSet =
true; m_tags.push_back(std::move(value));
return *
this; }
444 inline void SetEnhancedVpcRouting(
bool value) { m_enhancedVpcRoutingHasBeenSet =
true; m_enhancedVpcRouting = value; }
456 inline void SetMaintenanceTrackName(
const char* value) { m_maintenanceTrackNameHasBeenSet =
true; m_maintenanceTrackName.assign(value); }
507 inline void SetMasterPasswordSecretArn(
const char* value) { m_masterPasswordSecretArnHasBeenSet =
true; m_masterPasswordSecretArn.assign(value); }
536 inline void SetSnapshotArn(
const char* value) { m_snapshotArnHasBeenSet =
true; m_snapshotArn.assign(value); }
544 bool m_snapshotIdentifierHasBeenSet =
false;
547 bool m_clusterIdentifierHasBeenSet =
false;
550 bool m_snapshotCreateTimeHasBeenSet =
false;
553 bool m_statusHasBeenSet =
false;
556 bool m_portHasBeenSet =
false;
559 bool m_availabilityZoneHasBeenSet =
false;
562 bool m_clusterCreateTimeHasBeenSet =
false;
565 bool m_masterUsernameHasBeenSet =
false;
568 bool m_clusterVersionHasBeenSet =
false;
571 bool m_engineFullVersionHasBeenSet =
false;
574 bool m_snapshotTypeHasBeenSet =
false;
577 bool m_nodeTypeHasBeenSet =
false;
580 bool m_numberOfNodesHasBeenSet =
false;
583 bool m_dBNameHasBeenSet =
false;
586 bool m_vpcIdHasBeenSet =
false;
589 bool m_encryptedHasBeenSet =
false;
592 bool m_kmsKeyIdHasBeenSet =
false;
594 bool m_encryptedWithHSM;
595 bool m_encryptedWithHSMHasBeenSet =
false;
598 bool m_accountsWithRestoreAccessHasBeenSet =
false;
601 bool m_ownerAccountHasBeenSet =
false;
603 double m_totalBackupSizeInMegaBytes;
604 bool m_totalBackupSizeInMegaBytesHasBeenSet =
false;
606 double m_actualIncrementalBackupSizeInMegaBytes;
607 bool m_actualIncrementalBackupSizeInMegaBytesHasBeenSet =
false;
609 double m_backupProgressInMegaBytes;
610 bool m_backupProgressInMegaBytesHasBeenSet =
false;
612 double m_currentBackupRateInMegaBytesPerSecond;
613 bool m_currentBackupRateInMegaBytesPerSecondHasBeenSet =
false;
615 long long m_estimatedSecondsToCompletion;
616 bool m_estimatedSecondsToCompletionHasBeenSet =
false;
618 long long m_elapsedTimeInSeconds;
619 bool m_elapsedTimeInSecondsHasBeenSet =
false;
622 bool m_sourceRegionHasBeenSet =
false;
625 bool m_tagsHasBeenSet =
false;
628 bool m_restorableNodeTypesHasBeenSet =
false;
630 bool m_enhancedVpcRouting;
631 bool m_enhancedVpcRoutingHasBeenSet =
false;
634 bool m_maintenanceTrackNameHasBeenSet =
false;
636 int m_manualSnapshotRetentionPeriod;
637 bool m_manualSnapshotRetentionPeriodHasBeenSet =
false;
639 int m_manualSnapshotRemainingDays;
640 bool m_manualSnapshotRemainingDaysHasBeenSet =
false;
643 bool m_snapshotRetentionStartTimeHasBeenSet =
false;
646 bool m_masterPasswordSecretArnHasBeenSet =
false;
649 bool m_masterPasswordSecretKmsKeyIdHasBeenSet =
false;
652 bool m_snapshotArnHasBeenSet =
false;
Snapshot & WithRestorableNodeTypes(Aws::Vector< Aws::String > &&value)
void SetSnapshotType(const char *value)
void SetEstimatedSecondsToCompletion(long long value)
bool ElapsedTimeInSecondsHasBeenSet() const
const Aws::Utils::DateTime & GetClusterCreateTime() const
Snapshot & WithSnapshotIdentifier(const char *value)
void SetSourceRegion(Aws::String &&value)
void SetManualSnapshotRetentionPeriod(int value)
const Aws::String & GetClusterIdentifier() const
Snapshot & WithSnapshotArn(const Aws::String &value)
Snapshot & WithDBName(const Aws::String &value)
bool SnapshotCreateTimeHasBeenSet() const
const Aws::String & GetMasterUsername() const
void SetNodeType(const char *value)
void SetMasterUsername(const char *value)
void SetVpcId(const char *value)
Snapshot & WithNodeType(Aws::String &&value)
bool VpcIdHasBeenSet() const
Snapshot & WithElapsedTimeInSeconds(long long value)
Snapshot & WithTotalBackupSizeInMegaBytes(double value)
bool SnapshotArnHasBeenSet() const
void SetAvailabilityZone(const char *value)
void SetActualIncrementalBackupSizeInMegaBytes(double value)
bool ActualIncrementalBackupSizeInMegaBytesHasBeenSet() const
Snapshot & WithSnapshotIdentifier(const Aws::String &value)
Snapshot & WithSnapshotRetentionStartTime(Aws::Utils::DateTime &&value)
void SetOwnerAccount(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_REDSHIFT_API Snapshot & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Snapshot & WithSnapshotType(const Aws::String &value)
const Aws::Vector< Aws::String > & GetRestorableNodeTypes() const
void SetEngineFullVersion(const char *value)
Snapshot & WithMasterPasswordSecretArn(Aws::String &&value)
Snapshot & WithClusterCreateTime(const Aws::Utils::DateTime &value)
Snapshot & WithEngineFullVersion(const char *value)
const Aws::Vector< Tag > & GetTags() const
Snapshot & WithSnapshotIdentifier(Aws::String &&value)
void SetNodeType(const Aws::String &value)
const Aws::String & GetVpcId() const
void SetClusterIdentifier(const Aws::String &value)
void SetRestorableNodeTypes(const Aws::Vector< Aws::String > &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetMasterPasswordSecretKmsKeyId(const char *value)
void SetMasterPasswordSecretKmsKeyId(const Aws::String &value)
Snapshot & WithEncryptedWithHSM(bool value)
const Aws::String & GetMasterPasswordSecretKmsKeyId() const
Snapshot & WithOwnerAccount(Aws::String &&value)
void SetNodeType(Aws::String &&value)
Snapshot & WithMaintenanceTrackName(Aws::String &&value)
Snapshot & WithTags(Aws::Vector< Tag > &&value)
Snapshot & WithSnapshotArn(Aws::String &&value)
bool PortHasBeenSet() const
void SetVpcId(Aws::String &&value)
void SetEncrypted(bool value)
double GetActualIncrementalBackupSizeInMegaBytes() const
Snapshot & WithNodeType(const char *value)
Snapshot & AddRestorableNodeTypes(const Aws::String &value)
bool TotalBackupSizeInMegaBytesHasBeenSet() const
void SetSnapshotIdentifier(const char *value)
void SetOwnerAccount(const Aws::String &value)
Snapshot & WithManualSnapshotRetentionPeriod(int value)
void SetMaintenanceTrackName(const Aws::String &value)
void SetDBName(const Aws::String &value)
const Aws::String & GetMaintenanceTrackName() const
Snapshot & WithMasterPasswordSecretKmsKeyId(Aws::String &&value)
Snapshot & WithClusterIdentifier(const char *value)
Snapshot & WithNumberOfNodes(int value)
AWS_REDSHIFT_API Snapshot()
bool ManualSnapshotRemainingDaysHasBeenSet() const
void SetAccountsWithRestoreAccess(Aws::Vector< AccountWithRestoreAccess > &&value)
Snapshot & WithKmsKeyId(const char *value)
int GetNumberOfNodes() const
bool AccountsWithRestoreAccessHasBeenSet() const
Snapshot & AddTags(Tag &&value)
void SetAccountsWithRestoreAccess(const Aws::Vector< AccountWithRestoreAccess > &value)
void SetSnapshotRetentionStartTime(Aws::Utils::DateTime &&value)
double GetCurrentBackupRateInMegaBytesPerSecond() const
Snapshot & WithClusterCreateTime(Aws::Utils::DateTime &&value)
Snapshot & WithSnapshotRetentionStartTime(const Aws::Utils::DateTime &value)
bool GetEncrypted() const
bool EncryptedWithHSMHasBeenSet() const
void SetSnapshotIdentifier(Aws::String &&value)
Snapshot & WithMasterPasswordSecretArn(const char *value)
Snapshot & WithMasterUsername(Aws::String &&value)
Snapshot & WithEngineFullVersion(Aws::String &&value)
Snapshot & WithManualSnapshotRemainingDays(int value)
Snapshot & WithEnhancedVpcRouting(bool value)
bool ClusterIdentifierHasBeenSet() const
Snapshot & WithVpcId(const Aws::String &value)
const Aws::String & GetEngineFullVersion() const
const Aws::String & GetMasterPasswordSecretArn() const
Snapshot & WithSnapshotCreateTime(const Aws::Utils::DateTime &value)
void SetClusterVersion(const Aws::String &value)
double GetTotalBackupSizeInMegaBytes() const
Snapshot & AddRestorableNodeTypes(Aws::String &&value)
void SetClusterIdentifier(Aws::String &&value)
Snapshot & WithAccountsWithRestoreAccess(const Aws::Vector< AccountWithRestoreAccess > &value)
const Aws::String & GetClusterVersion() const
Snapshot & WithEngineFullVersion(const Aws::String &value)
void SetClusterIdentifier(const char *value)
const Aws::String & GetSourceRegion() const
bool MasterPasswordSecretArnHasBeenSet() const
bool OwnerAccountHasBeenSet() const
Snapshot & WithClusterIdentifier(Aws::String &&value)
Snapshot & AddAccountsWithRestoreAccess(AccountWithRestoreAccess &&value)
bool NodeTypeHasBeenSet() const
void SetKmsKeyId(const Aws::String &value)
void SetMaintenanceTrackName(Aws::String &&value)
Snapshot & WithAvailabilityZone(Aws::String &&value)
void SetManualSnapshotRemainingDays(int value)
Snapshot & WithEstimatedSecondsToCompletion(long long value)
Snapshot & WithNodeType(const Aws::String &value)
bool MasterUsernameHasBeenSet() const
void SetKmsKeyId(Aws::String &&value)
void SetSnapshotCreateTime(const Aws::Utils::DateTime &value)
Snapshot & WithClusterIdentifier(const Aws::String &value)
Snapshot & WithOwnerAccount(const Aws::String &value)
Snapshot & AddTags(const Tag &value)
bool SnapshotTypeHasBeenSet() const
Snapshot & WithRestorableNodeTypes(const Aws::Vector< Aws::String > &value)
void SetStatus(Aws::String &&value)
Snapshot & WithClusterVersion(const Aws::String &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetClusterCreateTime(const Aws::Utils::DateTime &value)
Snapshot & WithMaintenanceTrackName(const Aws::String &value)
const Aws::String & GetNodeType() const
void SetMasterPasswordSecretArn(const Aws::String &value)
bool BackupProgressInMegaBytesHasBeenSet() const
void SetStatus(const char *value)
int GetManualSnapshotRemainingDays() const
const Aws::Vector< AccountWithRestoreAccess > & GetAccountsWithRestoreAccess() const
void SetSnapshotType(Aws::String &&value)
Snapshot & WithSnapshotType(const char *value)
void SetSnapshotArn(Aws::String &&value)
void SetAvailabilityZone(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
Snapshot & WithMasterPasswordSecretArn(const Aws::String &value)
const Aws::String & GetSnapshotType() const
bool MasterPasswordSecretKmsKeyIdHasBeenSet() const
Snapshot & WithCurrentBackupRateInMegaBytesPerSecond(double value)
bool CurrentBackupRateInMegaBytesPerSecondHasBeenSet() const
const Aws::String & GetSnapshotIdentifier() const
void SetTotalBackupSizeInMegaBytes(double value)
void SetRestorableNodeTypes(Aws::Vector< Aws::String > &&value)
void SetSourceRegion(const char *value)
void SetBackupProgressInMegaBytes(double value)
bool EngineFullVersionHasBeenSet() const
bool SnapshotIdentifierHasBeenSet() const
Snapshot & WithSourceRegion(const char *value)
void SetElapsedTimeInSeconds(long long value)
void SetVpcId(const Aws::String &value)
Snapshot & WithMasterUsername(const Aws::String &value)
long long GetEstimatedSecondsToCompletion() const
void SetSnapshotIdentifier(const Aws::String &value)
Snapshot & WithSourceRegion(const Aws::String &value)
bool GetEncryptedWithHSM() const
void SetClusterCreateTime(Aws::Utils::DateTime &&value)
Snapshot & WithKmsKeyId(Aws::String &&value)
bool KmsKeyIdHasBeenSet() const
bool TagsHasBeenSet() const
const Aws::String & GetKmsKeyId() const
void SetMasterPasswordSecretArn(Aws::String &&value)
Snapshot & WithAccountsWithRestoreAccess(Aws::Vector< AccountWithRestoreAccess > &&value)
const Aws::String & GetOwnerAccount() const
Snapshot & WithMasterPasswordSecretKmsKeyId(const Aws::String &value)
bool GetEnhancedVpcRouting() const
Snapshot & WithVpcId(Aws::String &&value)
bool ManualSnapshotRetentionPeriodHasBeenSet() const
bool NumberOfNodesHasBeenSet() const
double GetBackupProgressInMegaBytes() const
void SetCurrentBackupRateInMegaBytesPerSecond(double value)
const Aws::Utils::DateTime & GetSnapshotCreateTime() const
Snapshot & WithActualIncrementalBackupSizeInMegaBytes(double value)
void SetDBName(Aws::String &&value)
void SetClusterVersion(Aws::String &&value)
bool ClusterCreateTimeHasBeenSet() const
Snapshot & WithClusterVersion(Aws::String &&value)
void SetMasterPasswordSecretKmsKeyId(Aws::String &&value)
void SetOwnerAccount(const char *value)
bool StatusHasBeenSet() const
const Aws::String & GetDBName() const
void SetNumberOfNodes(int value)
Snapshot & WithOwnerAccount(const char *value)
Snapshot & WithSnapshotCreateTime(Aws::Utils::DateTime &&value)
void SetAvailabilityZone(const Aws::String &value)
Snapshot & WithStatus(const Aws::String &value)
void SetClusterVersion(const char *value)
Snapshot & WithStatus(Aws::String &&value)
bool DBNameHasBeenSet() const
Snapshot & WithMasterUsername(const char *value)
Snapshot & WithVpcId(const char *value)
void SetMasterUsername(const Aws::String &value)
bool SnapshotRetentionStartTimeHasBeenSet() const
Snapshot & WithSourceRegion(Aws::String &&value)
void SetStatus(const Aws::String &value)
Snapshot & WithBackupProgressInMegaBytes(double value)
void SetSnapshotCreateTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetSnapshotRetentionStartTime() const
bool AvailabilityZoneHasBeenSet() const
const Aws::String & GetStatus() const
void SetSnapshotRetentionStartTime(const Aws::Utils::DateTime &value)
Snapshot & WithDBName(const char *value)
void SetSourceRegion(const Aws::String &value)
int GetManualSnapshotRetentionPeriod() const
bool EstimatedSecondsToCompletionHasBeenSet() const
Snapshot & WithClusterVersion(const char *value)
Snapshot & WithStatus(const char *value)
Snapshot & WithAvailabilityZone(const Aws::String &value)
Snapshot & WithMaintenanceTrackName(const char *value)
void SetKmsKeyId(const char *value)
void SetEncryptedWithHSM(bool value)
void SetEnhancedVpcRouting(bool value)
void SetEngineFullVersion(const Aws::String &value)
Snapshot & WithKmsKeyId(const Aws::String &value)
const Aws::String & GetAvailabilityZone() const
Snapshot & AddAccountsWithRestoreAccess(const AccountWithRestoreAccess &value)
bool EnhancedVpcRoutingHasBeenSet() const
Snapshot & WithTags(const Aws::Vector< Tag > &value)
void SetEngineFullVersion(Aws::String &&value)
void SetMaintenanceTrackName(const char *value)
Snapshot & WithMasterPasswordSecretKmsKeyId(const char *value)
void SetDBName(const char *value)
Snapshot & AddRestorableNodeTypes(const char *value)
Snapshot & WithSnapshotType(Aws::String &&value)
void SetSnapshotType(const Aws::String &value)
bool RestorableNodeTypesHasBeenSet() const
bool EncryptedHasBeenSet() const
Snapshot & WithPort(int value)
void SetSnapshotArn(const Aws::String &value)
AWS_REDSHIFT_API Snapshot(const Aws::Utils::Xml::XmlNode &xmlNode)
Snapshot & WithSnapshotArn(const char *value)
const Aws::String & GetSnapshotArn() const
bool MaintenanceTrackNameHasBeenSet() const
Snapshot & WithDBName(Aws::String &&value)
bool SourceRegionHasBeenSet() const
void SetSnapshotArn(const char *value)
Snapshot & WithEncrypted(bool value)
void SetMasterPasswordSecretArn(const char *value)
void SetMasterUsername(Aws::String &&value)
long long GetElapsedTimeInSeconds() const
Snapshot & WithAvailabilityZone(const char *value)
bool ClusterVersionHasBeenSet() const
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