Interface BlockDeviceMapping.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BlockDeviceMapping.Builder,
,BlockDeviceMapping> SdkBuilder<BlockDeviceMapping.Builder,
,BlockDeviceMapping> SdkPojo
- Enclosing class:
BlockDeviceMapping
public static interface BlockDeviceMapping.Builder
extends SdkPojo, CopyableBuilder<BlockDeviceMapping.Builder,BlockDeviceMapping>
-
Method Summary
Modifier and TypeMethodDescriptiondeviceName
(String deviceName) The device name that is exposed to the instance, such as/dev/sdh
.default BlockDeviceMapping.Builder
AnEBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is launched.ebs
(EbsBlockDevice ebs) AnEBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is launched.Suppresses the specified device included in the AMI's block device mapping.virtualName
(String virtualName) The virtual device name.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 that is exposed to the instance, such as
/dev/sdh
. For the root device, you can use the explicit device name or you can set this parameter toROOT_DEVICE
and OpsWorks Stacks will provide the correct device name.- Parameters:
deviceName
- The device name that is exposed to the instance, such as/dev/sdh
. For the root device, you can use the explicit device name or you can set this parameter toROOT_DEVICE
and OpsWorks Stacks will provide the correct device name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
noDevice
Suppresses the specified device included in the AMI's block device mapping.
- Parameters:
noDevice
- Suppresses the specified device included in the AMI's block device mapping.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
virtualName
The virtual device name. For more information, see BlockDeviceMapping.
- Parameters:
virtualName
- The virtual device name. For more information, see BlockDeviceMapping.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebs
An
EBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is launched.- Parameters:
ebs
- AnEBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebs
An
This is a convenience method that creates an instance of theEBSBlockDevice
that defines how to configure an Amazon EBS volume when the instance is launched.EbsBlockDevice.Builder
avoiding the need to create one manually viaEbsBlockDevice.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toebs(EbsBlockDevice)
.- Parameters:
ebs
- a consumer that will call methods onEbsBlockDevice.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-