@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateDiskSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreateDiskSnapshotRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateDiskSnapshotRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDiskName()
The unique name of the source disk (e.g.,
my-source-disk). |
String |
getDiskSnapshotName()
The name of the destination disk snapshot (e.g.,
my-disk-snapshot) based on the source disk. |
List<Tag> |
getTags()
The tag keys and optional values to add to the resource during create.
|
int |
hashCode() |
void |
setDiskName(String diskName)
The unique name of the source disk (e.g.,
my-source-disk). |
void |
setDiskSnapshotName(String diskSnapshotName)
The name of the destination disk snapshot (e.g.,
my-disk-snapshot) based on the source disk. |
void |
setTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
|
String |
toString()
Returns a string representation of this object.
|
CreateDiskSnapshotRequest |
withDiskName(String diskName)
The unique name of the source disk (e.g.,
my-source-disk). |
CreateDiskSnapshotRequest |
withDiskSnapshotName(String diskSnapshotName)
The name of the destination disk snapshot (e.g.,
my-disk-snapshot) based on the source disk. |
CreateDiskSnapshotRequest |
withTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
|
CreateDiskSnapshotRequest |
withTags(Tag... tags)
The tag keys and optional values to add to the resource during create.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setDiskName(String diskName)
The unique name of the source disk (e.g., my-source-disk).
diskName - The unique name of the source disk (e.g., my-source-disk).public String getDiskName()
The unique name of the source disk (e.g., my-source-disk).
my-source-disk).public CreateDiskSnapshotRequest withDiskName(String diskName)
The unique name of the source disk (e.g., my-source-disk).
diskName - The unique name of the source disk (e.g., my-source-disk).public void setDiskSnapshotName(String diskSnapshotName)
The name of the destination disk snapshot (e.g., my-disk-snapshot) based on the source disk.
diskSnapshotName - The name of the destination disk snapshot (e.g., my-disk-snapshot) based on the source disk.public String getDiskSnapshotName()
The name of the destination disk snapshot (e.g., my-disk-snapshot) based on the source disk.
my-disk-snapshot) based on the source disk.public CreateDiskSnapshotRequest withDiskSnapshotName(String diskSnapshotName)
The name of the destination disk snapshot (e.g., my-disk-snapshot) based on the source disk.
diskSnapshotName - The name of the destination disk snapshot (e.g., my-disk-snapshot) based on the source disk.public List<Tag> getTags()
The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource operation.
To tag a resource after it has been created, see the tag resource operation.
public void setTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource operation.
tags - The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource operation.
public CreateDiskSnapshotRequest withTags(Tag... tags)
The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource operation.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the
existing values.
tags - The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource operation.
public CreateDiskSnapshotRequest withTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource operation.
tags - The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource operation.
public String toString()
toString in class ObjectObject.toString()public CreateDiskSnapshotRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.