Package org.ovirt.engine.sdk4.types
Enum BootDevice
- java.lang.Object
-
- java.lang.Enum<BootDevice>
-
- org.ovirt.engine.sdk4.types.BootDevice
-
- All Implemented Interfaces:
Serializable
,Comparable<BootDevice>
public enum BootDevice extends Enum<BootDevice>
Represents the kinds of devices that a virtual machine can boot from.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BootDevice
fromValue(String value)
String
value()
static BootDevice
valueOf(String name)
Returns the enum constant of this type with the specified name.static BootDevice[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CDROM
public static final BootDevice CDROM
Boot from CD-ROM. The CD-ROM can be chosen from the list of ISO files available in an ISO domain attached to the ata center that the virtual machine belongs to.
-
HD
public static final BootDevice HD
Boot from the hard drive.
-
NETWORK
public static final BootDevice NETWORK
Boot from the network, using PXE. It is necessary to have https://en.wikipedia.org/wiki/Preboot_Execution_Environment[PXE] configured on the network that the virtual machine is connected to.
-
-
Method Detail
-
values
public static BootDevice[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BootDevice c : BootDevice.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BootDevice valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public String value()
-
fromValue
public static BootDevice fromValue(String value)
-
-