org.jclouds.virtualbox.domain
Class HardDisk

java.lang.Object
  extended by 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.


Nested Class Summary
static class HardDisk.Builder
           
 
Field Summary
static String DEFAULT_DISK_FORMAT
           
 
Constructor Summary
HardDisk(DeviceDetails deviceDetails, String diskPath, String diskFormat, boolean autoDelete)
           
 
Method Summary
static HardDisk.Builder builder()
           
 boolean equals(Object o)
           
 DeviceDetails getDeviceDetails()
           
 String getDiskFormat()
           
 String getDiskPath()
           
 String getName()
           
 int hashCode()
           
 boolean isAutoDelete()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_DISK_FORMAT

public static final String DEFAULT_DISK_FORMAT
See Also:
Constant Field Values
Constructor Detail

HardDisk

public HardDisk(DeviceDetails deviceDetails,
                String diskPath,
                String diskFormat,
                boolean autoDelete)
Method Detail

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.