Interface AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails.Builder,
,AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails> SdkBuilder<AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails.Builder,
,AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails> SdkPojo
- Enclosing class:
AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails
public static interface AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails.Builder
extends SdkPojo, CopyableBuilder<AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails.Builder,AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails>
-
Method Summary
Modifier and TypeMethodDescriptiondeviceName
(String deviceName) The device name.Parameters used to automatically set up Amazon EBS volumes when the instance is launched.Parameters used to automatically set up Amazon EBS volumes when the instance is launched.Omits the device from the block device mapping when an empty string is specified.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 Details
-
deviceName
The device name.
- Parameters:
deviceName
- The device name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebs
AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails.Builder ebs(AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails ebs) Parameters used to automatically set up Amazon EBS volumes when the instance is launched.
- Parameters:
ebs
- Parameters used to automatically set up Amazon EBS volumes when the instance is launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebs
default AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails.Builder ebs(Consumer<AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails.Builder> ebs) Parameters used to automatically set up Amazon EBS volumes when the instance is launched.
This is a convenience method that creates an instance of theAwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails.Builder
avoiding the need to create one manually viaAwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toebs(AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails)
.- Parameters:
ebs
- a consumer that will call methods onAwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
noDevice
Omits the device from the block device mapping when an empty string is specified.
- Parameters:
noDevice
- Omits the device from the block device mapping when an empty string is specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
andephemeral1
. The number of available instance store volumes depends on the instance type.- 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 forephemeral0
andephemeral1
. The number of available instance store volumes depends on the instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-