org.jclouds.virtualbox.domain
Class HardDisk
java.lang.Object
org.jclouds.virtualbox.domain.HardDisk
public class HardDisk
- extends Object
A representation of a hard disk in a VirtualBox VM.
name is a description to identify the hard disk.
diskPath is an absolute path to the file that is the location of the storage for the hard disk.
diskFormat is any of the formats supported by ISystemProperties.getMediumFormats() in the VirtualBox API.
This call is platform-dependent so the supported formats differ from host to host. The default format used is VDI.
deviceDetails contains information about how the HardDisk is attached to the StorageController.
DEFAULT_DISK_FORMAT
public static final String DEFAULT_DISK_FORMAT
- See Also:
- Constant Field Values
HardDisk
public HardDisk(DeviceDetails deviceDetails,
String diskPath,
String diskFormat,
boolean autoDelete)
getDiskPath
public String getDiskPath()
getDiskFormat
public String getDiskFormat()
getDeviceDetails
public DeviceDetails getDeviceDetails()
getName
public String getName()
isAutoDelete
public boolean isAutoDelete()
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
builder
public static HardDisk.Builder builder()
Copyright © 2009-2012 jclouds. All Rights Reserved.