public class RestoreFromSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
RestoreFromSnapshot operation.
Restores a directory using an existing directory snapshot.
When you restore a directory from a snapshot, any changes made to the directory after the snapshot date are overwritten.
This action returns as soon as the restore operation is initiated. You
can monitor the progress of the restore operation by calling the
DescribeDirectories operation with the directory identifier. When the
DirectoryDescription.Stage value changes to Active
, the restore operation is complete.
NOOP| Constructor and Description |
|---|
RestoreFromSnapshotRequest() |
| Modifier and Type | Method and Description |
|---|---|
RestoreFromSnapshotRequest |
clone() |
boolean |
equals(Object obj) |
String |
getSnapshotId()
The identifier of the snapshot to restore from.
|
int |
hashCode() |
void |
setSnapshotId(String snapshotId)
The identifier of the snapshot to restore from.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RestoreFromSnapshotRequest |
withSnapshotId(String snapshotId)
The identifier of the snapshot to restore from.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getSnapshotId()
Constraints:
Pattern: ^s-[0-9a-f]{10}$
public void setSnapshotId(String snapshotId)
Constraints:
Pattern: ^s-[0-9a-f]{10}$
snapshotId - The identifier of the snapshot to restore from.public RestoreFromSnapshotRequest withSnapshotId(String snapshotId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^s-[0-9a-f]{10}$
snapshotId - The identifier of the snapshot to restore from.public String toString()
toString in class ObjectObject.toString()public RestoreFromSnapshotRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.