Interface InstanceBlockDeviceMappingSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceBlockDeviceMappingSpecification.Builder,
,InstanceBlockDeviceMappingSpecification> SdkBuilder<InstanceBlockDeviceMappingSpecification.Builder,
,InstanceBlockDeviceMappingSpecification> SdkPojo
- Enclosing class:
InstanceBlockDeviceMappingSpecification
public static interface InstanceBlockDeviceMappingSpecification.Builder
extends SdkPojo, CopyableBuilder<InstanceBlockDeviceMappingSpecification.Builder,InstanceBlockDeviceMappingSpecification>
-
Method Summary
Modifier and TypeMethodDescriptiondeviceName
(String deviceName) The device name (for example,/dev/sdh
orxvdh
).Parameters used to automatically set up EBS volumes when the instance is launched.Parameters used to automatically set up EBS volumes when the instance is launched.suppress the specified device included in the 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 (for example,
/dev/sdh
orxvdh
).- Parameters:
deviceName
- The device name (for example,/dev/sdh
orxvdh
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebs
Parameters used to automatically set up EBS volumes when the instance is launched.
- Parameters:
ebs
- Parameters used to automatically set up EBS volumes when the instance is launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebs
default InstanceBlockDeviceMappingSpecification.Builder ebs(Consumer<EbsInstanceBlockDeviceSpecification.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 theEbsInstanceBlockDeviceSpecification.Builder
avoiding the need to create one manually viaEbsInstanceBlockDeviceSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toebs(EbsInstanceBlockDeviceSpecification)
.- Parameters:
ebs
- a consumer that will call methods onEbsInstanceBlockDeviceSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
noDevice
suppress the specified device included in the block device mapping.
- Parameters:
noDevice
- suppress the specified device included in the block device mapping.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
virtualName
The virtual device name.
- Parameters:
virtualName
- The virtual device name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-