public class Snapshot extends Object implements Serializable
Describes a snapshot.
Constructor and Description |
---|
Snapshot() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<AccountWithRestoreAccess> |
getAccountsWithRestoreAccess()
A list of the AWS customer accounts authorized to restore the
snapshot.
|
Double |
getActualIncrementalBackupSizeInMegaBytes()
The size of the incremental backup.
|
String |
getAvailabilityZone()
The Availability Zone in which the cluster was created.
|
Double |
getBackupProgressInMegaBytes()
The number of megabytes that have been transferred to the snapshot
backup.
|
Date |
getClusterCreateTime()
The time (UTC) when the cluster was originally created.
|
String |
getClusterIdentifier()
The identifier of the cluster for which the snapshot was taken.
|
String |
getClusterVersion()
The version ID of the Amazon Redshift engine that is running on the
cluster.
|
Double |
getCurrentBackupRateInMegaBytesPerSecond()
The number of megabytes per second being transferred to the snapshot
backup.
|
String |
getDBName()
The name of the database that was created when the cluster was
created.
|
Long |
getElapsedTimeInSeconds()
The amount of time an in-progress snapshot backup has been running, or
the amount of time it took a completed backup to finish.
|
Boolean |
getEncrypted()
If
true , the data in the snapshot is encrypted at rest. |
Long |
getEstimatedSecondsToCompletion()
The estimate of the time remaining before the snapshot backup will
complete.
|
String |
getMasterUsername()
The master user name for the cluster.
|
String |
getNodeType()
The node type of the nodes in the cluster.
|
Integer |
getNumberOfNodes()
The number of nodes in the cluster.
|
String |
getOwnerAccount()
For manual snapshots, the AWS customer account used to create or copy
the snapshot.
|
Integer |
getPort()
The port that the cluster is listening on.
|
Date |
getSnapshotCreateTime()
The time (UTC) when Amazon Redshift began the snapshot.
|
String |
getSnapshotIdentifier()
The snapshot identifier that is provided in the request.
|
String |
getSnapshotType()
The snapshot type.
|
String |
getStatus()
The snapshot status.
|
Double |
getTotalBackupSizeInMegaBytes()
The size of the complete set of backup data that would be used to
restore the cluster.
|
String |
getVpcId()
The VPC identifier of the cluster if the snapshot is from a cluster in
a VPC.
|
int |
hashCode() |
Boolean |
isEncrypted()
If
true , the data in the snapshot is encrypted at rest. |
void |
setAccountsWithRestoreAccess(Collection<AccountWithRestoreAccess> accountsWithRestoreAccess)
A list of the AWS customer accounts authorized to restore the
snapshot.
|
void |
setActualIncrementalBackupSizeInMegaBytes(Double actualIncrementalBackupSizeInMegaBytes)
The size of the incremental backup.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone in which the cluster was created.
|
void |
setBackupProgressInMegaBytes(Double backupProgressInMegaBytes)
The number of megabytes that have been transferred to the snapshot
backup.
|
void |
setClusterCreateTime(Date clusterCreateTime)
The time (UTC) when the cluster was originally created.
|
void |
setClusterIdentifier(String clusterIdentifier)
The identifier of the cluster for which the snapshot was taken.
|
void |
setClusterVersion(String clusterVersion)
The version ID of the Amazon Redshift engine that is running on the
cluster.
|
void |
setCurrentBackupRateInMegaBytesPerSecond(Double currentBackupRateInMegaBytesPerSecond)
The number of megabytes per second being transferred to the snapshot
backup.
|
void |
setDBName(String dBName)
The name of the database that was created when the cluster was
created.
|
void |
setElapsedTimeInSeconds(Long elapsedTimeInSeconds)
The amount of time an in-progress snapshot backup has been running, or
the amount of time it took a completed backup to finish.
|
void |
setEncrypted(Boolean encrypted)
If
true , the data in the snapshot is encrypted at rest. |
void |
setEstimatedSecondsToCompletion(Long estimatedSecondsToCompletion)
The estimate of the time remaining before the snapshot backup will
complete.
|
void |
setMasterUsername(String masterUsername)
The master user name for the cluster.
|
void |
setNodeType(String nodeType)
The node type of the nodes in the cluster.
|
void |
setNumberOfNodes(Integer numberOfNodes)
The number of nodes in the cluster.
|
void |
setOwnerAccount(String ownerAccount)
For manual snapshots, the AWS customer account used to create or copy
the snapshot.
|
void |
setPort(Integer port)
The port that the cluster is listening on.
|
void |
setSnapshotCreateTime(Date snapshotCreateTime)
The time (UTC) when Amazon Redshift began the snapshot.
|
void |
setSnapshotIdentifier(String snapshotIdentifier)
The snapshot identifier that is provided in the request.
|
void |
setSnapshotType(String snapshotType)
The snapshot type.
|
void |
setStatus(String status)
The snapshot status.
|
void |
setTotalBackupSizeInMegaBytes(Double totalBackupSizeInMegaBytes)
The size of the complete set of backup data that would be used to
restore the cluster.
|
void |
setVpcId(String vpcId)
The VPC identifier of the cluster if the snapshot is from a cluster in
a VPC.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Snapshot |
withAccountsWithRestoreAccess(AccountWithRestoreAccess... accountsWithRestoreAccess)
A list of the AWS customer accounts authorized to restore the
snapshot.
|
Snapshot |
withAccountsWithRestoreAccess(Collection<AccountWithRestoreAccess> accountsWithRestoreAccess)
A list of the AWS customer accounts authorized to restore the
snapshot.
|
Snapshot |
withActualIncrementalBackupSizeInMegaBytes(Double actualIncrementalBackupSizeInMegaBytes)
The size of the incremental backup.
|
Snapshot |
withAvailabilityZone(String availabilityZone)
The Availability Zone in which the cluster was created.
|
Snapshot |
withBackupProgressInMegaBytes(Double backupProgressInMegaBytes)
The number of megabytes that have been transferred to the snapshot
backup.
|
Snapshot |
withClusterCreateTime(Date clusterCreateTime)
The time (UTC) when the cluster was originally created.
|
Snapshot |
withClusterIdentifier(String clusterIdentifier)
The identifier of the cluster for which the snapshot was taken.
|
Snapshot |
withClusterVersion(String clusterVersion)
The version ID of the Amazon Redshift engine that is running on the
cluster.
|
Snapshot |
withCurrentBackupRateInMegaBytesPerSecond(Double currentBackupRateInMegaBytesPerSecond)
The number of megabytes per second being transferred to the snapshot
backup.
|
Snapshot |
withDBName(String dBName)
The name of the database that was created when the cluster was
created.
|
Snapshot |
withElapsedTimeInSeconds(Long elapsedTimeInSeconds)
The amount of time an in-progress snapshot backup has been running, or
the amount of time it took a completed backup to finish.
|
Snapshot |
withEncrypted(Boolean encrypted)
If
true , the data in the snapshot is encrypted at rest. |
Snapshot |
withEstimatedSecondsToCompletion(Long estimatedSecondsToCompletion)
The estimate of the time remaining before the snapshot backup will
complete.
|
Snapshot |
withMasterUsername(String masterUsername)
The master user name for the cluster.
|
Snapshot |
withNodeType(String nodeType)
The node type of the nodes in the cluster.
|
Snapshot |
withNumberOfNodes(Integer numberOfNodes)
The number of nodes in the cluster.
|
Snapshot |
withOwnerAccount(String ownerAccount)
For manual snapshots, the AWS customer account used to create or copy
the snapshot.
|
Snapshot |
withPort(Integer port)
The port that the cluster is listening on.
|
Snapshot |
withSnapshotCreateTime(Date snapshotCreateTime)
The time (UTC) when Amazon Redshift began the snapshot.
|
Snapshot |
withSnapshotIdentifier(String snapshotIdentifier)
The snapshot identifier that is provided in the request.
|
Snapshot |
withSnapshotType(String snapshotType)
The snapshot type.
|
Snapshot |
withStatus(String status)
The snapshot status.
|
Snapshot |
withTotalBackupSizeInMegaBytes(Double totalBackupSizeInMegaBytes)
The size of the complete set of backup data that would be used to
restore the cluster.
|
Snapshot |
withVpcId(String vpcId)
The VPC identifier of the cluster if the snapshot is from a cluster in
a VPC.
|
public String getSnapshotIdentifier()
public void setSnapshotIdentifier(String snapshotIdentifier)
snapshotIdentifier
- The snapshot identifier that is provided in the request.public Snapshot withSnapshotIdentifier(String snapshotIdentifier)
Returns a reference to this object so that method calls can be chained together.
snapshotIdentifier
- The snapshot identifier that is provided in the request.public String getClusterIdentifier()
public void setClusterIdentifier(String clusterIdentifier)
clusterIdentifier
- The identifier of the cluster for which the snapshot was taken.public Snapshot withClusterIdentifier(String clusterIdentifier)
Returns a reference to this object so that method calls can be chained together.
clusterIdentifier
- The identifier of the cluster for which the snapshot was taken.public Date getSnapshotCreateTime()
public void setSnapshotCreateTime(Date snapshotCreateTime)
snapshotCreateTime
- The time (UTC) when Amazon Redshift began the snapshot. A snapshot
contains a copy of the cluster data as of this exact time.public Snapshot withSnapshotCreateTime(Date snapshotCreateTime)
Returns a reference to this object so that method calls can be chained together.
snapshotCreateTime
- The time (UTC) when Amazon Redshift began the snapshot. A snapshot
contains a copy of the cluster data as of this exact time.public String getStatus()
public void setStatus(String status)
status
- The snapshot status. The value of the status depends on the API
operation used. public Snapshot withStatus(String status)
Returns a reference to this object so that method calls can be chained together.
status
- The snapshot status. The value of the status depends on the API
operation used. public Integer getPort()
public void setPort(Integer port)
port
- The port that the cluster is listening on.public Snapshot withPort(Integer port)
Returns a reference to this object so that method calls can be chained together.
port
- The port that the cluster is listening on.public String getAvailabilityZone()
public void setAvailabilityZone(String availabilityZone)
availabilityZone
- The Availability Zone in which the cluster was created.public Snapshot withAvailabilityZone(String availabilityZone)
Returns a reference to this object so that method calls can be chained together.
availabilityZone
- The Availability Zone in which the cluster was created.public Date getClusterCreateTime()
public void setClusterCreateTime(Date clusterCreateTime)
clusterCreateTime
- The time (UTC) when the cluster was originally created.public Snapshot withClusterCreateTime(Date clusterCreateTime)
Returns a reference to this object so that method calls can be chained together.
clusterCreateTime
- The time (UTC) when the cluster was originally created.public String getMasterUsername()
public void setMasterUsername(String masterUsername)
masterUsername
- The master user name for the cluster.public Snapshot withMasterUsername(String masterUsername)
Returns a reference to this object so that method calls can be chained together.
masterUsername
- The master user name for the cluster.public String getClusterVersion()
public void setClusterVersion(String clusterVersion)
clusterVersion
- The version ID of the Amazon Redshift engine that is running on the
cluster.public Snapshot withClusterVersion(String clusterVersion)
Returns a reference to this object so that method calls can be chained together.
clusterVersion
- The version ID of the Amazon Redshift engine that is running on the
cluster.public String getSnapshotType()
public void setSnapshotType(String snapshotType)
snapshotType
- The snapshot type. Snapshots created using
CreateClusterSnapshot and CopyClusterSnapshot will be of
type "manual".public Snapshot withSnapshotType(String snapshotType)
Returns a reference to this object so that method calls can be chained together.
snapshotType
- The snapshot type. Snapshots created using
CreateClusterSnapshot and CopyClusterSnapshot will be of
type "manual".public String getNodeType()
public void setNodeType(String nodeType)
nodeType
- The node type of the nodes in the cluster.public Snapshot withNodeType(String nodeType)
Returns a reference to this object so that method calls can be chained together.
nodeType
- The node type of the nodes in the cluster.public Integer getNumberOfNodes()
public void setNumberOfNodes(Integer numberOfNodes)
numberOfNodes
- The number of nodes in the cluster.public Snapshot withNumberOfNodes(Integer numberOfNodes)
Returns a reference to this object so that method calls can be chained together.
numberOfNodes
- The number of nodes in the cluster.public String getDBName()
public void setDBName(String dBName)
dBName
- The name of the database that was created when the cluster was
created.public Snapshot withDBName(String dBName)
Returns a reference to this object so that method calls can be chained together.
dBName
- The name of the database that was created when the cluster was
created.public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- The VPC identifier of the cluster if the snapshot is from a cluster in
a VPC. Otherwise, this field is not in the output.public Snapshot withVpcId(String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The VPC identifier of the cluster if the snapshot is from a cluster in
a VPC. Otherwise, this field is not in the output.public Boolean isEncrypted()
true
, the data in the snapshot is encrypted at rest.true
, the data in the snapshot is encrypted at rest.public void setEncrypted(Boolean encrypted)
true
, the data in the snapshot is encrypted at rest.encrypted
- If true
, the data in the snapshot is encrypted at rest.public Snapshot withEncrypted(Boolean encrypted)
true
, the data in the snapshot is encrypted at rest.
Returns a reference to this object so that method calls can be chained together.
encrypted
- If true
, the data in the snapshot is encrypted at rest.public Boolean getEncrypted()
true
, the data in the snapshot is encrypted at rest.true
, the data in the snapshot is encrypted at rest.public List<AccountWithRestoreAccess> getAccountsWithRestoreAccess()
null
if no accounts are authorized.
Visible only to the snapshot owner.null
if no accounts are authorized.
Visible only to the snapshot owner.public void setAccountsWithRestoreAccess(Collection<AccountWithRestoreAccess> accountsWithRestoreAccess)
null
if no accounts are authorized.
Visible only to the snapshot owner.accountsWithRestoreAccess
- A list of the AWS customer accounts authorized to restore the
snapshot. Returns null
if no accounts are authorized.
Visible only to the snapshot owner.public Snapshot withAccountsWithRestoreAccess(AccountWithRestoreAccess... accountsWithRestoreAccess)
null
if no accounts are authorized.
Visible only to the snapshot owner.
Returns a reference to this object so that method calls can be chained together.
accountsWithRestoreAccess
- A list of the AWS customer accounts authorized to restore the
snapshot. Returns null
if no accounts are authorized.
Visible only to the snapshot owner.public Snapshot withAccountsWithRestoreAccess(Collection<AccountWithRestoreAccess> accountsWithRestoreAccess)
null
if no accounts are authorized.
Visible only to the snapshot owner.
Returns a reference to this object so that method calls can be chained together.
accountsWithRestoreAccess
- A list of the AWS customer accounts authorized to restore the
snapshot. Returns null
if no accounts are authorized.
Visible only to the snapshot owner.public String getOwnerAccount()
public void setOwnerAccount(String ownerAccount)
ownerAccount
- For manual snapshots, the AWS customer account used to create or copy
the snapshot. For automatic snapshots, the owner of the cluster. The
owner can perform all snapshot actions, such as sharing a manual
snapshot.public Snapshot withOwnerAccount(String ownerAccount)
Returns a reference to this object so that method calls can be chained together.
ownerAccount
- For manual snapshots, the AWS customer account used to create or copy
the snapshot. For automatic snapshots, the owner of the cluster. The
owner can perform all snapshot actions, such as sharing a manual
snapshot.public Double getTotalBackupSizeInMegaBytes()
public void setTotalBackupSizeInMegaBytes(Double totalBackupSizeInMegaBytes)
totalBackupSizeInMegaBytes
- The size of the complete set of backup data that would be used to
restore the cluster.public Snapshot withTotalBackupSizeInMegaBytes(Double totalBackupSizeInMegaBytes)
Returns a reference to this object so that method calls can be chained together.
totalBackupSizeInMegaBytes
- The size of the complete set of backup data that would be used to
restore the cluster.public Double getActualIncrementalBackupSizeInMegaBytes()
public void setActualIncrementalBackupSizeInMegaBytes(Double actualIncrementalBackupSizeInMegaBytes)
actualIncrementalBackupSizeInMegaBytes
- The size of the incremental backup.public Snapshot withActualIncrementalBackupSizeInMegaBytes(Double actualIncrementalBackupSizeInMegaBytes)
Returns a reference to this object so that method calls can be chained together.
actualIncrementalBackupSizeInMegaBytes
- The size of the incremental backup.public Double getBackupProgressInMegaBytes()
public void setBackupProgressInMegaBytes(Double backupProgressInMegaBytes)
backupProgressInMegaBytes
- The number of megabytes that have been transferred to the snapshot
backup.public Snapshot withBackupProgressInMegaBytes(Double backupProgressInMegaBytes)
Returns a reference to this object so that method calls can be chained together.
backupProgressInMegaBytes
- The number of megabytes that have been transferred to the snapshot
backup.public Double getCurrentBackupRateInMegaBytesPerSecond()
0
for a completed backup.0
for a completed backup.public void setCurrentBackupRateInMegaBytesPerSecond(Double currentBackupRateInMegaBytesPerSecond)
0
for a completed backup.currentBackupRateInMegaBytesPerSecond
- The number of megabytes per second being transferred to the snapshot
backup. Returns 0
for a completed backup.public Snapshot withCurrentBackupRateInMegaBytesPerSecond(Double currentBackupRateInMegaBytesPerSecond)
0
for a completed backup.
Returns a reference to this object so that method calls can be chained together.
currentBackupRateInMegaBytesPerSecond
- The number of megabytes per second being transferred to the snapshot
backup. Returns 0
for a completed backup.public Long getEstimatedSecondsToCompletion()
0
for a completed backup.0
for a completed backup.public void setEstimatedSecondsToCompletion(Long estimatedSecondsToCompletion)
0
for a completed backup.estimatedSecondsToCompletion
- The estimate of the time remaining before the snapshot backup will
complete. Returns 0
for a completed backup.public Snapshot withEstimatedSecondsToCompletion(Long estimatedSecondsToCompletion)
0
for a completed backup.
Returns a reference to this object so that method calls can be chained together.
estimatedSecondsToCompletion
- The estimate of the time remaining before the snapshot backup will
complete. Returns 0
for a completed backup.public Long getElapsedTimeInSeconds()
public void setElapsedTimeInSeconds(Long elapsedTimeInSeconds)
elapsedTimeInSeconds
- The amount of time an in-progress snapshot backup has been running, or
the amount of time it took a completed backup to finish.public Snapshot withElapsedTimeInSeconds(Long elapsedTimeInSeconds)
Returns a reference to this object so that method calls can be chained together.
elapsedTimeInSeconds
- The amount of time an in-progress snapshot backup has been running, or
the amount of time it took a completed backup to finish.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.