@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RestoreStatus extends Object implements Serializable, Cloneable
Describes the status of a cluster restore action. Returns null if the cluster was not created by restoring a snapshot.
Constructor and Description |
---|
RestoreStatus() |
Modifier and Type | Method and Description |
---|---|
RestoreStatus |
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 will complete.
|
Long |
getProgressInMegaBytes()
The number of megabytes that have been transferred from snapshot storage.
|
Long |
getSnapshotSizeInMegaBytes()
The size of the set of snapshot data used to restore the cluster.
|
String |
getStatus()
The status of the restore action.
|
int |
hashCode() |
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 will complete.
|
void |
setProgressInMegaBytes(Long progressInMegaBytes)
The number of megabytes that have been transferred from snapshot storage.
|
void |
setSnapshotSizeInMegaBytes(Long snapshotSizeInMegaBytes)
The size of the set of snapshot data used to restore the cluster.
|
void |
setStatus(String status)
The status of the restore action.
|
String |
toString()
Returns a string representation of this object.
|
RestoreStatus |
withCurrentRestoreRateInMegaBytesPerSecond(Double currentRestoreRateInMegaBytesPerSecond)
The number of megabytes per second being transferred from the backup storage.
|
RestoreStatus |
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.
|
RestoreStatus |
withEstimatedTimeToCompletionInSeconds(Long estimatedTimeToCompletionInSeconds)
The estimate of the time remaining before the restore will complete.
|
RestoreStatus |
withProgressInMegaBytes(Long progressInMegaBytes)
The number of megabytes that have been transferred from snapshot storage.
|
RestoreStatus |
withSnapshotSizeInMegaBytes(Long snapshotSizeInMegaBytes)
The size of the set of snapshot data used to restore the cluster.
|
RestoreStatus |
withStatus(String status)
The status of the restore action.
|
public void setStatus(String status)
The status of the restore action. Returns starting, restoring, completed, or failed.
status
- The status of the restore action. Returns starting, restoring, completed, or failed.public String getStatus()
The status of the restore action. Returns starting, restoring, completed, or failed.
public RestoreStatus withStatus(String status)
The status of the restore action. Returns starting, restoring, completed, or failed.
status
- The status of the restore action. Returns starting, restoring, completed, or failed.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 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 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 node types.
public RestoreStatus 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 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 node types.public void setSnapshotSizeInMegaBytes(Long snapshotSizeInMegaBytes)
The size of the set of snapshot data used to restore the cluster. This field is only updated when you restore to DC2 node types.
snapshotSizeInMegaBytes
- The size of the set of snapshot data used to restore the cluster. This field is only updated when you
restore to DC2 node types.public Long getSnapshotSizeInMegaBytes()
The size of the set of snapshot data used to restore the cluster. This field is only updated when you restore to DC2 node types.
public RestoreStatus withSnapshotSizeInMegaBytes(Long snapshotSizeInMegaBytes)
The size of the set of snapshot data used to restore the cluster. This field is only updated when you restore to DC2 node types.
snapshotSizeInMegaBytes
- The size of the set of snapshot data used to restore the cluster. This field is only updated when you
restore to DC2 node types.public void setProgressInMegaBytes(Long progressInMegaBytes)
The number of megabytes that have been transferred from snapshot storage. This field is only updated when you restore to DC2 node types.
progressInMegaBytes
- The number of megabytes that have been transferred from snapshot storage. This field is only updated when
you restore to DC2 node types.public Long getProgressInMegaBytes()
The number of megabytes that have been transferred from snapshot storage. This field is only updated when you restore to DC2 node types.
public RestoreStatus withProgressInMegaBytes(Long progressInMegaBytes)
The number of megabytes that have been transferred from snapshot storage. This field is only updated when you restore to DC2 node types.
progressInMegaBytes
- The number of megabytes that have been transferred from snapshot storage. This field is only updated when
you restore to DC2 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 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 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 node types.
public RestoreStatus 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 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 node types.public void setEstimatedTimeToCompletionInSeconds(Long estimatedTimeToCompletionInSeconds)
The estimate of the time remaining before the restore will complete. Returns 0 for a completed restore. This field is only updated when you restore to DC2 node types.
estimatedTimeToCompletionInSeconds
- The estimate of the time remaining before the restore will complete. Returns 0 for a completed restore.
This field is only updated when you restore to DC2 node types.public Long getEstimatedTimeToCompletionInSeconds()
The estimate of the time remaining before the restore will complete. Returns 0 for a completed restore. This field is only updated when you restore to DC2 node types.
public RestoreStatus withEstimatedTimeToCompletionInSeconds(Long estimatedTimeToCompletionInSeconds)
The estimate of the time remaining before the restore will complete. Returns 0 for a completed restore. This field is only updated when you restore to DC2 node types.
estimatedTimeToCompletionInSeconds
- The estimate of the time remaining before the restore will complete. Returns 0 for a completed restore.
This field is only updated when you restore to DC2 node types.public String toString()
toString
in class Object
Object.toString()
public RestoreStatus clone()