@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). |
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 |
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.
|
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). |
CreateDiskRequest |
withTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
|
CreateDiskRequest |
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 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 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 CreateDiskRequest 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 CreateDiskRequest 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 CreateDiskRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2019. All rights reserved.