public static interface CreateDiskRequest.Builder extends LightsailRequest.Builder, SdkPojo, CopyableBuilder<CreateDiskRequest.Builder,CreateDiskRequest>
Modifier and Type | Method and Description |
---|---|
CreateDiskRequest.Builder |
addOns(AddOnRequest... addOns)
An array of objects that represent the add-ons to enable for the new disk.
|
CreateDiskRequest.Builder |
addOns(Collection<AddOnRequest> addOns)
An array of objects that represent the add-ons to enable for the new disk.
|
CreateDiskRequest.Builder |
addOns(Consumer<AddOnRequest.Builder>... addOns)
An array of objects that represent the add-ons to enable for the new disk.
|
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 ). |
CreateDiskRequest.Builder |
tags(Collection<Tag> tags)
The tag keys and optional values to add to the resource during create.
|
CreateDiskRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values to add to the resource during create.
|
CreateDiskRequest.Builder |
tags(Tag... tags)
The tag keys and optional values to add to the resource during create.
|
build
overrideConfiguration
equalsBySdkFields, sdkFields
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
). 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 (e.g., 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.
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 tags(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.
CreateDiskRequest.Builder tags(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.
CreateDiskRequest.Builder tags(Consumer<Tag.Builder>... 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.
List.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
CreateDiskRequest.Builder addOns(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.CreateDiskRequest.Builder addOns(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.CreateDiskRequest.Builder addOns(Consumer<AddOnRequest.Builder>... addOns)
An array of objects that represent the add-ons to enable for the new disk.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #addOns(List)
.addOns
- a consumer that will call methods on List.Builder
#addOns(List)
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.