Interface InstanceBlockDeviceMapping.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceBlockDeviceMapping.Builder,,InstanceBlockDeviceMapping> SdkBuilder<InstanceBlockDeviceMapping.Builder,,InstanceBlockDeviceMapping> SdkPojo
- Enclosing class:
InstanceBlockDeviceMapping
public static interface InstanceBlockDeviceMapping.Builder
extends SdkPojo, CopyableBuilder<InstanceBlockDeviceMapping.Builder,InstanceBlockDeviceMapping>
-
Method Summary
Modifier and TypeMethodDescriptiondeviceName(String deviceName) The device to which these mappings apply.Use to manage Amazon EBS-specific configuration for this mapping.Use to manage Amazon EBS-specific configuration for this mapping.Use to remove a mapping from the base image.virtualName(String virtualName) Use to manage instance ephemeral devices.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, sdkFields
-
Method Details
-
deviceName
The device to which these mappings apply.
- Parameters:
deviceName- The device to which these mappings apply.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebs
Use to manage Amazon EBS-specific configuration for this mapping.
- Parameters:
ebs- Use to manage Amazon EBS-specific configuration for this mapping.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebs
default InstanceBlockDeviceMapping.Builder ebs(Consumer<EbsInstanceBlockDeviceSpecification.Builder> ebs) Use to manage Amazon EBS-specific configuration for this mapping.
This is a convenience method that creates an instance of theEbsInstanceBlockDeviceSpecification.Builderavoiding the need to create one manually viaEbsInstanceBlockDeviceSpecification.builder().When the
Consumercompletes,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:
-
virtualName
Use to manage instance ephemeral devices.
- Parameters:
virtualName- Use to manage instance ephemeral devices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
noDevice
Use to remove a mapping from the base image.
- Parameters:
noDevice- Use to remove a mapping from the base image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-