@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 (
Disk-Virginia-1 ). |
String |
getDiskSnapshotName()
The name of the destination disk snapshot (
my-disk-snapshot ) based on the source disk. |
String |
getInstanceName()
The unique name of the source instance (
Amazon_Linux-512MB-Virginia-1 ). |
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 (
Disk-Virginia-1 ). |
void |
setDiskSnapshotName(String diskSnapshotName)
The name of the destination disk snapshot (
my-disk-snapshot ) based on the source disk. |
void |
setInstanceName(String instanceName)
The unique name of the source instance (
Amazon_Linux-512MB-Virginia-1 ). |
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 (
Disk-Virginia-1 ). |
CreateDiskSnapshotRequest |
withDiskSnapshotName(String diskSnapshotName)
The name of the destination disk snapshot (
my-disk-snapshot ) based on the source disk. |
CreateDiskSnapshotRequest |
withInstanceName(String instanceName)
The unique name of the source instance (
Amazon_Linux-512MB-Virginia-1 ). |
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, withSdkRequestTimeout
public void setDiskName(String diskName)
The unique name of the source disk (Disk-Virginia-1
).
This parameter cannot be defined together with the instance name
parameter. The
disk name
and instance name
parameters are mutually exclusive.
diskName
- The unique name of the source disk (Disk-Virginia-1
).
This parameter cannot be defined together with the instance name
parameter. The
disk name
and instance name
parameters are mutually exclusive.
public String getDiskName()
The unique name of the source disk (Disk-Virginia-1
).
This parameter cannot be defined together with the instance name
parameter. The
disk name
and instance name
parameters are mutually exclusive.
Disk-Virginia-1
).
This parameter cannot be defined together with the instance name
parameter. The
disk name
and instance name
parameters are mutually exclusive.
public CreateDiskSnapshotRequest withDiskName(String diskName)
The unique name of the source disk (Disk-Virginia-1
).
This parameter cannot be defined together with the instance name
parameter. The
disk name
and instance name
parameters are mutually exclusive.
diskName
- The unique name of the source disk (Disk-Virginia-1
).
This parameter cannot be defined together with the instance name
parameter. The
disk name
and instance name
parameters are mutually exclusive.
public void setDiskSnapshotName(String diskSnapshotName)
The name of the destination disk snapshot (my-disk-snapshot
) based on the source disk.
diskSnapshotName
- The name of the destination disk snapshot (my-disk-snapshot
) based on the source disk.public String getDiskSnapshotName()
The name of the destination disk snapshot (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 (my-disk-snapshot
) based on the source disk.
diskSnapshotName
- The name of the destination disk snapshot (my-disk-snapshot
) based on the source disk.public void setInstanceName(String instanceName)
The unique name of the source instance (Amazon_Linux-512MB-Virginia-1
). When this is defined, a
snapshot of the instance's system volume is created.
This parameter cannot be defined together with the disk name
parameter. The
instance name
and disk name
parameters are mutually exclusive.
instanceName
- The unique name of the source instance (Amazon_Linux-512MB-Virginia-1
). When this is defined,
a snapshot of the instance's system volume is created.
This parameter cannot be defined together with the disk name
parameter. The
instance name
and disk name
parameters are mutually exclusive.
public String getInstanceName()
The unique name of the source instance (Amazon_Linux-512MB-Virginia-1
). When this is defined, a
snapshot of the instance's system volume is created.
This parameter cannot be defined together with the disk name
parameter. The
instance name
and disk name
parameters are mutually exclusive.
Amazon_Linux-512MB-Virginia-1
). When this is
defined, a snapshot of the instance's system volume is created.
This parameter cannot be defined together with the disk name
parameter. The
instance name
and disk name
parameters are mutually exclusive.
public CreateDiskSnapshotRequest withInstanceName(String instanceName)
The unique name of the source instance (Amazon_Linux-512MB-Virginia-1
). When this is defined, a
snapshot of the instance's system volume is created.
This parameter cannot be defined together with the disk name
parameter. The
instance name
and disk name
parameters are mutually exclusive.
instanceName
- The unique name of the source instance (Amazon_Linux-512MB-Virginia-1
). When this is defined,
a snapshot of the instance's system volume is created.
This parameter cannot be defined together with the disk name
parameter. The
instance name
and disk name
parameters are mutually exclusive.
public List<Tag> getTags()
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
Use the TagResource
action to tag a resource after it's created.
public void setTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
tags
- The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
public CreateDiskSnapshotRequest withTags(Tag... tags)
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
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.
Use the TagResource
action to tag a resource after it's created.
public CreateDiskSnapshotRequest withTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
tags
- The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
public String toString()
toString
in class Object
Object.toString()
public CreateDiskSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Privacy | Site terms | Cookie preferences | © 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.