Interface LaunchTemplateBlockDeviceMappingRequest.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<LaunchTemplateBlockDeviceMappingRequest.Builder,LaunchTemplateBlockDeviceMappingRequest>
,SdkBuilder<LaunchTemplateBlockDeviceMappingRequest.Builder,LaunchTemplateBlockDeviceMappingRequest>
,SdkPojo
- Enclosing class:
- LaunchTemplateBlockDeviceMappingRequest
public static interface LaunchTemplateBlockDeviceMappingRequest.Builder extends SdkPojo, CopyableBuilder<LaunchTemplateBlockDeviceMappingRequest.Builder,LaunchTemplateBlockDeviceMappingRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LaunchTemplateBlockDeviceMappingRequest.Builder
deviceName(String deviceName)
The device name (for example, /dev/sdh or xvdh).default LaunchTemplateBlockDeviceMappingRequest.Builder
ebs(Consumer<LaunchTemplateEbsBlockDeviceRequest.Builder> ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.LaunchTemplateBlockDeviceMappingRequest.Builder
ebs(LaunchTemplateEbsBlockDeviceRequest ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.LaunchTemplateBlockDeviceMappingRequest.Builder
noDevice(String noDevice)
To omit the device from the block device mapping, specify an empty string.LaunchTemplateBlockDeviceMappingRequest.Builder
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 Detail
-
deviceName
LaunchTemplateBlockDeviceMappingRequest.Builder deviceName(String 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
LaunchTemplateBlockDeviceMappingRequest.Builder virtualName(String 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
LaunchTemplateBlockDeviceMappingRequest.Builder ebs(LaunchTemplateEbsBlockDeviceRequest 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:
ebs(LaunchTemplateEbsBlockDeviceRequest)
-
noDevice
LaunchTemplateBlockDeviceMappingRequest.Builder noDevice(String 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.
-
-