Interface EphemeralBlockDeviceMapping.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EphemeralBlockDeviceMapping.Builder,,EphemeralBlockDeviceMapping> SdkBuilder<EphemeralBlockDeviceMapping.Builder,,EphemeralBlockDeviceMapping> SdkPojo
- Enclosing class:
EphemeralBlockDeviceMapping
@Mutable
@NotThreadSafe
public static interface EphemeralBlockDeviceMapping.Builder
extends SdkPojo, CopyableBuilder<EphemeralBlockDeviceMapping.Builder,EphemeralBlockDeviceMapping>
-
Method Summary
Modifier and TypeMethodDescriptiondeviceName(String deviceName) The device name, for example/dev/sdhorxvdh.Sets the value of the Ebs property for this object.Sets the value of the Ebs property for this object.virtualName(String virtualName) The virtual device name (ephemeralN).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, for example
/dev/sdhorxvdh.- Parameters:
deviceName- The device name, for example/dev/sdhorxvdh.- 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. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.- Parameters:
virtualName- The virtual device name (ephemeralN). Instance store volumes are numbered starting from 0. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebs
Sets the value of the Ebs property for this object.- Parameters:
ebs- The new value for the Ebs property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebs
default EphemeralBlockDeviceMapping.Builder ebs(Consumer<EphemeralEBSVolumeConfiguration.Builder> ebs) Sets the value of the Ebs property for this object. This is a convenience method that creates an instance of theEphemeralEBSVolumeConfiguration.Builderavoiding the need to create one manually viaEphemeralEBSVolumeConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toebs(EphemeralEBSVolumeConfiguration).- Parameters:
ebs- a consumer that will call methods onEphemeralEBSVolumeConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-