@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()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<AddOnRequest> |
getAddOns()
An array of objects that represent the add-ons to enable for the new disk.
|
String |
getAvailabilityZone()
The Availability Zone where you want to create the disk (
us-east-2a ). |
String |
getDiskName()
The unique Lightsail disk name (
my-disk ). |
Integer |
getSizeInGb()
The size of the disk in GB (
32 ). |
List<Tag> |
getTags()
The tag keys and optional values to add to the resource during create.
|
int |
hashCode() |
void |
setAddOns(Collection<AddOnRequest> addOns)
An array of objects that represent the add-ons to enable for the new disk.
|
void |
setAvailabilityZone(String availabilityZone)
The Availability Zone where you want to create the disk (
us-east-2a ). |
void |
setDiskName(String diskName)
The unique Lightsail disk name (
my-disk ). |
void |
setSizeInGb(Integer sizeInGb)
The size of the disk in GB (
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 |
withAddOns(AddOnRequest... addOns)
An array of objects that represent the add-ons to enable for the new disk.
|
CreateDiskRequest |
withAddOns(Collection<AddOnRequest> addOns)
An array of objects that represent the add-ons to enable for the new disk.
|
CreateDiskRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone where you want to create the disk (
us-east-2a ). |
CreateDiskRequest |
withDiskName(String diskName)
The unique Lightsail disk name (
my-disk ). |
CreateDiskRequest |
withSizeInGb(Integer sizeInGb)
The size of the disk in GB (
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, 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 Lightsail disk name (my-disk
).
diskName
- The unique Lightsail disk name (my-disk
).public String getDiskName()
The unique Lightsail disk name (my-disk
).
my-disk
).public CreateDiskRequest withDiskName(String diskName)
The unique Lightsail disk name (my-disk
).
diskName
- The unique Lightsail disk name (my-disk
).public void setAvailabilityZone(String availabilityZone)
The Availability Zone where you want to create the disk (us-east-2a
). Use the same Availability Zone
as the Lightsail instance to which you want to attach the disk.
Use the get regions
operation to list the Availability Zones where Lightsail is currently available.
availabilityZone
- The Availability Zone where you want to create the disk (us-east-2a
). Use the same
Availability Zone as the Lightsail instance to which you want to attach the disk.
Use the get regions
operation to list the Availability Zones where Lightsail is currently
available.
public String getAvailabilityZone()
The Availability Zone where you want to create the disk (us-east-2a
). Use the same Availability Zone
as the Lightsail instance to which you want to attach the disk.
Use the get regions
operation to list the Availability Zones where Lightsail is currently available.
us-east-2a
). Use the same
Availability Zone as the Lightsail instance to which you want to attach the disk.
Use the get regions
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 (us-east-2a
). Use the same Availability Zone
as the Lightsail instance to which you want to attach the disk.
Use the get regions
operation to list the Availability Zones where Lightsail is currently available.
availabilityZone
- The Availability Zone where you want to create the disk (us-east-2a
). Use the same
Availability Zone as the Lightsail instance to which you want to attach the disk.
Use the get regions
operation to list the Availability Zones where Lightsail is currently
available.
public void setSizeInGb(Integer sizeInGb)
The size of the disk in GB (32
).
sizeInGb
- The size of the disk in GB (32
).public Integer getSizeInGb()
The size of the disk in GB (32
).
32
).public CreateDiskRequest withSizeInGb(Integer sizeInGb)
The size of the disk in GB (32
).
sizeInGb
- The size of the disk in GB (32
).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 CreateDiskRequest 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 CreateDiskRequest 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 List<AddOnRequest> getAddOns()
An array of objects that represent the add-ons to enable for the new disk.
public void setAddOns(Collection<AddOnRequest> addOns)
An array of objects that represent the add-ons to enable for the new disk.
addOns
- An array of objects that represent the add-ons to enable for the new disk.public CreateDiskRequest withAddOns(AddOnRequest... addOns)
An array of objects that represent the add-ons to enable for the new disk.
NOTE: This method appends the values to the existing list (if any). Use
setAddOns(java.util.Collection)
or withAddOns(java.util.Collection)
if you want to override the
existing values.
addOns
- An array of objects that represent the add-ons to enable for the new disk.public CreateDiskRequest withAddOns(Collection<AddOnRequest> addOns)
An array of objects that represent the add-ons to enable for the new disk.
addOns
- An array of objects that represent the add-ons to enable for the new disk.public String toString()
toString
in class Object
Object.toString()
public CreateDiskRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()