

/**
 * Copyright (C) 2006-2008 Sun Microsystems, Inc.
 * 
 * Sun Microsystems, Inc. confidential
 * All rights reserved
 *
 * This file is autogenerated by glue-jaxws.xsl, DO NOT EDIT! 
 */

package com.sun.xml.ws.commons.virtualbox;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;

@XmlType(name = "MachineState")
@XmlEnum
public enum MachineState {

    @XmlEnumValue("Null")
    Null("Null"),
    @XmlEnumValue("PoweredOff")
    PoweredOff("PoweredOff"),
    @XmlEnumValue("Saved")
    Saved("Saved"),
    @XmlEnumValue("Aborted")
    Aborted("Aborted"),
    @XmlEnumValue("Running")
    Running("Running"),
    @XmlEnumValue("Paused")
    Paused("Paused"),
    @XmlEnumValue("Stuck")
    Stuck("Stuck"),
    @XmlEnumValue("Starting")
    Starting("Starting"),
    @XmlEnumValue("Stopping")
    Stopping("Stopping"),
    @XmlEnumValue("Saving")
    Saving("Saving"),
    @XmlEnumValue("Restoring")
    Restoring("Restoring"),
    @XmlEnumValue("Discarding")
    Discarding("Discarding");

    private final String value;

    MachineState(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static MachineState fromValue(String v) {
        for (MachineState c: MachineState. values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}

