public class CreateSnapshotRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Contains the inputs for the CreateSnapshot operation.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
directoryId
The identifier of the directory of which to take a snapshot.
|
private java.lang.String |
name
The descriptive name to apply to the snapshot.
|
NOOP
Constructor and Description |
---|
CreateSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
CreateSnapshotRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDirectoryId()
The identifier of the directory of which to take a snapshot.
|
java.lang.String |
getName()
The descriptive name to apply to the snapshot.
|
int |
hashCode() |
void |
setDirectoryId(java.lang.String directoryId)
The identifier of the directory of which to take a snapshot.
|
void |
setName(java.lang.String name)
The descriptive name to apply to the snapshot.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateSnapshotRequest |
withDirectoryId(java.lang.String directoryId)
The identifier of the directory of which to take a snapshot.
|
CreateSnapshotRequest |
withName(java.lang.String name)
The descriptive name to apply to the snapshot.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String directoryId
The identifier of the directory of which to take a snapshot.
private java.lang.String name
The descriptive name to apply to the snapshot.
public void setDirectoryId(java.lang.String directoryId)
The identifier of the directory of which to take a snapshot.
directoryId
- The identifier of the directory of which to take a snapshot.public java.lang.String getDirectoryId()
The identifier of the directory of which to take a snapshot.
public CreateSnapshotRequest withDirectoryId(java.lang.String directoryId)
The identifier of the directory of which to take a snapshot.
directoryId
- The identifier of the directory of which to take a snapshot.public void setName(java.lang.String name)
The descriptive name to apply to the snapshot.
name
- The descriptive name to apply to the snapshot.public java.lang.String getName()
The descriptive name to apply to the snapshot.
public CreateSnapshotRequest withName(java.lang.String name)
The descriptive name to apply to the snapshot.
name
- The descriptive name to apply to the snapshot.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()