@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsRedshiftClusterRestoreStatus extends Object implements Serializable, Cloneable, StructuredPojo
Information about the status of a cluster restore action. It only applies if the cluster was created by restoring a snapshot.
Constructor and Description |
---|
AwsRedshiftClusterRestoreStatus() |
Modifier and Type | Method and Description |
---|---|
AwsRedshiftClusterRestoreStatus |
clone() |
boolean |
equals(Object obj) |
Double |
getCurrentRestoreRateInMegaBytesPerSecond()
The number of megabytes per second being transferred from the backup storage.
|
Long |
getElapsedTimeInSeconds()
The amount of time an in-progress restore has been running, or the amount of time it took a completed restore to
finish.
|
Long |
getEstimatedTimeToCompletionInSeconds()
The estimate of the time remaining before the restore is complete.
|
Long |
getProgressInMegaBytes()
The number of megabytes that were transferred from snapshot storage.
|
Long |
getSnapshotSizeInMegaBytes()
The size of the set of snapshot data that was used to restore the cluster.
|
String |
getStatus()
The status of the restore action.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCurrentRestoreRateInMegaBytesPerSecond(Double currentRestoreRateInMegaBytesPerSecond)
The number of megabytes per second being transferred from the backup storage.
|
void |
setElapsedTimeInSeconds(Long elapsedTimeInSeconds)
The amount of time an in-progress restore has been running, or the amount of time it took a completed restore to
finish.
|
void |
setEstimatedTimeToCompletionInSeconds(Long estimatedTimeToCompletionInSeconds)
The estimate of the time remaining before the restore is complete.
|
void |
setProgressInMegaBytes(Long progressInMegaBytes)
The number of megabytes that were transferred from snapshot storage.
|
void |
setSnapshotSizeInMegaBytes(Long snapshotSizeInMegaBytes)
The size of the set of snapshot data that was used to restore the cluster.
|
void |
setStatus(String status)
The status of the restore action.
|
String |
toString()
Returns a string representation of this object.
|
AwsRedshiftClusterRestoreStatus |
withCurrentRestoreRateInMegaBytesPerSecond(Double currentRestoreRateInMegaBytesPerSecond)
The number of megabytes per second being transferred from the backup storage.
|
AwsRedshiftClusterRestoreStatus |
withElapsedTimeInSeconds(Long elapsedTimeInSeconds)
The amount of time an in-progress restore has been running, or the amount of time it took a completed restore to
finish.
|
AwsRedshiftClusterRestoreStatus |
withEstimatedTimeToCompletionInSeconds(Long estimatedTimeToCompletionInSeconds)
The estimate of the time remaining before the restore is complete.
|
AwsRedshiftClusterRestoreStatus |
withProgressInMegaBytes(Long progressInMegaBytes)
The number of megabytes that were transferred from snapshot storage.
|
AwsRedshiftClusterRestoreStatus |
withSnapshotSizeInMegaBytes(Long snapshotSizeInMegaBytes)
The size of the set of snapshot data that was used to restore the cluster.
|
AwsRedshiftClusterRestoreStatus |
withStatus(String status)
The status of the restore action.
|
public void setCurrentRestoreRateInMegaBytesPerSecond(Double currentRestoreRateInMegaBytesPerSecond)
The number of megabytes per second being transferred from the backup storage. Returns the average rate for a completed backup.
This field is only updated when you restore to DC2 and DS2 node types.
currentRestoreRateInMegaBytesPerSecond
- The number of megabytes per second being transferred from the backup storage. Returns the average rate for
a completed backup.
This field is only updated when you restore to DC2 and DS2 node types.
public Double getCurrentRestoreRateInMegaBytesPerSecond()
The number of megabytes per second being transferred from the backup storage. Returns the average rate for a completed backup.
This field is only updated when you restore to DC2 and DS2 node types.
This field is only updated when you restore to DC2 and DS2 node types.
public AwsRedshiftClusterRestoreStatus withCurrentRestoreRateInMegaBytesPerSecond(Double currentRestoreRateInMegaBytesPerSecond)
The number of megabytes per second being transferred from the backup storage. Returns the average rate for a completed backup.
This field is only updated when you restore to DC2 and DS2 node types.
currentRestoreRateInMegaBytesPerSecond
- The number of megabytes per second being transferred from the backup storage. Returns the average rate for
a completed backup.
This field is only updated when you restore to DC2 and DS2 node types.
public void setElapsedTimeInSeconds(Long elapsedTimeInSeconds)
The amount of time an in-progress restore has been running, or the amount of time it took a completed restore to finish.
This field is only updated when you restore to DC2 and DS2 node types.
elapsedTimeInSeconds
- The amount of time an in-progress restore has been running, or the amount of time it took a completed
restore to finish.
This field is only updated when you restore to DC2 and DS2 node types.
public Long getElapsedTimeInSeconds()
The amount of time an in-progress restore has been running, or the amount of time it took a completed restore to finish.
This field is only updated when you restore to DC2 and DS2 node types.
This field is only updated when you restore to DC2 and DS2 node types.
public AwsRedshiftClusterRestoreStatus withElapsedTimeInSeconds(Long elapsedTimeInSeconds)
The amount of time an in-progress restore has been running, or the amount of time it took a completed restore to finish.
This field is only updated when you restore to DC2 and DS2 node types.
elapsedTimeInSeconds
- The amount of time an in-progress restore has been running, or the amount of time it took a completed
restore to finish.
This field is only updated when you restore to DC2 and DS2 node types.
public void setEstimatedTimeToCompletionInSeconds(Long estimatedTimeToCompletionInSeconds)
The estimate of the time remaining before the restore is complete. Returns 0 for a completed restore.
This field is only updated when you restore to DC2 and DS2 node types.
estimatedTimeToCompletionInSeconds
- The estimate of the time remaining before the restore is complete. Returns 0 for a completed restore.
This field is only updated when you restore to DC2 and DS2 node types.
public Long getEstimatedTimeToCompletionInSeconds()
The estimate of the time remaining before the restore is complete. Returns 0 for a completed restore.
This field is only updated when you restore to DC2 and DS2 node types.
This field is only updated when you restore to DC2 and DS2 node types.
public AwsRedshiftClusterRestoreStatus withEstimatedTimeToCompletionInSeconds(Long estimatedTimeToCompletionInSeconds)
The estimate of the time remaining before the restore is complete. Returns 0 for a completed restore.
This field is only updated when you restore to DC2 and DS2 node types.
estimatedTimeToCompletionInSeconds
- The estimate of the time remaining before the restore is complete. Returns 0 for a completed restore.
This field is only updated when you restore to DC2 and DS2 node types.
public void setProgressInMegaBytes(Long progressInMegaBytes)
The number of megabytes that were transferred from snapshot storage.
This field is only updated when you restore to DC2 and DS2 node types.
progressInMegaBytes
- The number of megabytes that were transferred from snapshot storage.
This field is only updated when you restore to DC2 and DS2 node types.
public Long getProgressInMegaBytes()
The number of megabytes that were transferred from snapshot storage.
This field is only updated when you restore to DC2 and DS2 node types.
This field is only updated when you restore to DC2 and DS2 node types.
public AwsRedshiftClusterRestoreStatus withProgressInMegaBytes(Long progressInMegaBytes)
The number of megabytes that were transferred from snapshot storage.
This field is only updated when you restore to DC2 and DS2 node types.
progressInMegaBytes
- The number of megabytes that were transferred from snapshot storage.
This field is only updated when you restore to DC2 and DS2 node types.
public void setSnapshotSizeInMegaBytes(Long snapshotSizeInMegaBytes)
The size of the set of snapshot data that was used to restore the cluster.
This field is only updated when you restore to DC2 and DS2 node types.
snapshotSizeInMegaBytes
- The size of the set of snapshot data that was used to restore the cluster.
This field is only updated when you restore to DC2 and DS2 node types.
public Long getSnapshotSizeInMegaBytes()
The size of the set of snapshot data that was used to restore the cluster.
This field is only updated when you restore to DC2 and DS2 node types.
This field is only updated when you restore to DC2 and DS2 node types.
public AwsRedshiftClusterRestoreStatus withSnapshotSizeInMegaBytes(Long snapshotSizeInMegaBytes)
The size of the set of snapshot data that was used to restore the cluster.
This field is only updated when you restore to DC2 and DS2 node types.
snapshotSizeInMegaBytes
- The size of the set of snapshot data that was used to restore the cluster.
This field is only updated when you restore to DC2 and DS2 node types.
public void setStatus(String status)
The status of the restore action.
Valid values: starting
| restoring
| completed
| failed
status
- The status of the restore action.
Valid values: starting
| restoring
| completed
|
failed
public String getStatus()
The status of the restore action.
Valid values: starting
| restoring
| completed
| failed
Valid values: starting
| restoring
| completed
|
failed
public AwsRedshiftClusterRestoreStatus withStatus(String status)
The status of the restore action.
Valid values: starting
| restoring
| completed
| failed
status
- The status of the restore action.
Valid values: starting
| restoring
| completed
|
failed
public String toString()
toString
in class Object
Object.toString()
public AwsRedshiftClusterRestoreStatus clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.