Interface BlockDeviceMappingBuilder
-
- All Superinterfaces:
Buildable.Builder<BlockDeviceMappingBuilder,BlockDeviceMappingCreate>
- All Known Implementing Classes:
NovaBlockDeviceMappingCreate.NovaBlockDeviceMappingBuilder
public interface BlockDeviceMappingBuilder extends Buildable.Builder<BlockDeviceMappingBuilder,BlockDeviceMappingCreate>
Block Device Mapping.- Author:
- [email protected]
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlockDeviceMappingBuilder
bootIndex(int i)
Set device boot index.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
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 size)
Used to set the volume size of the destination volume (typically needed when source type is image).BlockDeviceMappingBuilder
volumeType(String volumeType)
This can be used to specify the type of volume which the compute service will create and attach to the server.-
Methods inherited from interface org.openstack4j.common.Buildable.Builder
build, from
-
-
-
-
Method Detail
-
bootIndex
BlockDeviceMappingBuilder bootIndex(int i)
Set device boot index.- Parameters:
i
- The boot index.- Returns:
- BlockDeviceMappingBuilder
-
deviceName
BlockDeviceMappingBuilder deviceName(String deviceName)
A device name where the volume is attached in the system at /dev/dev_name. This value is typically vda.- Parameters:
deviceName
- the device name- Returns:
- BlockDeviceMappingBuilder
-
uuid
BlockDeviceMappingBuilder uuid(String id)
The device ID.- Parameters:
id
- the device id- Returns:
- BlockDeviceMappingBuilder
-
destinationType
BlockDeviceMappingBuilder destinationType(BDMDestType type)
Defines where the volume comes from.- Parameters:
type
- the destination type- Returns:
- BlockDeviceMappingBuilder
-
sourceType
BlockDeviceMappingBuilder sourceType(BDMSourceType type)
The source type of the volume.- Parameters:
type
- the source type- Returns:
- BlockDeviceMappingBuilder
-
deleteOnTermination
BlockDeviceMappingBuilder deleteOnTermination(boolean deleteOnTermination)
Delete the volume at termination.- Parameters:
deleteOnTermination
- Set to True to delete the volume when the instance is deleted. Set to False to retain the volume when the instance is deleted.- Returns:
- BlockDeviceMappingBuilder
-
snapshotId
BlockDeviceMappingBuilder snapshotId(String snapshotId)
Set to create a volume from a snapshot id.- Returns:
- BlockDeviceMappingBuilder
-
volumeId
BlockDeviceMappingBuilder volumeId(String volumeId)
Set to create a volume from a volume id.- Returns:
- BlockDeviceMappingBuilder
-
volumeSize
BlockDeviceMappingBuilder volumeSize(Integer size)
Used to set the volume size of the destination volume (typically needed when source type is image).- Parameters:
size
- the size of the volume in Gigabytes.- Returns:
- BlockDeviceMappingBuilder
-
diskBus
BlockDeviceMappingBuilder diskBus(String diskBus)
Used to set the disk_bus, low level detail that some hypervisors (currently only libvirt) may support.- Parameters:
diskBus
- type, e.g ide, usb, virtio, scsi- Returns:
- BlockDeviceMappingBuilder
-
deviceType
BlockDeviceMappingBuilder deviceType(String deviceType)
Used to set the device_type, low level detail that some hypervisors (currently only libvirt) may support.- Parameters:
deviceType
- , disk, cdrom, floppy, lun- Returns:
- BlockDeviceMappingBuilder
-
volumeType
BlockDeviceMappingBuilder volumeType(String volumeType)
This can be used to specify the type of volume which the compute service will create and attach to the server.- Parameters:
volumeType
- The device volume_type.- Returns:
- BlockDeviceMappingBuilder
-
-