public static interface CreateDiskRequest.Builder extends LightsailRequest.Builder, CopyableBuilder<CreateDiskRequest.Builder,CreateDiskRequest>
Modifier and Type | Method and Description |
---|---|
CreateDiskRequest.Builder |
availabilityZone(String availabilityZone)
The Availability Zone where you want to create the disk (e.g.,
us-east-2a ). |
CreateDiskRequest.Builder |
diskName(String diskName)
The unique Lightsail disk name (e.g.,
my-disk ). |
CreateDiskRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateDiskRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateDiskRequest.Builder |
sizeInGb(Integer sizeInGb)
The size of the disk in GB (e.g.,
32 ). |
build
overrideConfiguration
copy
applyMutation, build
CreateDiskRequest.Builder diskName(String diskName)
The unique Lightsail disk name (e.g., my-disk
).
diskName
- The unique Lightsail disk name (e.g., my-disk
).CreateDiskRequest.Builder availabilityZone(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.
CreateDiskRequest.Builder sizeInGb(Integer sizeInGb)
The size of the disk in GB (e.g., 32
).
sizeInGb
- The size of the disk in GB (e.g., 32
).CreateDiskRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateDiskRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.