//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1-b02-fcs 
// 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: 2010.05.11 at 10:12:06 AM CEST 
//


package es.bsc.nuba.fco.tcloud;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;


/**
 * Description of a task 
 * 
 * <p>Java class for Task_Type complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="Task_Type">
 *   &lt;complexContent>
 *     &lt;extension base="{http://schemas.tcloud.telefonica.com/tcloud/0.1}TCloud_Resource_Type">
 *       &lt;sequence>
 *         &lt;element name="Owner" type="{http://schemas.tcloud.telefonica.com/tcloud/0.1}Reference_Type"/>
 *         &lt;element name="Result" type="{http://schemas.tcloud.telefonica.com/tcloud/0.1}Reference_Type" minOccurs="0"/>
 *         &lt;element name="Error" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;attribute name="message" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                 &lt;attribute name="majorErrorCode" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                 &lt;attribute name="minorErrorCode" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                 &lt;attribute name="vendorSpecificErrorCode" type="{http://www.w3.org/2001/XMLSchema}string" />
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *         &lt;element name="WaitingReason" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;attribute name="message" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                 &lt;attribute name="authority" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                 &lt;attribute name="contact" type="{http://www.w3.org/2001/XMLSchema}string" />
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/sequence>
 *       &lt;attribute name="startTime" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
 *       &lt;attribute name="endTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
 *       &lt;attribute name="expireTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
 *       &lt;attribute name="status" use="required">
 *         &lt;simpleType>
 *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *             &lt;enumeration value="queued"/>
 *             &lt;enumeration value="waiting"/>
 *             &lt;enumeration value="running"/>
 *             &lt;enumeration value="success"/>
 *             &lt;enumeration value="error"/>
 *             &lt;enumeration value="cancelled"/>
 *           &lt;/restriction>
 *         &lt;/simpleType>
 *       &lt;/attribute>
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Task_Type", namespace = "http://schemas.tcloud.telefonica.com/tcloud/0.1", propOrder = {
    "owner",
    "result",
    "error",
    "waitingReason"
})
public class TaskType
    extends TCloudResourceType
{

    @XmlElement(name = "Owner", namespace = "http://schemas.tcloud.telefonica.com/tcloud/0.1", required = true)
    protected ReferenceType owner;
    @XmlElement(name = "Result", namespace = "http://schemas.tcloud.telefonica.com/tcloud/0.1")
    protected ReferenceType result;
    @XmlElement(name = "Error", namespace = "http://schemas.tcloud.telefonica.com/tcloud/0.1")
    protected TaskType.Error error;
    @XmlElement(name = "WaitingReason", namespace = "http://schemas.tcloud.telefonica.com/tcloud/0.1")
    protected TaskType.WaitingReason waitingReason;
    @XmlAttribute(required = true)
    protected XMLGregorianCalendar startTime;
    @XmlAttribute
    protected XMLGregorianCalendar endTime;
    @XmlAttribute
    protected XMLGregorianCalendar expireTime;
    @XmlAttribute(required = true)
    protected String status;

    /**
     * Gets the value of the owner property.
     * 
     * @return
     *     possible object is
     *     {@link ReferenceType }
     *     
     */
    public ReferenceType getOwner() {
        return owner;
    }

    /**
     * Sets the value of the owner property.
     * 
     * @param value
     *     allowed object is
     *     {@link ReferenceType }
     *     
     */
    public void setOwner(ReferenceType value) {
        this.owner = value;
    }

    /**
     * Gets the value of the result property.
     * 
     * @return
     *     possible object is
     *     {@link ReferenceType }
     *     
     */
    public ReferenceType getResult() {
        return result;
    }

    /**
     * Sets the value of the result property.
     * 
     * @param value
     *     allowed object is
     *     {@link ReferenceType }
     *     
     */
    public void setResult(ReferenceType value) {
        this.result = value;
    }

    /**
     * Gets the value of the error property.
     * 
     * @return
     *     possible object is
     *     {@link TaskType.Error }
     *     
     */
    public TaskType.Error getError() {
        return error;
    }

    /**
     * Sets the value of the error property.
     * 
     * @param value
     *     allowed object is
     *     {@link TaskType.Error }
     *     
     */
    public void setError(TaskType.Error value) {
        this.error = value;
    }

    /**
     * Gets the value of the waitingReason property.
     * 
     * @return
     *     possible object is
     *     {@link TaskType.WaitingReason }
     *     
     */
    public TaskType.WaitingReason getWaitingReason() {
        return waitingReason;
    }

    /**
     * Sets the value of the waitingReason property.
     * 
     * @param value
     *     allowed object is
     *     {@link TaskType.WaitingReason }
     *     
     */
    public void setWaitingReason(TaskType.WaitingReason value) {
        this.waitingReason = value;
    }

    /**
     * Gets the value of the startTime property.
     * 
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public XMLGregorianCalendar getStartTime() {
        return startTime;
    }

    /**
     * Sets the value of the startTime property.
     * 
     * @param value
     *     allowed object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public void setStartTime(XMLGregorianCalendar value) {
        this.startTime = value;
    }

    /**
     * Gets the value of the endTime property.
     * 
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public XMLGregorianCalendar getEndTime() {
        return endTime;
    }

    /**
     * Sets the value of the endTime property.
     * 
     * @param value
     *     allowed object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public void setEndTime(XMLGregorianCalendar value) {
        this.endTime = value;
    }

    /**
     * Gets the value of the expireTime property.
     * 
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public XMLGregorianCalendar getExpireTime() {
        return expireTime;
    }

    /**
     * Sets the value of the expireTime property.
     * 
     * @param value
     *     allowed object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public void setExpireTime(XMLGregorianCalendar value) {
        this.expireTime = value;
    }

    /**
     * Gets the value of the status property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getStatus() {
        return status;
    }

    /**
     * Sets the value of the status property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setStatus(String value) {
        this.status = value;
    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;attribute name="message" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     *       &lt;attribute name="majorErrorCode" type="{http://www.w3.org/2001/XMLSchema}string" />
     *       &lt;attribute name="minorErrorCode" type="{http://www.w3.org/2001/XMLSchema}string" />
     *       &lt;attribute name="vendorSpecificErrorCode" type="{http://www.w3.org/2001/XMLSchema}string" />
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "")
    public static class Error {

        @XmlAttribute(required = true)
        protected String message;
        @XmlAttribute
        protected String majorErrorCode;
        @XmlAttribute
        protected String minorErrorCode;
        @XmlAttribute
        protected String vendorSpecificErrorCode;

        /**
         * Gets the value of the message property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getMessage() {
            return message;
        }

        /**
         * Sets the value of the message property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setMessage(String value) {
            this.message = value;
        }

        /**
         * Gets the value of the majorErrorCode property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getMajorErrorCode() {
            return majorErrorCode;
        }

        /**
         * Sets the value of the majorErrorCode property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setMajorErrorCode(String value) {
            this.majorErrorCode = value;
        }

        /**
         * Gets the value of the minorErrorCode property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getMinorErrorCode() {
            return minorErrorCode;
        }

        /**
         * Sets the value of the minorErrorCode property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setMinorErrorCode(String value) {
            this.minorErrorCode = value;
        }

        /**
         * Gets the value of the vendorSpecificErrorCode property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getVendorSpecificErrorCode() {
            return vendorSpecificErrorCode;
        }

        /**
         * Sets the value of the vendorSpecificErrorCode property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setVendorSpecificErrorCode(String value) {
            this.vendorSpecificErrorCode = value;
        }

    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;attribute name="message" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     *       &lt;attribute name="authority" type="{http://www.w3.org/2001/XMLSchema}string" />
     *       &lt;attribute name="contact" type="{http://www.w3.org/2001/XMLSchema}string" />
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "")
    public static class WaitingReason {

        @XmlAttribute(required = true)
        protected String message;
        @XmlAttribute
        protected String authority;
        @XmlAttribute
        protected String contact;

        /**
         * Gets the value of the message property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getMessage() {
            return message;
        }

        /**
         * Sets the value of the message property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setMessage(String value) {
            this.message = value;
        }

        /**
         * Gets the value of the authority property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getAuthority() {
            return authority;
        }

        /**
         * Sets the value of the authority property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setAuthority(String value) {
            this.authority = value;
        }

        /**
         * Gets the value of the contact property.
         * 
         * @return
         *     possible object is
         *     {@link String }
         *     
         */
        public String getContact() {
            return contact;
        }

        /**
         * Sets the value of the contact property.
         * 
         * @param value
         *     allowed object is
         *     {@link String }
         *     
         */
        public void setContact(String value) {
            this.contact = value;
        }

    }

}
