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) |
CreateDiskRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
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.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateDiskRequest.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.
Tag.Builder avoiding the need to create one manually
via Tag.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #tags(List.
tags - a consumer that will call methods on
Tag.Builder#tags(java.util.Collection) 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 method that creates an instance of theAddOnRequest.Builder avoiding the need to create one
manually via AddOnRequest.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #addOns(List.
addOns - a consumer that will call methods on
AddOnRequest.Builder#addOns(java.util.Collection) CreateDiskRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreateDiskRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.