Package org.ovirt.engine.sdk4.types
Enum SerialNumberPolicy
- java.lang.Object
-
- java.lang.Enum<SerialNumberPolicy>
-
- org.ovirt.engine.sdk4.types.SerialNumberPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<SerialNumberPolicy>
public enum SerialNumberPolicy extends Enum<SerialNumberPolicy>
Type representing the policy of a Serial Number.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUSTOM
This policy allows the user to provide an arbitrary string as the Serial Number.HOST
This policy is the legacy policy.NONE
This policy is used to remove the Serial Number Policy, moving it to default: null.VM
This policy will use the Virtual Machine ID as the Serial Number.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SerialNumberPolicy
fromValue(String value)
String
value()
static SerialNumberPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static SerialNumberPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CUSTOM
public static final SerialNumberPolicy CUSTOM
This policy allows the user to provide an arbitrary string as the Serial Number.
-
HOST
public static final SerialNumberPolicy HOST
This policy is the legacy policy. It will use the Host ID as the Serial Number.
-
NONE
public static final SerialNumberPolicy NONE
This policy is used to remove the Serial Number Policy, moving it to default: null.
-
VM
public static final SerialNumberPolicy VM
This policy will use the Virtual Machine ID as the Serial Number.
-
-
Method Detail
-
values
public static SerialNumberPolicy[] 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 (SerialNumberPolicy c : SerialNumberPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SerialNumberPolicy 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 SerialNumberPolicy fromValue(String value)
-
-