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)
The boot index
|
BlockDeviceMappingCreate |
build()
Creates and return the Model Entity M
|
BlockDeviceMappingBuilder |
deleteOnTermination(boolean deleteOnTermination)
Set to True to delete the volume when the instance is deleted.
|
BlockDeviceMappingBuilder |
destinationType(BDMDestType type)
Either snap or any other value, including a blank string.
|
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)
Either snap or any other value, including a blank string.
|
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)
BlockDeviceMappingBuilder
deviceName
in interface BlockDeviceMappingBuilder
deviceName
- the device namepublic BlockDeviceMappingBuilder uuid(String id)
BlockDeviceMappingBuilder
uuid
in interface BlockDeviceMappingBuilder
id
- the device idpublic BlockDeviceMappingBuilder bootIndex(int i)
BlockDeviceMappingBuilder
bootIndex
in interface BlockDeviceMappingBuilder
public BlockDeviceMappingBuilder sourceType(BDMSourceType type)
BlockDeviceMappingBuilder
sourceType
in interface BlockDeviceMappingBuilder
type
- the source typepublic BlockDeviceMappingBuilder destinationType(BDMDestType type)
BlockDeviceMappingBuilder
destinationType
in interface BlockDeviceMappingBuilder
type
- the destination typepublic BlockDeviceMappingBuilder deleteOnTermination(boolean deleteOnTermination)
BlockDeviceMappingBuilder
deleteOnTermination
in interface BlockDeviceMappingBuilder
public BlockDeviceMappingBuilder snapshotId(String snapshotId)
BlockDeviceMappingBuilder
snapshotId
in interface BlockDeviceMappingBuilder
public BlockDeviceMappingBuilder volumeId(String volumeId)
BlockDeviceMappingBuilder
volumeId
in interface BlockDeviceMappingBuilder
public BlockDeviceMappingBuilder volumeSize(Integer volumeSize)
BlockDeviceMappingBuilder
volumeSize
in interface BlockDeviceMappingBuilder
volumeSize
- the size of the volumepublic BlockDeviceMappingBuilder diskBus(String diskBus)
BlockDeviceMappingBuilder
diskBus
in interface BlockDeviceMappingBuilder
public BlockDeviceMappingBuilder deviceType(String deviceType)
BlockDeviceMappingBuilder
deviceType
in interface BlockDeviceMappingBuilder
public BlockDeviceMappingCreate build()
Buildable.Builder
build
in interface Buildable.Builder<BlockDeviceMappingBuilder,BlockDeviceMappingCreate>
public BlockDeviceMappingBuilder from(BlockDeviceMappingCreate in)
Buildable.Builder
from
in interface Buildable.Builder<BlockDeviceMappingBuilder,BlockDeviceMappingCreate>
Copyright © 2017. All rights reserved.