Class BlockDeviceMapping
- java.lang.Object
-
- org.jclouds.openstack.nova.v2_0.domain.BlockDeviceMapping
-
public class BlockDeviceMapping extends Object
A representation of a block device that can be used to boot a Nova instance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlockDeviceMapping.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protected
BlockDeviceMapping(String uuid, String deviceName, String deviceType, Integer volumeSize, String sourceType, String destinationType, String diskBus, Boolean noDevice, String guestFormat, Integer bootIndex, Boolean deleteOnTermination)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BlockDeviceMapping.Builder
builder()
boolean
equals(Object obj)
Integer
getBootIndex()
Boolean
getDeleteOnTermination()
String
getDestinationType()
String
getDeviceName()
String
getDeviceType()
String
getDiskBus()
String
getGuestFormat()
Boolean
getNoDevice()
String
getSourceType()
String
getUuid()
Integer
getVolumeSize()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
BlockDeviceMapping.Builder
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
BlockDeviceMapping
@ConstructorProperties({"uuid","device_name","device_type","volume_size","source_type","destination_type","disk_bus","no_device","guest_format","boot_index","delete_on_termination"}) protected BlockDeviceMapping(String uuid, String deviceName, String deviceType, Integer volumeSize, String sourceType, String destinationType, String diskBus, Boolean noDevice, String guestFormat, Integer bootIndex, Boolean deleteOnTermination)
-
-
Method Detail
-
getDestinationType
@Nullable public String getDestinationType()
- Returns:
- the destination type of the block device
-
getGuestFormat
@Nullable public String getGuestFormat()
- Returns:
- the guest format of the block device
-
getDeleteOnTermination
@Nullable public Boolean getDeleteOnTermination()
- Returns:
- true if the block device should terminate on deletion
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
builder
public static BlockDeviceMapping.Builder builder()
-
toBuilder
public BlockDeviceMapping.Builder toBuilder()
-
-