Interface LaunchTemplateBlockDeviceMappingRequest.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LaunchTemplateBlockDeviceMappingRequest.Builder,
,LaunchTemplateBlockDeviceMappingRequest> SdkBuilder<LaunchTemplateBlockDeviceMappingRequest.Builder,
,LaunchTemplateBlockDeviceMappingRequest> SdkPojo
- Enclosing class:
LaunchTemplateBlockDeviceMappingRequest
-
Method Summary
Modifier and TypeMethodDescriptiondeviceName
(String deviceName) The device name (for example, /dev/sdh or xvdh).Parameters used to automatically set up EBS volumes when the instance is launched.Parameters used to automatically set up EBS volumes when the instance is launched.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 (for example, /dev/sdh or xvdh).
- Parameters:
deviceName
- The device name (for example, /dev/sdh or xvdh).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
virtualName
The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.
- Parameters:
virtualName
- The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebs
Parameters used to automatically set up EBS volumes when the instance is launched.
- Parameters:
ebs
- Parameters used to automatically set up EBS volumes when the instance is launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebs
default LaunchTemplateBlockDeviceMappingRequest.Builder ebs(Consumer<LaunchTemplateEbsBlockDeviceRequest.Builder> ebs) Parameters used to automatically set up EBS volumes when the instance is launched.
This is a convenience method that creates an instance of theLaunchTemplateEbsBlockDeviceRequest.Builder
avoiding the need to create one manually viaLaunchTemplateEbsBlockDeviceRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toebs(LaunchTemplateEbsBlockDeviceRequest)
.- Parameters:
ebs
- a consumer that will call methods onLaunchTemplateEbsBlockDeviceRequest.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.
-