
package gov.va.med.esr.vbr.webservice;

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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <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;sequence>
 *         &lt;element name="searchCriteria">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element ref="{http://DNS   /schema/esr/vbr/v1}veteranIdentifier"/>
 *                   &lt;element name="types">
 *                     &lt;complexType>
 *                       &lt;complexContent>
 *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                           &lt;sequence>
 *                             &lt;element name="type" type="{http://DNS   /schema/esr/vbr/v1}documentType" maxOccurs="unbounded"/>
 *                           &lt;/sequence>
 *                         &lt;/restriction>
 *                       &lt;/complexContent>
 *                     &lt;/complexType>
 *                   &lt;/element>
 *                   &lt;element ref="{http://DNS   /schema/esr/vbr/v1}versionNumber"/>
 *                   &lt;element ref="{http://DNS   /schema/esr/vbr/v1}releaseControlNumber"/>
 *                   &lt;element name="format" type="{http://DNS   /schema/esr/vbr/v1}formatType"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "searchCriteria"
})
@XmlRootElement(name = "RetrieveDocumentRequest")
public class RetrieveDocumentRequest {

    @XmlElement(required = true)
    protected RetrieveDocumentRequest.SearchCriteria searchCriteria;

    /**
     * Gets the value of the searchCriteria property.
     * 
     * @return
     *     possible object is
     *     {@link RetrieveDocumentRequest.SearchCriteria }
     *     
     */
    public RetrieveDocumentRequest.SearchCriteria getSearchCriteria() {
        return searchCriteria;
    }

    /**
     * Sets the value of the searchCriteria property.
     * 
     * @param value
     *     allowed object is
     *     {@link RetrieveDocumentRequest.SearchCriteria }
     *     
     */
    public void setSearchCriteria(RetrieveDocumentRequest.SearchCriteria value) {
        this.searchCriteria = 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;sequence>
     *         &lt;element ref="{http://DNS   /schema/esr/vbr/v1}veteranIdentifier"/>
     *         &lt;element name="types">
     *           &lt;complexType>
     *             &lt;complexContent>
     *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *                 &lt;sequence>
     *                   &lt;element name="type" type="{http://DNS   /schema/esr/vbr/v1}documentType" maxOccurs="unbounded"/>
     *                 &lt;/sequence>
     *               &lt;/restriction>
     *             &lt;/complexContent>
     *           &lt;/complexType>
     *         &lt;/element>
     *         &lt;element ref="{http://DNS   /schema/esr/vbr/v1}versionNumber"/>
     *         &lt;element ref="{http://DNS   /schema/esr/vbr/v1}releaseControlNumber"/>
     *         &lt;element name="format" type="{http://DNS   /schema/esr/vbr/v1}formatType"/>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "veteranIdentifier",
        "types",
        "versionNumber",
        "releaseControlNumber",
        "format"
    })
    public static class SearchCriteria {

        @XmlElement(required = true)
        protected VeteranIdentifier veteranIdentifier;
        @XmlElement(required = true)
        protected RetrieveDocumentRequest.SearchCriteria.Types types;
        protected int versionNumber;
        @XmlElement(required = true)
        protected String releaseControlNumber;
        @XmlElement(required = true)
        protected FormatType format;

        /**
         * Gets the value of the veteranIdentifier property.
         * 
         * @return
         *     possible object is
         *     {@link VeteranIdentifier }
         *     
         */
        public VeteranIdentifier getVeteranIdentifier() {
            return veteranIdentifier;
        }

        /**
         * Sets the value of the veteranIdentifier property.
         * 
         * @param value
         *     allowed object is
         *     {@link VeteranIdentifier }
         *     
         */
        public void setVeteranIdentifier(VeteranIdentifier value) {
            this.veteranIdentifier = value;
        }

        /**
         * Gets the value of the types property.
         * 
         * @return
         *     possible object is
         *     {@link RetrieveDocumentRequest.SearchCriteria.Types }
         *     
         */
        public RetrieveDocumentRequest.SearchCriteria.Types getTypes() {
            return types;
        }

        /**
         * Sets the value of the types property.
         * 
         * @param value
         *     allowed object is
         *     {@link RetrieveDocumentRequest.SearchCriteria.Types }
         *     
         */
        public void setTypes(RetrieveDocumentRequest.SearchCriteria.Types value) {
            this.types = value;
        }

        /**
         * Gets the value of the versionNumber property.
         * 
         */
        public int getVersionNumber() {
            return versionNumber;
        }

        /**
         * Sets the value of the versionNumber property.
         * 
         */
        public void setVersionNumber(int value) {
            this.versionNumber = value;
        }

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

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

        /**
         * Gets the value of the format property.
         * 
         * @return
         *     possible object is
         *     {@link FormatType }
         *     
         */
        public FormatType getFormat() {
            return format;
        }

        /**
         * Sets the value of the format property.
         * 
         * @param value
         *     allowed object is
         *     {@link FormatType }
         *     
         */
        public void setFormat(FormatType value) {
            this.format = 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;sequence>
         *         &lt;element name="type" type="{http://DNS   /schema/esr/vbr/v1}documentType" maxOccurs="unbounded"/>
         *       &lt;/sequence>
         *     &lt;/restriction>
         *   &lt;/complexContent>
         * &lt;/complexType>
         * </pre>
         * 
         * 
         */
        @XmlAccessorType(XmlAccessType.FIELD)
        @XmlType(name = "", propOrder = {
            "type"
        })
        public static class Types {

            @XmlElement(required = true)
            protected List<DocumentType> type;

            /**
             * Gets the value of the type 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 type property.
             * 
             * <p>
             * For example, to add a new item, do as follows:
             * <pre>
             *    getType().add(newItem);
             * </pre>
             * 
             * 
             * <p>
             * Objects of the following type(s) are allowed in the list
             * {@link DocumentType }
             * 
             * 
             */
            public List<DocumentType> getType() {
                if (type == null) {
                    type = new ArrayList<DocumentType>();
                }
                return this.type;
            }

        }

    }

}
