Enum VirtualMachineState
- java.lang.Object
-
- java.lang.Enum<VirtualMachineState>
-
- com.azure.resourcemanager.labservices.models.VirtualMachineState
-
- All Implemented Interfaces:
Serializable
,Comparable<VirtualMachineState>
public enum VirtualMachineState extends Enum<VirtualMachineState>
Defines values for VirtualMachineState.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REDEPLOYING
Enum value Redeploying.REIMAGING
Enum value Reimaging.RESETTING_PASSWORD
Enum value ResettingPassword.RUNNING
Enum value Running.STARTING
Enum value Starting.STOPPED
Enum value Stopped.STOPPING
Enum value Stopping.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VirtualMachineState
fromString(String value)
Parses a serialized value to a VirtualMachineState instance.String
toString()
static VirtualMachineState
valueOf(String name)
Returns the enum constant of this type with the specified name.static VirtualMachineState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STOPPED
public static final VirtualMachineState STOPPED
Enum value Stopped.
-
STARTING
public static final VirtualMachineState STARTING
Enum value Starting.
-
RUNNING
public static final VirtualMachineState RUNNING
Enum value Running.
-
STOPPING
public static final VirtualMachineState STOPPING
Enum value Stopping.
-
RESETTING_PASSWORD
public static final VirtualMachineState RESETTING_PASSWORD
Enum value ResettingPassword.
-
REIMAGING
public static final VirtualMachineState REIMAGING
Enum value Reimaging.
-
REDEPLOYING
public static final VirtualMachineState REDEPLOYING
Enum value Redeploying.
-
-
Method Detail
-
values
public static VirtualMachineState[] 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 (VirtualMachineState c : VirtualMachineState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VirtualMachineState 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
-
fromString
public static VirtualMachineState fromString(String value)
Parses a serialized value to a VirtualMachineState instance.- Parameters:
value
- the serialized value to parse.- Returns:
- the parsed VirtualMachineState object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toString
in classEnum<VirtualMachineState>
-
-