@Generated(value="software.amazon.awssdk:codegen") public class CreateDiskRequest extends LightsailRequest implements ToCopyableBuilder<CreateDiskRequest.Builder,CreateDiskRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateDiskRequest.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 CreateDiskRequest.Builder |
builder() |
String |
diskName()
The unique Lightsail disk name (e.g.,
my-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 CreateDiskRequest.Builder> |
serializableBuilderClass() |
Integer |
sizeInGb()
The size of the disk in GB (e.g.,
32 ). |
CreateDiskRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
requestOverrideConfig
copy
public String diskName()
The unique Lightsail disk name (e.g., my-disk
).
my-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 CreateDiskRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateDiskRequest.Builder,CreateDiskRequest>
toBuilder
in class LightsailRequest
public static CreateDiskRequest.Builder builder()
public static Class<? extends CreateDiskRequest.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.