package org.zstack.test.deployer.schema; import javax.xml.bind.annotation.*; /** * <p>Java class for SimulatorHostConfig complex type. * <p> * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * <complexType name="SimulatorHostConfig"> * <complexContent> * <extension base="{http://zstack.org/schema/zstack}HostConfigBase"> * <attribute name="memoryCapacity" type="{http://www.w3.org/2001/XMLSchema}string" default="8G" /> * <attribute name="cpuNum" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="8" /> * <attribute name="cpuSpeed" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="3000" /> * </extension> * </complexContent> * </complexType> * </pre> */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SimulatorHostConfig") public class SimulatorHostConfig extends HostConfigBase { @XmlAttribute(name = "memoryCapacity") protected String memoryCapacity; @XmlAttribute(name = "cpuNum") @XmlSchemaType(name = "unsignedInt") protected Long cpuNum; @XmlAttribute(name = "cpuSpeed") @XmlSchemaType(name = "unsignedInt") protected Long cpuSpeed; /** * Gets the value of the memoryCapacity property. * * @return possible object is * {@link String } */ public String getMemoryCapacity() { if (memoryCapacity == null) { return "8G"; } else { return memoryCapacity; } } /** * Sets the value of the memoryCapacity property. * * @param value allowed object is * {@link String } */ public void setMemoryCapacity(String value) { this.memoryCapacity = value; } /** * Gets the value of the cpuNum property. * * @return possible object is * {@link Long } */ public long getCpuNum() { if (cpuNum == null) { return 8L; } else { return cpuNum; } } /** * Sets the value of the cpuNum property. * * @param value allowed object is * {@link Long } */ public void setCpuNum(Long value) { this.cpuNum = value; } /** * Gets the value of the cpuSpeed property. * * @return possible object is * {@link Long } */ public long getCpuSpeed() { if (cpuSpeed == null) { return 3000L; } else { return cpuSpeed; } } /** * Sets the value of the cpuSpeed property. * * @param value allowed object is * {@link Long } */ public void setCpuSpeed(Long value) { this.cpuSpeed = value; } }