public static class NovaBlockDeviceMappingCreate.NovaBlockDeviceMappingBuilder extends Object implements BlockDeviceMappingBuilder
| Constructor and Description |
|---|
NovaBlockDeviceMappingBuilder(NovaBlockDeviceMappingCreate create) |
| Modifier and Type | Method and Description |
|---|---|
BlockDeviceMappingBuilder |
bootIndex(int i)
Set device boot index.
|
BlockDeviceMappingCreate |
build()
Creates and return the Model Entity M
|
BlockDeviceMappingBuilder |
deleteOnTermination(boolean deleteOnTermination)
Delete the volume at termination.
|
BlockDeviceMappingBuilder |
destinationType(BDMDestType type)
Defines where the volume comes from.
|
BlockDeviceMappingBuilder |
deviceName(String deviceName)
A device name where the volume is attached in the system at /dev/dev_name.
|
BlockDeviceMappingBuilder |
deviceType(String deviceType)
Used to set the device_type, low level detail that some hypervisors
(currently only libvirt) may support.
|
BlockDeviceMappingBuilder |
diskBus(String diskBus)
Used to set the disk_bus, low level detail that some hypervisors
(currently only libvirt) may support.
|
BlockDeviceMappingBuilder |
from(BlockDeviceMappingCreate in)
Creates a Builder using the param M as the default values
|
BlockDeviceMappingBuilder |
snapshotId(String snapshotId)
Set to create a volume from a snapshot id.
|
BlockDeviceMappingBuilder |
sourceType(BDMSourceType type)
The source type of the volume.
|
BlockDeviceMappingBuilder |
uuid(String id)
The device ID.
|
BlockDeviceMappingBuilder |
volumeId(String volumeId)
Set to create a volume from a volume id.
|
BlockDeviceMappingBuilder |
volumeSize(Integer volumeSize)
Used to set the volume size of the destination volume (typically needed when source type is image).
|
public NovaBlockDeviceMappingBuilder(NovaBlockDeviceMappingCreate create)
public BlockDeviceMappingBuilder deviceName(String deviceName)
BlockDeviceMappingBuilderdeviceName in interface BlockDeviceMappingBuilderdeviceName - the device namepublic BlockDeviceMappingBuilder uuid(String id)
BlockDeviceMappingBuilderuuid in interface BlockDeviceMappingBuilderid - the device idpublic BlockDeviceMappingBuilder bootIndex(int i)
BlockDeviceMappingBuilderbootIndex in interface BlockDeviceMappingBuilderi - The boot index.public BlockDeviceMappingBuilder sourceType(BDMSourceType type)
BlockDeviceMappingBuildersourceType in interface BlockDeviceMappingBuildertype - the source typepublic BlockDeviceMappingBuilder destinationType(BDMDestType type)
BlockDeviceMappingBuilderdestinationType in interface BlockDeviceMappingBuildertype - the destination typepublic BlockDeviceMappingBuilder deleteOnTermination(boolean deleteOnTermination)
BlockDeviceMappingBuilderdeleteOnTermination in interface BlockDeviceMappingBuilderdeleteOnTermination - Set to True to delete the volume when the instance is deleted. Set to False to retain the volume when the instance is deleted.public BlockDeviceMappingBuilder snapshotId(String snapshotId)
BlockDeviceMappingBuildersnapshotId in interface BlockDeviceMappingBuilderpublic BlockDeviceMappingBuilder volumeId(String volumeId)
BlockDeviceMappingBuildervolumeId in interface BlockDeviceMappingBuilderpublic BlockDeviceMappingBuilder volumeSize(Integer volumeSize)
BlockDeviceMappingBuildervolumeSize in interface BlockDeviceMappingBuildervolumeSize - the size of the volume in Gigabytes.public BlockDeviceMappingBuilder diskBus(String diskBus)
BlockDeviceMappingBuilderdiskBus in interface BlockDeviceMappingBuilderdiskBus - type, e.g ide, usb, virtio, scsipublic BlockDeviceMappingBuilder deviceType(String deviceType)
BlockDeviceMappingBuilderdeviceType in interface BlockDeviceMappingBuilderpublic BlockDeviceMappingCreate build()
Buildable.Builderbuild in interface Buildable.Builder<BlockDeviceMappingBuilder,BlockDeviceMappingCreate>public BlockDeviceMappingBuilder from(BlockDeviceMappingCreate in)
Buildable.Builderfrom in interface Buildable.Builder<BlockDeviceMappingBuilder,BlockDeviceMappingCreate>Copyright © 2020. All rights reserved.