![JAR search and dependency download from the Maven repository](/logo.png)
com.vmware.vim25.HostLicensableResourceKey Maven / Gradle / Ivy
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 HostLicensableResourceKey.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="HostLicensableResourceKey">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="numCpuPackages"/>
* <enumeration value="numCpuCores"/>
* <enumeration value="memorySize"/>
* <enumeration value="memoryForVms"/>
* <enumeration value="numVmsStarted"/>
* <enumeration value="numVmsStarting"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "HostLicensableResourceKey")
@XmlEnum
public enum HostLicensableResourceKey {
@XmlEnumValue("numCpuPackages")
NUM_CPU_PACKAGES("numCpuPackages"),
@XmlEnumValue("numCpuCores")
NUM_CPU_CORES("numCpuCores"),
@XmlEnumValue("memorySize")
MEMORY_SIZE("memorySize"),
@XmlEnumValue("memoryForVms")
MEMORY_FOR_VMS("memoryForVms"),
@XmlEnumValue("numVmsStarted")
NUM_VMS_STARTED("numVmsStarted"),
@XmlEnumValue("numVmsStarting")
NUM_VMS_STARTING("numVmsStarting");
private final String value;
HostLicensableResourceKey(String v) {
value = v;
}
public String value() {
return value;
}
public static HostLicensableResourceKey fromValue(String v) {
for (HostLicensableResourceKey c: HostLicensableResourceKey.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy