@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateDiskRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreateDiskRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateDiskRequest |
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). |
Integer |
getSizeInGb()
The size of the disk in GB (e.g.,
32). |
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 |
setSizeInGb(Integer sizeInGb)
The size of the disk in GB (e.g.,
32). |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateDiskRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone where you want to create the disk (e.g.,
us-east-2a). |
CreateDiskRequest |
withDiskName(String diskName)
The unique Lightsail disk name (e.g.,
my-disk). |
CreateDiskRequest |
withSizeInGb(Integer sizeInGb)
The size of the disk in GB (e.g.,
32). |
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 CreateDiskRequest withDiskName(String diskName)
The unique Lightsail disk name (e.g., my-disk).
diskName - The unique Lightsail disk name (e.g., my-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 CreateDiskRequest 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 CreateDiskRequest 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 String toString()
toString in class ObjectObject.toString()public CreateDiskRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2018. All rights reserved.