
com.vmware.vim25.HostSystemPowerState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vi-api Show documentation
Show all versions of vi-api Show documentation
This is a Java binding of the VMware Virtual Infrastructure SDK WSDL.
The newest version!
package com.vmware.vim25;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for HostSystemPowerState.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="HostSystemPowerState">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="poweredOn"/>
* <enumeration value="poweredOff"/>
* <enumeration value="standBy"/>
* <enumeration value="unknown"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "HostSystemPowerState")
@XmlEnum
public enum HostSystemPowerState {
@XmlEnumValue("poweredOn")
POWERED_ON("poweredOn"),
@XmlEnumValue("poweredOff")
POWERED_OFF("poweredOff"),
@XmlEnumValue("standBy")
STAND_BY("standBy"),
@XmlEnumValue("unknown")
UNKNOWN("unknown");
private final String value;
HostSystemPowerState(String v) {
value = v;
}
public String value() {
return value;
}
public static HostSystemPowerState fromValue(String v) {
for (HostSystemPowerState c: HostSystemPowerState.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy