package org.ovirt.engine.core.common.businessentities;
import java.util.HashMap;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
//C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to .NET attributes:
@XmlAccessorType(XmlAccessType.NONE)
@XmlType(name = "VMStatus")
public enum VMStatus {
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
Unassigned(-1),
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
Down(0),
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
Up(1),
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
PoweringUp(2),
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
PoweredDown(3),
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
Paused(4),
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
MigratingFrom(5),
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
MigratingTo(6),
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
Unknown(7),
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
NotResponding(8),
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
WaitForLaunch(9),
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
RebootInProgress(10),
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
SavingState(11),
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
RestoringState(12),
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
Suspended(13),
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
ImageIllegal(14),
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
ImageLocked(15),
// C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to
// .NET attributes:
// [EnumMember]
PoweringDown(16);
private int intValue;
private static java.util.HashMap<Integer, VMStatus> mappings = new HashMap<Integer, VMStatus>();
static {
for (VMStatus status : values()) {
mappings.put(status.getValue(), status);
}
}
private VMStatus(int value) {
intValue = value;
}
public int getValue() {
return intValue;
}
public static VMStatus forValue(int value) {
return mappings.get(value);
}
}