Interface LaunchTemplateBlockDeviceMapping.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LaunchTemplateBlockDeviceMapping.Builder,
,LaunchTemplateBlockDeviceMapping> SdkBuilder<LaunchTemplateBlockDeviceMapping.Builder,
,LaunchTemplateBlockDeviceMapping> SdkPojo
- Enclosing class:
LaunchTemplateBlockDeviceMapping
public static interface LaunchTemplateBlockDeviceMapping.Builder
extends SdkPojo, CopyableBuilder<LaunchTemplateBlockDeviceMapping.Builder,LaunchTemplateBlockDeviceMapping>
-
Method Summary
Modifier and TypeMethodDescriptiondeviceName
(String deviceName) The device name.Information about the block device for an EBS volume.Information about the block device for an EBS volume.To omit the device from the block device mapping, specify an empty string.virtualName
(String virtualName) The virtual device name (ephemeralN).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
-
deviceName
The device name.
- Parameters:
deviceName
- The device name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
virtualName
The virtual device name (ephemeralN).
- Parameters:
virtualName
- The virtual device name (ephemeralN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebs
Information about the block device for an EBS volume.
- Parameters:
ebs
- Information about the block device for an EBS volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebs
default LaunchTemplateBlockDeviceMapping.Builder ebs(Consumer<LaunchTemplateEbsBlockDevice.Builder> ebs) Information about the block device for an EBS volume.
This is a convenience method that creates an instance of theLaunchTemplateEbsBlockDevice.Builder
avoiding the need to create one manually viaLaunchTemplateEbsBlockDevice.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toebs(LaunchTemplateEbsBlockDevice)
.- Parameters:
ebs
- a consumer that will call methods onLaunchTemplateEbsBlockDevice.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
noDevice
To omit the device from the block device mapping, specify an empty string.
- Parameters:
noDevice
- To omit the device from the block device mapping, specify an empty string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-