@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateDiskFromSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreateDiskFromSnapshotRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateDiskFromSnapshotRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Availability Zone where you want to create the disk (e.g.,
us-east-2a). |
String |
getDiskName()
The unique Lightsail disk name (e.g.,
my-disk). |
String |
getDiskSnapshotName()
The name of the disk snapshot (e.g.,
my-snapshot) from which to create the new storage disk. |
Integer |
getSizeInGb()
The size of the disk in GB (e.g.,
32). |
List<Tag> |
getTags()
The tag keys and optional values to add to the resource during create.
|
int |
hashCode() |
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone where you want to create the disk (e.g.,
us-east-2a). |
void |
setDiskName(String diskName)
The unique Lightsail disk name (e.g.,
my-disk). |
void |
setDiskSnapshotName(String diskSnapshotName)
The name of the disk snapshot (e.g.,
my-snapshot) from which to create the new storage disk. |
void |
setSizeInGb(Integer sizeInGb)
The size of the disk in GB (e.g.,
32). |
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.
|
CreateDiskFromSnapshotRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone where you want to create the disk (e.g.,
us-east-2a). |
CreateDiskFromSnapshotRequest |
withDiskName(String diskName)
The unique Lightsail disk name (e.g.,
my-disk). |
CreateDiskFromSnapshotRequest |
withDiskSnapshotName(String diskSnapshotName)
The name of the disk snapshot (e.g.,
my-snapshot) from which to create the new storage disk. |
CreateDiskFromSnapshotRequest |
withSizeInGb(Integer sizeInGb)
The size of the disk in GB (e.g.,
32). |
CreateDiskFromSnapshotRequest |
withTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
|
CreateDiskFromSnapshotRequest |
withTags(Tag... tags)
The tag keys and optional values to add to the resource during create.
|
addHandlerContext, copyBaseTo, 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 Lightsail disk name (e.g., my-disk).
diskName - The unique Lightsail disk name (e.g., my-disk).public String getDiskName()
The unique Lightsail disk name (e.g., my-disk).
my-disk).public CreateDiskFromSnapshotRequest withDiskName(String diskName)
The unique Lightsail disk name (e.g., my-disk).
diskName - The unique Lightsail disk name (e.g., my-disk).public void setDiskSnapshotName(String diskSnapshotName)
The name of the disk snapshot (e.g., my-snapshot) from which to create the new storage disk.
diskSnapshotName - The name of the disk snapshot (e.g., my-snapshot) from which to create the new storage disk.public String getDiskSnapshotName()
The name of the disk snapshot (e.g., my-snapshot) from which to create the new storage disk.
my-snapshot) from which to create the new storage disk.public CreateDiskFromSnapshotRequest withDiskSnapshotName(String diskSnapshotName)
The name of the disk snapshot (e.g., my-snapshot) from which to create the new storage disk.
diskSnapshotName - The name of the disk snapshot (e.g., my-snapshot) from which to create the new storage disk.public void setAvailabilityZone(String availabilityZone)
The Availability Zone where you want to create the disk (e.g., us-east-2a). Choose the same
Availability Zone as the Lightsail instance where you want to create the disk.
Use the GetRegions operation to list the Availability Zones where Lightsail is currently available.
availabilityZone - The Availability Zone where you want to create the disk (e.g., us-east-2a). Choose the same
Availability Zone as the Lightsail instance where you want to create the disk.
Use the GetRegions operation to list the Availability Zones where Lightsail is currently available.
public String getAvailabilityZone()
The Availability Zone where you want to create the disk (e.g., us-east-2a). Choose the same
Availability Zone as the Lightsail instance where you want to create the disk.
Use the GetRegions operation to list the Availability Zones where Lightsail is currently available.
us-east-2a). Choose the same
Availability Zone as the Lightsail instance where you want to create the disk.
Use the GetRegions operation to list the Availability Zones where Lightsail is currently available.
public CreateDiskFromSnapshotRequest withAvailabilityZone(String availabilityZone)
The Availability Zone where you want to create the disk (e.g., us-east-2a). Choose the same
Availability Zone as the Lightsail instance where you want to create the disk.
Use the GetRegions operation to list the Availability Zones where Lightsail is currently available.
availabilityZone - The Availability Zone where you want to create the disk (e.g., us-east-2a). Choose the same
Availability Zone as the Lightsail instance where you want to create the disk.
Use the GetRegions operation to list the Availability Zones where Lightsail is currently available.
public void setSizeInGb(Integer sizeInGb)
The size of the disk in GB (e.g., 32).
sizeInGb - The size of the disk in GB (e.g., 32).public Integer getSizeInGb()
The size of the disk in GB (e.g., 32).
32).public CreateDiskFromSnapshotRequest withSizeInGb(Integer sizeInGb)
The size of the disk in GB (e.g., 32).
sizeInGb - The size of the disk in GB (e.g., 32).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 CreateDiskFromSnapshotRequest 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 CreateDiskFromSnapshotRequest 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 CreateDiskFromSnapshotRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2019. All rights reserved.