@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()
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 ). |
String |
getDiskSnapshotName()
The name of the disk snapshot (
my-snapshot ) from which to create the new storage disk. |
String |
getRestoreDate()
The date of the automatic snapshot to use for the new disk.
|
Integer |
getSizeInGb()
The size of the disk in GB (
32 ). |
String |
getSourceDiskName()
The name of the source disk from which the source automatic snapshot was created.
|
List<Tag> |
getTags()
The tag keys and optional values to add to the resource during create.
|
Boolean |
getUseLatestRestorableAutoSnapshot()
A Boolean value to indicate whether to use the latest available automatic snapshot.
|
int |
hashCode() |
Boolean |
isUseLatestRestorableAutoSnapshot()
A Boolean value to indicate whether to use the latest available automatic snapshot.
|
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 |
setDiskSnapshotName(String diskSnapshotName)
The name of the disk snapshot (
my-snapshot ) from which to create the new storage disk. |
void |
setRestoreDate(String restoreDate)
The date of the automatic snapshot to use for the new disk.
|
void |
setSizeInGb(Integer sizeInGb)
The size of the disk in GB (
32 ). |
void |
setSourceDiskName(String sourceDiskName)
The name of the source disk from which the source automatic snapshot was created.
|
void |
setTags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
|
void |
setUseLatestRestorableAutoSnapshot(Boolean useLatestRestorableAutoSnapshot)
A Boolean value to indicate whether to use the latest available automatic snapshot.
|
String |
toString()
Returns a string representation of this object.
|
CreateDiskFromSnapshotRequest |
withAddOns(AddOnRequest... addOns)
An array of objects that represent the add-ons to enable for the new disk.
|
CreateDiskFromSnapshotRequest |
withAddOns(Collection<AddOnRequest> addOns)
An array of objects that represent the add-ons to enable for the new disk.
|
CreateDiskFromSnapshotRequest |
withAvailabilityZone(String availabilityZone)
The Availability Zone where you want to create the disk (
us-east-2a ). |
CreateDiskFromSnapshotRequest |
withDiskName(String diskName)
The unique Lightsail disk name (
my-disk ). |
CreateDiskFromSnapshotRequest |
withDiskSnapshotName(String diskSnapshotName)
The name of the disk snapshot (
my-snapshot ) from which to create the new storage disk. |
CreateDiskFromSnapshotRequest |
withRestoreDate(String restoreDate)
The date of the automatic snapshot to use for the new disk.
|
CreateDiskFromSnapshotRequest |
withSizeInGb(Integer sizeInGb)
The size of the disk in GB (
32 ). |
CreateDiskFromSnapshotRequest |
withSourceDiskName(String sourceDiskName)
The name of the source disk from which the source automatic snapshot was created.
|
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.
|
CreateDiskFromSnapshotRequest |
withUseLatestRestorableAutoSnapshot(Boolean useLatestRestorableAutoSnapshot)
A Boolean value to indicate whether to use the latest available automatic snapshot.
|
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 CreateDiskFromSnapshotRequest withDiskName(String diskName)
The unique Lightsail disk name (my-disk
).
diskName
- The unique Lightsail disk name (my-disk
).public void setDiskSnapshotName(String diskSnapshotName)
The name of the disk snapshot (my-snapshot
) from which to create the new storage disk.
Constraint:
This parameter cannot be defined together with the source disk name
parameter. The
disk snapshot name
and source disk name
parameters are mutually exclusive.
diskSnapshotName
- The name of the disk snapshot (my-snapshot
) from which to create the new storage disk.
Constraint:
This parameter cannot be defined together with the source disk name
parameter. The
disk snapshot name
and source disk name
parameters are mutually exclusive.
public String getDiskSnapshotName()
The name of the disk snapshot (my-snapshot
) from which to create the new storage disk.
Constraint:
This parameter cannot be defined together with the source disk name
parameter. The
disk snapshot name
and source disk name
parameters are mutually exclusive.
my-snapshot
) from which to create the new storage disk.
Constraint:
This parameter cannot be defined together with the source disk name
parameter. The
disk snapshot name
and source disk name
parameters are mutually exclusive.
public CreateDiskFromSnapshotRequest withDiskSnapshotName(String diskSnapshotName)
The name of the disk snapshot (my-snapshot
) from which to create the new storage disk.
Constraint:
This parameter cannot be defined together with the source disk name
parameter. The
disk snapshot name
and source disk name
parameters are mutually exclusive.
diskSnapshotName
- The name of the disk snapshot (my-snapshot
) from which to create the new storage disk.
Constraint:
This parameter cannot be defined together with the source disk name
parameter. The
disk snapshot name
and source disk name
parameters are mutually exclusive.
public void setAvailabilityZone(String availabilityZone)
The Availability Zone where you want to create the disk (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 (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 (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 (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 (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 (32
).
sizeInGb
- The size of the disk in GB (32
).public Integer getSizeInGb()
The size of the disk in GB (32
).
32
).public CreateDiskFromSnapshotRequest 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 CreateDiskFromSnapshotRequest 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 CreateDiskFromSnapshotRequest 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 CreateDiskFromSnapshotRequest 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 CreateDiskFromSnapshotRequest 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 void setSourceDiskName(String sourceDiskName)
The name of the source disk from which the source automatic snapshot was created.
Constraints:
This parameter cannot be defined together with the disk snapshot name
parameter. The
source disk name
and disk snapshot name
parameters are mutually exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
sourceDiskName
- The name of the source disk from which the source automatic snapshot was created.
Constraints:
This parameter cannot be defined together with the disk snapshot name
parameter. The
source disk name
and disk snapshot name
parameters are mutually exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
public String getSourceDiskName()
The name of the source disk from which the source automatic snapshot was created.
Constraints:
This parameter cannot be defined together with the disk snapshot name
parameter. The
source disk name
and disk snapshot name
parameters are mutually exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
Constraints:
This parameter cannot be defined together with the disk snapshot name
parameter. The
source disk name
and disk snapshot name
parameters are mutually exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
public CreateDiskFromSnapshotRequest withSourceDiskName(String sourceDiskName)
The name of the source disk from which the source automatic snapshot was created.
Constraints:
This parameter cannot be defined together with the disk snapshot name
parameter. The
source disk name
and disk snapshot name
parameters are mutually exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
sourceDiskName
- The name of the source disk from which the source automatic snapshot was created.
Constraints:
This parameter cannot be defined together with the disk snapshot name
parameter. The
source disk name
and disk snapshot name
parameters are mutually exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
public void setRestoreDate(String restoreDate)
The date of the automatic snapshot to use for the new disk. Use the get auto snapshots
operation to
identify the dates of the available automatic snapshots.
Constraints:
Must be specified in YYYY-MM-DD
format.
This parameter cannot be defined together with the use latest restorable auto snapshot
parameter.
The restore date
and use latest restorable auto snapshot
parameters are mutually
exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
restoreDate
- The date of the automatic snapshot to use for the new disk. Use the get auto snapshots
operation to identify the dates of the available automatic snapshots.
Constraints:
Must be specified in YYYY-MM-DD
format.
This parameter cannot be defined together with the use latest restorable auto snapshot
parameter. The restore date
and use latest restorable auto snapshot
parameters
are mutually exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
public String getRestoreDate()
The date of the automatic snapshot to use for the new disk. Use the get auto snapshots
operation to
identify the dates of the available automatic snapshots.
Constraints:
Must be specified in YYYY-MM-DD
format.
This parameter cannot be defined together with the use latest restorable auto snapshot
parameter.
The restore date
and use latest restorable auto snapshot
parameters are mutually
exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
get auto snapshots
operation to identify the dates of the available automatic snapshots.
Constraints:
Must be specified in YYYY-MM-DD
format.
This parameter cannot be defined together with the use latest restorable auto snapshot
parameter. The restore date
and use latest restorable auto snapshot
parameters
are mutually exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
public CreateDiskFromSnapshotRequest withRestoreDate(String restoreDate)
The date of the automatic snapshot to use for the new disk. Use the get auto snapshots
operation to
identify the dates of the available automatic snapshots.
Constraints:
Must be specified in YYYY-MM-DD
format.
This parameter cannot be defined together with the use latest restorable auto snapshot
parameter.
The restore date
and use latest restorable auto snapshot
parameters are mutually
exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
restoreDate
- The date of the automatic snapshot to use for the new disk. Use the get auto snapshots
operation to identify the dates of the available automatic snapshots.
Constraints:
Must be specified in YYYY-MM-DD
format.
This parameter cannot be defined together with the use latest restorable auto snapshot
parameter. The restore date
and use latest restorable auto snapshot
parameters
are mutually exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
public void setUseLatestRestorableAutoSnapshot(Boolean useLatestRestorableAutoSnapshot)
A Boolean value to indicate whether to use the latest available automatic snapshot.
Constraints:
This parameter cannot be defined together with the restore date
parameter. The
use latest restorable auto snapshot
and restore date
parameters are mutually exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
useLatestRestorableAutoSnapshot
- A Boolean value to indicate whether to use the latest available automatic snapshot.
Constraints:
This parameter cannot be defined together with the restore date
parameter. The
use latest restorable auto snapshot
and restore date
parameters are mutually
exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
public Boolean getUseLatestRestorableAutoSnapshot()
A Boolean value to indicate whether to use the latest available automatic snapshot.
Constraints:
This parameter cannot be defined together with the restore date
parameter. The
use latest restorable auto snapshot
and restore date
parameters are mutually exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
Constraints:
This parameter cannot be defined together with the restore date
parameter. The
use latest restorable auto snapshot
and restore date
parameters are mutually
exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
public CreateDiskFromSnapshotRequest withUseLatestRestorableAutoSnapshot(Boolean useLatestRestorableAutoSnapshot)
A Boolean value to indicate whether to use the latest available automatic snapshot.
Constraints:
This parameter cannot be defined together with the restore date
parameter. The
use latest restorable auto snapshot
and restore date
parameters are mutually exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
useLatestRestorableAutoSnapshot
- A Boolean value to indicate whether to use the latest available automatic snapshot.
Constraints:
This parameter cannot be defined together with the restore date
parameter. The
use latest restorable auto snapshot
and restore date
parameters are mutually
exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
public Boolean isUseLatestRestorableAutoSnapshot()
A Boolean value to indicate whether to use the latest available automatic snapshot.
Constraints:
This parameter cannot be defined together with the restore date
parameter. The
use latest restorable auto snapshot
and restore date
parameters are mutually exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
Constraints:
This parameter cannot be defined together with the restore date
parameter. The
use latest restorable auto snapshot
and restore date
parameters are mutually
exclusive.
Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.
public String toString()
toString
in class Object
Object.toString()
public CreateDiskFromSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()