
package com.amadeus.travelManagement.amadeus.xml._2010._06.travel_servicelistrs_v1;

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.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.datatype.XMLGregorianCalendar;


/**
 * A data type definition for Encoding Scheme.
 * 
 * &lt;p&gt;Java class for EncSchemeType complex type.
 * 
 * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
 * 
 * &lt;pre&gt;
 * &amp;lt;complexType name="EncSchemeType"&amp;gt;
 *   &amp;lt;complexContent&amp;gt;
 *     &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
 *       &amp;lt;sequence&amp;gt;
 *         &amp;lt;element name="Detail" minOccurs="0"&amp;gt;
 *           &amp;lt;complexType&amp;gt;
 *             &amp;lt;complexContent&amp;gt;
 *               &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
 *                 &amp;lt;sequence&amp;gt;
 *                   &amp;lt;element name="SupportedDomain" maxOccurs="unbounded" minOccurs="0"&amp;gt;
 *                     &amp;lt;complexType&amp;gt;
 *                       &amp;lt;complexContent&amp;gt;
 *                         &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
 *                           &amp;lt;attribute name="Name" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}DomainListType" /&amp;gt;
 *                           &amp;lt;attribute name="Version" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}ContextSimpleType" /&amp;gt;
 *                         &amp;lt;/restriction&amp;gt;
 *                       &amp;lt;/complexContent&amp;gt;
 *                     &amp;lt;/complexType&amp;gt;
 *                   &amp;lt;/element&amp;gt;
 *                 &amp;lt;/sequence&amp;gt;
 *                 &amp;lt;attribute name="SchemeName" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}ProperNameSimpleType" /&amp;gt;
 *                 &amp;lt;attribute name="SchemePurpose" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}ApplicationSimpleType" /&amp;gt;
 *                 &amp;lt;attribute name="Scheme_URI" type="{http://www.w3.org/2001/XMLSchema}anyURI" /&amp;gt;
 *                 &amp;lt;attribute name="SchemeVersion" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}CodesetValueSimpleType" /&amp;gt;
 *               &amp;lt;/restriction&amp;gt;
 *             &amp;lt;/complexContent&amp;gt;
 *           &amp;lt;/complexType&amp;gt;
 *         &amp;lt;/element&amp;gt;
 *         &amp;lt;element name="Metadata" minOccurs="0"&amp;gt;
 *           &amp;lt;complexType&amp;gt;
 *             &amp;lt;complexContent&amp;gt;
 *               &amp;lt;extension base="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}MetaBaseType"&amp;gt;
 *                 &amp;lt;sequence&amp;gt;
 *                   &amp;lt;element name="Remarks" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}V172_RemarkType" minOccurs="0"/&amp;gt;
 *                 &amp;lt;/sequence&amp;gt;
 *                 &amp;lt;attribute name="Timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime" /&amp;gt;
 *               &amp;lt;/extension&amp;gt;
 *             &amp;lt;/complexContent&amp;gt;
 *           &amp;lt;/complexType&amp;gt;
 *         &amp;lt;/element&amp;gt;
 *       &amp;lt;/sequence&amp;gt;
 *       &amp;lt;attribute name="Key" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}InstanceClassSimpleType" /&amp;gt;
 *       &amp;lt;attribute name="OwnerCode" use="required" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}OwnerSimpleType" /&amp;gt;
 *       &amp;lt;attribute name="OwnerType" use="required" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}EncSchemeListType" /&amp;gt;
 *       &amp;lt;attribute name="OwnerName" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}ProperNameSimpleType" /&amp;gt;
 *       &amp;lt;attribute name="SchemeToken" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}DescriptionSimpleType" /&amp;gt;
 *     &amp;lt;/restriction&amp;gt;
 *   &amp;lt;/complexContent&amp;gt;
 * &amp;lt;/complexType&amp;gt;
 * &lt;/pre&gt;
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EncSchemeType", propOrder = {
    "detail",
    "metadata"
})
@XmlSeeAlso({
    com.amadeus.travelManagement.amadeus.xml._2010._06.travel_servicelistrs_v1.PolicyType.Metadata.EncodingScheme.class
})
public class EncSchemeType {

    @XmlElement(name = "Detail")
    protected EncSchemeType.Detail detail;
    @XmlElement(name = "Metadata")
    protected EncSchemeType.Metadata metadata;
    @XmlAttribute(name = "Key")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    protected String key;
    @XmlAttribute(name = "OwnerCode", required = true)
    protected String ownerCode;
    @XmlAttribute(name = "OwnerType", required = true)
    protected String ownerType;
    @XmlAttribute(name = "OwnerName")
    protected String ownerName;
    @XmlAttribute(name = "SchemeToken")
    protected String schemeToken;

    /**
     * Gets the value of the detail property.
     * 
     * @return
     *     possible object is
     *     {@link EncSchemeType.Detail }
     *     
     */
    public EncSchemeType.Detail getDetail() {
        return detail;
    }

    /**
     * Sets the value of the detail property.
     * 
     * @param value
     *     allowed object is
     *     {@link EncSchemeType.Detail }
     *     
     */
    public void setDetail(EncSchemeType.Detail value) {
        this.detail = value;
    }

    /**
     * Gets the value of the metadata property.
     * 
     * @return
     *     possible object is
     *     {@link EncSchemeType.Metadata }
     *     
     */
    public EncSchemeType.Metadata getMetadata() {
        return metadata;
    }

    /**
     * Sets the value of the metadata property.
     * 
     * @param value
     *     allowed object is
     *     {@link EncSchemeType.Metadata }
     *     
     */
    public void setMetadata(EncSchemeType.Metadata value) {
        this.metadata = value;
    }

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

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

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

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

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

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

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

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

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

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


    /**
     * &lt;p&gt;Java class for anonymous complex type.
     * 
     * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
     * 
     * &lt;pre&gt;
     * &amp;lt;complexType&amp;gt;
     *   &amp;lt;complexContent&amp;gt;
     *     &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
     *       &amp;lt;sequence&amp;gt;
     *         &amp;lt;element name="SupportedDomain" maxOccurs="unbounded" minOccurs="0"&amp;gt;
     *           &amp;lt;complexType&amp;gt;
     *             &amp;lt;complexContent&amp;gt;
     *               &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
     *                 &amp;lt;attribute name="Name" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}DomainListType" /&amp;gt;
     *                 &amp;lt;attribute name="Version" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}ContextSimpleType" /&amp;gt;
     *               &amp;lt;/restriction&amp;gt;
     *             &amp;lt;/complexContent&amp;gt;
     *           &amp;lt;/complexType&amp;gt;
     *         &amp;lt;/element&amp;gt;
     *       &amp;lt;/sequence&amp;gt;
     *       &amp;lt;attribute name="SchemeName" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}ProperNameSimpleType" /&amp;gt;
     *       &amp;lt;attribute name="SchemePurpose" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}ApplicationSimpleType" /&amp;gt;
     *       &amp;lt;attribute name="Scheme_URI" type="{http://www.w3.org/2001/XMLSchema}anyURI" /&amp;gt;
     *       &amp;lt;attribute name="SchemeVersion" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}CodesetValueSimpleType" /&amp;gt;
     *     &amp;lt;/restriction&amp;gt;
     *   &amp;lt;/complexContent&amp;gt;
     * &amp;lt;/complexType&amp;gt;
     * &lt;/pre&gt;
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "supportedDomain"
    })
    public static class Detail {

        @XmlElement(name = "SupportedDomain")
        protected List<EncSchemeType.Detail.SupportedDomain> supportedDomain;
        @XmlAttribute(name = "SchemeName")
        protected String schemeName;
        @XmlAttribute(name = "SchemePurpose")
        protected String schemePurpose;
        @XmlAttribute(name = "Scheme_URI")
        @XmlSchemaType(name = "anyURI")
        protected String schemeURI;
        @XmlAttribute(name = "SchemeVersion")
        protected String schemeVersion;

        /**
         * Gets the value of the supportedDomain property.
         * 
         * &lt;p&gt;
         * 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 &lt;CODE&gt;set&lt;/CODE&gt; method for the supportedDomain property.
         * 
         * &lt;p&gt;
         * For example, to add a new item, do as follows:
         * &lt;pre&gt;
         *    getSupportedDomain().add(newItem);
         * &lt;/pre&gt;
         * 
         * 
         * &lt;p&gt;
         * Objects of the following type(s) are allowed in the list
         * {@link EncSchemeType.Detail.SupportedDomain }
         * 
         * 
         */
        public List<EncSchemeType.Detail.SupportedDomain> getSupportedDomain() {
            if (supportedDomain == null) {
                supportedDomain = new ArrayList<EncSchemeType.Detail.SupportedDomain>();
            }
            return this.supportedDomain;
        }

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

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

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

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

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

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

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

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


        /**
         * &lt;p&gt;Java class for anonymous complex type.
         * 
         * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
         * 
         * &lt;pre&gt;
         * &amp;lt;complexType&amp;gt;
         *   &amp;lt;complexContent&amp;gt;
         *     &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
         *       &amp;lt;attribute name="Name" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}DomainListType" /&amp;gt;
         *       &amp;lt;attribute name="Version" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}ContextSimpleType" /&amp;gt;
         *     &amp;lt;/restriction&amp;gt;
         *   &amp;lt;/complexContent&amp;gt;
         * &amp;lt;/complexType&amp;gt;
         * &lt;/pre&gt;
         * 
         * 
         */
        @XmlAccessorType(XmlAccessType.FIELD)
        @XmlType(name = "")
        public static class SupportedDomain {

            @XmlAttribute(name = "Name")
            protected String name;
            @XmlAttribute(name = "Version")
            protected String version;

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

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

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

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

        }

    }


    /**
     * &lt;p&gt;Java class for anonymous complex type.
     * 
     * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
     * 
     * &lt;pre&gt;
     * &amp;lt;complexType&amp;gt;
     *   &amp;lt;complexContent&amp;gt;
     *     &amp;lt;extension base="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}MetaBaseType"&amp;gt;
     *       &amp;lt;sequence&amp;gt;
     *         &amp;lt;element name="Remarks" type="{http://xml.amadeus.com/2010/06/Travel_ServiceListRS_v1}V172_RemarkType" minOccurs="0"/&amp;gt;
     *       &amp;lt;/sequence&amp;gt;
     *       &amp;lt;attribute name="Timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime" /&amp;gt;
     *     &amp;lt;/extension&amp;gt;
     *   &amp;lt;/complexContent&amp;gt;
     * &amp;lt;/complexType&amp;gt;
     * &lt;/pre&gt;
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "remarks"
    })
    public static class Metadata
        extends MetaBaseType
    {

        @XmlElement(name = "Remarks")
        protected V172RemarkType remarks;
        @XmlAttribute(name = "Timestamp")
        @XmlSchemaType(name = "dateTime")
        protected XMLGregorianCalendar timestamp;

        /**
         * Gets the value of the remarks property.
         * 
         * @return
         *     possible object is
         *     {@link V172RemarkType }
         *     
         */
        public V172RemarkType getRemarks() {
            return remarks;
        }

        /**
         * Sets the value of the remarks property.
         * 
         * @param value
         *     allowed object is
         *     {@link V172RemarkType }
         *     
         */
        public void setRemarks(V172RemarkType value) {
            this.remarks = value;
        }

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

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

    }

}
