Interface CreateVolumeRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateVolumeRequest.Builder,
,CreateVolumeRequest> SdkBuilder<CreateVolumeRequest.Builder,
,CreateVolumeRequest> SdkPojo
,SdkRequest.Builder
,WorkspacesInstancesRequest.Builder
- Enclosing class:
CreateVolumeRequest
@Mutable
@NotThreadSafe
public static interface CreateVolumeRequest.Builder
extends WorkspacesInstancesRequest.Builder, SdkPojo, CopyableBuilder<CreateVolumeRequest.Builder,CreateVolumeRequest>
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone
(String availabilityZone) Availability zone for the volume.clientToken
(String clientToken) Unique token to prevent duplicate volume creation.Indicates if the volume should be encrypted.Input/output operations per second for the volume.KMS key for volume encryption.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Volume size in gigabytes.snapshotId
(String snapshotId) Source snapshot for volume creation.tagSpecifications
(Collection<TagSpecification> tagSpecifications) Metadata tags for the volume.tagSpecifications
(Consumer<TagSpecification.Builder>... tagSpecifications) Metadata tags for the volume.tagSpecifications
(TagSpecification... tagSpecifications) Metadata tags for the volume.throughput
(Integer throughput) Volume throughput performance.volumeType
(String volumeType) Type of EBS volume.volumeType
(VolumeTypeEnum volumeType) Type of EBS volume.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.services.workspacesinstances.model.WorkspacesInstancesRequest.Builder
build
-
Method Details
-
availabilityZone
Availability zone for the volume.
- Parameters:
availabilityZone
- Availability zone for the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
Unique token to prevent duplicate volume creation.
- Parameters:
clientToken
- Unique token to prevent duplicate volume creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encrypted
Indicates if the volume should be encrypted.
- Parameters:
encrypted
- Indicates if the volume should be encrypted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iops
Input/output operations per second for the volume.
- Parameters:
iops
- Input/output operations per second for the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
KMS key for volume encryption.
- Parameters:
kmsKeyId
- KMS key for volume encryption.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sizeInGB
Volume size in gigabytes.
- Parameters:
sizeInGB
- Volume size in gigabytes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotId
Source snapshot for volume creation.
- Parameters:
snapshotId
- Source snapshot for volume creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
Metadata tags for the volume.
- Parameters:
tagSpecifications
- Metadata tags for the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
Metadata tags for the volume.
- Parameters:
tagSpecifications
- Metadata tags for the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateVolumeRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) Metadata tags for the volume.
This is a convenience method that creates an instance of theTagSpecification.Builder
avoiding the need to create one manually viaTagSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totagSpecifications(List<TagSpecification>)
.- Parameters:
tagSpecifications
- a consumer that will call methods onTagSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
throughput
Volume throughput performance.
- Parameters:
throughput
- Volume throughput performance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeType
Type of EBS volume.
- Parameters:
volumeType
- Type of EBS volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
volumeType
Type of EBS volume.
- Parameters:
volumeType
- Type of EBS volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateVolumeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateVolumeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-