public class CopySnapshotRequest extends AmazonWebServiceRequest implements Serializable
CopySnapshot operation
.
The CopySnapshot operation makes a copy of an existing snapshot.
NOOP
Constructor and Description |
---|
CopySnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getSourceSnapshotName()
The name of an existing snapshot from which to copy.
|
String |
getTargetSnapshotName()
A name for the copied snapshot.
|
int |
hashCode() |
void |
setSourceSnapshotName(String sourceSnapshotName)
The name of an existing snapshot from which to copy.
|
void |
setTargetSnapshotName(String targetSnapshotName)
A name for the copied snapshot.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CopySnapshotRequest |
withSourceSnapshotName(String sourceSnapshotName)
The name of an existing snapshot from which to copy.
|
CopySnapshotRequest |
withTargetSnapshotName(String targetSnapshotName)
A name for the copied snapshot.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getSourceSnapshotName()
public void setSourceSnapshotName(String sourceSnapshotName)
sourceSnapshotName
- The name of an existing snapshot from which to copy.public CopySnapshotRequest withSourceSnapshotName(String sourceSnapshotName)
Returns a reference to this object so that method calls can be chained together.
sourceSnapshotName
- The name of an existing snapshot from which to copy.public String getTargetSnapshotName()
public void setTargetSnapshotName(String targetSnapshotName)
targetSnapshotName
- A name for the copied snapshot.public CopySnapshotRequest withTargetSnapshotName(String targetSnapshotName)
Returns a reference to this object so that method calls can be chained together.
targetSnapshotName
- A name for the copied snapshot.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.