Interface EbsBlockDevice.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EbsBlockDevice.Builder,
,EbsBlockDevice> SdkBuilder<EbsBlockDevice.Builder,
,EbsBlockDevice> SdkPojo
- Enclosing class:
EbsBlockDevice
public static interface EbsBlockDevice.Builder
extends SdkPojo, CopyableBuilder<EbsBlockDevice.Builder,EbsBlockDevice>
-
Method Summary
Modifier and TypeMethodDescriptionThe device name that is exposed to the instance, such as /dev/sdh.default EbsBlockDevice.Builder
volumeSpecification
(Consumer<VolumeSpecification.Builder> volumeSpecification) EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) that are requested for the EBS volume attached to an Amazon EC2 instance in the cluster.volumeSpecification
(VolumeSpecification volumeSpecification) EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) that are requested for the EBS volume attached to an Amazon EC2 instance in the cluster.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, sdkFields
-
Method Details
-
volumeSpecification
EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) that are requested for the EBS volume attached to an Amazon EC2 instance in the cluster.
- Parameters:
volumeSpecification
- EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) that are requested for the EBS volume attached to an Amazon EC2 instance in the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeSpecification
default EbsBlockDevice.Builder volumeSpecification(Consumer<VolumeSpecification.Builder> volumeSpecification) EBS volume specifications such as volume type, IOPS, size (GiB) and throughput (MiB/s) that are requested for the EBS volume attached to an Amazon EC2 instance in the cluster.
This is a convenience method that creates an instance of theVolumeSpecification.Builder
avoiding the need to create one manually viaVolumeSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovolumeSpecification(VolumeSpecification)
.- Parameters:
volumeSpecification
- a consumer that will call methods onVolumeSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
device
The device name that is exposed to the instance, such as /dev/sdh.
- Parameters:
device
- The device name that is exposed to the instance, such as /dev/sdh.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-