public static interface InstanceBlockDeviceMapping.Builder extends CopyableBuilder<InstanceBlockDeviceMapping.Builder,InstanceBlockDeviceMapping>
Modifier and Type | Method and Description |
---|---|
InstanceBlockDeviceMapping.Builder |
deviceName(String deviceName)
The device name (for example,
/dev/sdh or xvdh ). |
default InstanceBlockDeviceMapping.Builder |
ebs(Consumer<EbsInstanceBlockDevice.Builder> ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
|
InstanceBlockDeviceMapping.Builder |
ebs(EbsInstanceBlockDevice ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
|
copy
apply, build
InstanceBlockDeviceMapping.Builder deviceName(String deviceName)
The device name (for example, /dev/sdh
or xvdh
).
deviceName
- The device name (for example, /dev/sdh
or xvdh
).InstanceBlockDeviceMapping.Builder ebs(EbsInstanceBlockDevice ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
ebs
- Parameters used to automatically set up EBS volumes when the instance is launched.default InstanceBlockDeviceMapping.Builder ebs(Consumer<EbsInstanceBlockDevice.Builder> ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
This is a convenience that creates an instance of theEbsInstanceBlockDevice.Builder
avoiding the
need to create one manually via EbsInstanceBlockDevice.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to ebs(EbsInstanceBlockDevice)
.ebs
- a consumer that will call methods on EbsInstanceBlockDevice.Builder
ebs(EbsInstanceBlockDevice)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.