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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BlockDeviceMapping.BuilderdeviceName(String deviceName)The device name that is exposed to the instance, such as/dev/sdh.default BlockDeviceMapping.Builderebs(Consumer<EbsBlockDevice.Builder> ebs)AnEBSBlockDevicethat defines how to configure an Amazon EBS volume when the instance is launched.BlockDeviceMapping.Builderebs(EbsBlockDevice ebs)AnEBSBlockDevicethat defines how to configure an Amazon EBS volume when the instance is launched.BlockDeviceMapping.BuildernoDevice(String noDevice)Suppresses the specified device included in the AMI's block device mapping.BlockDeviceMapping.BuildervirtualName(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 Detail
-
deviceName
BlockDeviceMapping.Builder deviceName(String 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_DEVICEand AWS 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_DEVICEand AWS OpsWorks Stacks will provide the correct device name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
noDevice
BlockDeviceMapping.Builder noDevice(String 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
BlockDeviceMapping.Builder virtualName(String 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
BlockDeviceMapping.Builder ebs(EbsBlockDevice ebs)
An
EBSBlockDevicethat defines how to configure an Amazon EBS volume when the instance is launched.- Parameters:
ebs- AnEBSBlockDevicethat 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
default BlockDeviceMapping.Builder ebs(Consumer<EbsBlockDevice.Builder> ebs)
An
This is a convenience method that creates an instance of theEBSBlockDevicethat defines how to configure an Amazon EBS volume when the instance is launched.EbsBlockDevice.Builderavoiding the need to create one manually viaEbsBlockDevice.builder().When the
Consumercompletes,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:
ebs(EbsBlockDevice)
-
-