
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 ref="{http://DNS   /schema/esr/vbr/v1}veteranIdentifier"/>
 *         &lt;element ref="{http://DNS   /schema/esr/vbr/v1}deliveryPreference" minOccurs="0"/>
 *         &lt;element name="documents">
 *           &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}document" maxOccurs="unbounded"/>
 *                 &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 = {
    "veteranIdentifier",
    "deliveryPreference",
    "documents"
})
@XmlRootElement(name = "SaveDocumentRequest")
public class SaveDocumentRequest {

    @XmlElement(required = true)
    protected VeteranIdentifier veteranIdentifier;
    protected String deliveryPreference;
    @XmlElement(required = true)
    protected SaveDocumentRequest.Documents documents;

    /**
     * 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 deliveryPreference property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getDeliveryPreference() {
        return deliveryPreference;
    }

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

    /**
     * Gets the value of the documents property.
     * 
     * @return
     *     possible object is
     *     {@link SaveDocumentRequest.Documents }
     *     
     */
    public SaveDocumentRequest.Documents getDocuments() {
        return documents;
    }

    /**
     * Sets the value of the documents property.
     * 
     * @param value
     *     allowed object is
     *     {@link SaveDocumentRequest.Documents }
     *     
     */
    public void setDocuments(SaveDocumentRequest.Documents value) {
        this.documents = 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}document" maxOccurs="unbounded"/>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "document"
    })
    public static class Documents {

        @XmlElement(required = true)
        protected List<Document> document;

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

    }

}
