public class CreateSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateSnapshot operation.
Creates a snapshot of an existing directory.
You cannot take snapshots of extended or connected directories.
NOOP| Constructor and Description |
|---|
CreateSnapshotRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateSnapshotRequest |
clone() |
boolean |
equals(Object obj) |
String |
getDirectoryId()
The identifier of the directory to take a snapshot of.
|
String |
getName()
The descriptive name to apply to the snapshot.
|
int |
hashCode() |
void |
setDirectoryId(String directoryId)
The identifier of the directory to take a snapshot of.
|
void |
setName(String name)
The descriptive name to apply to the snapshot.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateSnapshotRequest |
withDirectoryId(String directoryId)
The identifier of the directory to take a snapshot of.
|
CreateSnapshotRequest |
withName(String name)
The descriptive name to apply to the snapshot.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getDirectoryId()
Constraints:
Pattern: ^d-[0-9a-f]{10}$
public void setDirectoryId(String directoryId)
Constraints:
Pattern: ^d-[0-9a-f]{10}$
directoryId - The identifier of the directory to take a snapshot of.public CreateSnapshotRequest withDirectoryId(String directoryId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^d-[0-9a-f]{10}$
directoryId - The identifier of the directory to take a snapshot of.public String getName()
Constraints:
Length: 0 - 128
Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$
public void setName(String name)
Constraints:
Length: 0 - 128
Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$
name - The descriptive name to apply to the snapshot.public CreateSnapshotRequest withName(String name)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 128
Pattern: ^([a-zA-Z0-9_])[\\a-zA-Z0-9_@#%*+=:?./!\s-]*$
name - The descriptive name to apply to the snapshot.public String toString()
toString in class ObjectObject.toString()public CreateSnapshotRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.