public static interface LaunchTemplateBlockDeviceMappingRequest.Builder extends SdkPojo, CopyableBuilder<LaunchTemplateBlockDeviceMappingRequest.Builder,LaunchTemplateBlockDeviceMappingRequest>
Modifier and Type | Method and 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).
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
LaunchTemplateBlockDeviceMappingRequest.Builder deviceName(String deviceName)
The device name (for example, /dev/sdh or xvdh).
deviceName
- The device name (for example, /dev/sdh or xvdh).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.
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.LaunchTemplateBlockDeviceMappingRequest.Builder ebs(LaunchTemplateEbsBlockDeviceRequest ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
ebs
- Parameters used to automatically set up EBS volumes when the instance is launched.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 via
LaunchTemplateEbsBlockDeviceRequest.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to ebs(LaunchTemplateEbsBlockDeviceRequest)
.ebs
- a consumer that will call methods on LaunchTemplateEbsBlockDeviceRequest.Builder
ebs(LaunchTemplateEbsBlockDeviceRequest)
LaunchTemplateBlockDeviceMappingRequest.Builder noDevice(String noDevice)
To omit the device from the block device mapping, specify an empty string.
noDevice
- To omit the device from the block device mapping, specify an empty string.Copyright © 2022. All rights reserved.