public class CopySnapshotRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Represents the input of a CopySnapshotMessage action.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
sourceSnapshotName
The name of an existing snapshot from which to copy.
|
private java.lang.String |
targetSnapshotName
A name for the copied snapshot.
|
NOOP
Constructor and Description |
---|
CopySnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
CopySnapshotRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getSourceSnapshotName()
The name of an existing snapshot from which to copy.
|
java.lang.String |
getTargetSnapshotName()
A name for the copied snapshot.
|
int |
hashCode() |
void |
setSourceSnapshotName(java.lang.String sourceSnapshotName)
The name of an existing snapshot from which to copy.
|
void |
setTargetSnapshotName(java.lang.String targetSnapshotName)
A name for the copied snapshot.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CopySnapshotRequest |
withSourceSnapshotName(java.lang.String sourceSnapshotName)
The name of an existing snapshot from which to copy.
|
CopySnapshotRequest |
withTargetSnapshotName(java.lang.String targetSnapshotName)
A name for the copied 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 sourceSnapshotName
The name of an existing snapshot from which to copy.
private java.lang.String targetSnapshotName
A name for the copied snapshot.
public void setSourceSnapshotName(java.lang.String sourceSnapshotName)
The name of an existing snapshot from which to copy.
sourceSnapshotName
- The name of an existing snapshot from which to copy.public java.lang.String getSourceSnapshotName()
The name of an existing snapshot from which to copy.
public CopySnapshotRequest withSourceSnapshotName(java.lang.String sourceSnapshotName)
The name of an existing snapshot from which to copy.
sourceSnapshotName
- The name of an existing snapshot from which to copy.public void setTargetSnapshotName(java.lang.String targetSnapshotName)
A name for the copied snapshot.
targetSnapshotName
- A name for the copied snapshot.public java.lang.String getTargetSnapshotName()
A name for the copied snapshot.
public CopySnapshotRequest withTargetSnapshotName(java.lang.String targetSnapshotName)
A name for the copied snapshot.
targetSnapshotName
- A name for the copied 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 CopySnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()