@Generated(value="software.amazon.awssdk:codegen") public final class CreateDiskFromSnapshotRequest extends LightsailRequest implements ToCopyableBuilder<CreateDiskFromSnapshotRequest.Builder,CreateDiskFromSnapshotRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateDiskFromSnapshotRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
availabilityZone()
The Availability Zone where you want to create the disk (e.g.,
us-east-2a ). |
static CreateDiskFromSnapshotRequest.Builder |
builder() |
String |
diskName()
The unique Lightsail disk name (e.g.,
my-disk ). |
String |
diskSnapshotName()
The name of the disk snapshot (e.g.,
my-snapshot ) from which to create the new storage disk. |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
static Class<? extends CreateDiskFromSnapshotRequest.Builder> |
serializableBuilderClass() |
Integer |
sizeInGb()
The size of the disk in GB (e.g.,
32 ). |
CreateDiskFromSnapshotRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String diskName()
The unique Lightsail disk name (e.g., my-disk
).
my-disk
).public String diskSnapshotName()
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 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.
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 Integer sizeInGb()
The size of the disk in GB (e.g., 32
).
32
).public CreateDiskFromSnapshotRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateDiskFromSnapshotRequest.Builder,CreateDiskFromSnapshotRequest>
toBuilder
in class LightsailRequest
public static CreateDiskFromSnapshotRequest.Builder builder()
public static Class<? extends CreateDiskFromSnapshotRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.