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.BuilderAnEBSBlockDevicethat defines how to configure an Amazon EBS volume when the instance is launched.ebs(EbsBlockDevice ebs) AnEBSBlockDevicethat 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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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_DEVICEand 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 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
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
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:
-