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 classBlockDeviceMapping.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protectedBlockDeviceMapping(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.Builderbuilder()booleanequals(Object obj)IntegergetBootIndex()BooleangetDeleteOnTermination()StringgetDestinationType()StringgetDeviceName()StringgetDeviceType()StringgetDiskBus()StringgetGuestFormat()BooleangetNoDevice()StringgetSourceType()StringgetUuid()IntegergetVolumeSize()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()BlockDeviceMapping.BuildertoBuilder()StringtoString()
-
-
-
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()
-
-