//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.2-147
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.10.08 at 05:41:25 PM CEST
//
package eu.betaas.taas.taasvmmanager.occi.datamodel;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.w3c.dom.Element;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <extension base="{}resource">
* <sequence>
* <element name="cpu" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="memory" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="user" type="{}link" minOccurs="0"/>
* <element name="group" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="instance_type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="state" type="{}compute_state" minOccurs="0"/>
* <element name="disk" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="storage" type="{}link"/>
* <element name="save_as" type="{}link"/>
* <element name="type" type="{}storage_type"/>
* <element name="target" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="nic" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="network" type="{}link"/>
* <element name="ip" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="mac" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="context" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"cpu",
"memory",
"user",
"group",
"instanceType",
"state",
"disk",
"nic",
"context"
})
@XmlRootElement(name = "compute")
public class Compute
extends Resource
{
protected Integer cpu;
protected Integer memory;
protected Link user;
protected String group;
@XmlElement(name = "instance_type")
protected String instanceType;
protected ComputeState state;
protected List<Compute.Disk> disk;
protected List<Compute.Nic> nic;
protected Compute.Context context;
/**
* Gets the value of the cpu property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getCpu() {
return cpu;
}
/**
* Sets the value of the cpu property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setCpu(Integer value) {
this.cpu = value;
}
/**
* Gets the value of the memory property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getMemory() {
return memory;
}
/**
* Sets the value of the memory property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setMemory(Integer value) {
this.memory = value;
}
/**
* Gets the value of the user property.
*
* @return
* possible object is
* {@link Link }
*
*/
public Link getUser() {
return user;
}
/**
* Sets the value of the user property.
*
* @param value
* allowed object is
* {@link Link }
*
*/
public void setUser(Link value) {
this.user = value;
}
/**
* Gets the value of the group property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getGroup() {
return group;
}
/**
* Sets the value of the group property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setGroup(String value) {
this.group = value;
}
/**
* Gets the value of the instanceType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInstanceType() {
return instanceType;
}
/**
* Sets the value of the instanceType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInstanceType(String value) {
this.instanceType = value;
}
/**
* Gets the value of the state property.
*
* @return
* possible object is
* {@link ComputeState }
*
*/
public ComputeState getState() {
return state;
}
/**
* Sets the value of the state property.
*
* @param value
* allowed object is
* {@link ComputeState }
*
*/
public void setState(ComputeState value) {
this.state = value;
}
/**
* Gets the value of the disk property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the disk property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getDisk().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Compute.Disk }
*
*
*/
public List<Compute.Disk> getDisk() {
if (disk == null) {
disk = new ArrayList<Compute.Disk>();
}
return this.disk;
}
/**
* Gets the value of the nic property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the nic property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getNic().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Compute.Nic }
*
*
*/
public List<Compute.Nic> getNic() {
if (nic == null) {
nic = new ArrayList<Compute.Nic>();
}
return this.nic;
}
/**
* Gets the value of the context property.
*
* @return
* possible object is
* {@link Compute.Context }
*
*/
public Compute.Context getContext() {
return context;
}
/**
* Sets the value of the context property.
*
* @param value
* allowed object is
* {@link Compute.Context }
*
*/
public void setContext(Compute.Context value) {
this.context = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"any"
})
public static class Context {
@XmlAnyElement(lax = true)
protected List<Object> any;
/**
* Gets the value of the any property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the any property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAny().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
* {@link Element }
*
*
*/
public List<Object> getAny() {
if (any == null) {
any = new ArrayList<Object>();
}
return this.any;
}
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="storage" type="{}link"/>
* <element name="save_as" type="{}link"/>
* <element name="type" type="{}storage_type"/>
* <element name="target" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"storage",
"saveAs",
"type",
"target"
})
public static class Disk {
@XmlElement(required = true)
protected Link storage;
@XmlElement(name = "save_as", required = true)
protected Link saveAs;
@XmlElement(required = true)
protected StorageType type;
@XmlElement(required = true)
protected String target;
/**
* Gets the value of the storage property.
*
* @return
* possible object is
* {@link Link }
*
*/
public Link getStorage() {
return storage;
}
/**
* Sets the value of the storage property.
*
* @param value
* allowed object is
* {@link Link }
*
*/
public void setStorage(Link value) {
this.storage = value;
}
/**
* Gets the value of the saveAs property.
*
* @return
* possible object is
* {@link Link }
*
*/
public Link getSaveAs() {
return saveAs;
}
/**
* Sets the value of the saveAs property.
*
* @param value
* allowed object is
* {@link Link }
*
*/
public void setSaveAs(Link value) {
this.saveAs = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link StorageType }
*
*/
public StorageType getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link StorageType }
*
*/
public void setType(StorageType value) {
this.type = value;
}
/**
* Gets the value of the target property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTarget() {
return target;
}
/**
* Sets the value of the target property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTarget(String value) {
this.target = value;
}
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="network" type="{}link"/>
* <element name="ip" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="mac" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"network",
"ip",
"mac"
})
public static class Nic {
@XmlElement(required = true)
protected Link network;
protected String ip;
protected String mac;
/**
* Gets the value of the network property.
*
* @return
* possible object is
* {@link Link }
*
*/
public Link getNetwork() {
return network;
}
/**
* Sets the value of the network property.
*
* @param value
* allowed object is
* {@link Link }
*
*/
public void setNetwork(Link value) {
this.network = value;
}
/**
* Gets the value of the ip property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIp() {
return ip;
}
/**
* Sets the value of the ip property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIp(String value) {
this.ip = value;
}
/**
* Gets the value of the mac property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMac() {
return mac;
}
/**
* Sets the value of the mac property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMac(String value) {
this.mac = value;
}
}
}