
package com.amadeus.travelManagement.amadeus.xml._2010._06.travel_offerpricerq_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.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * Filtering criteria based on discount programs.
 * 
 * &lt;p&gt;Java class for ProgramCriteriaType complex type.
 * 
 * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
 * 
 * &lt;pre&gt;
 * &amp;lt;complexType name="ProgramCriteriaType"&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="MemberStatusText" type="{http://xml.amadeus.com/2010/06/Travel_OfferPriceRQ_v1}TextType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="Name" type="{http://xml.amadeus.com/2010/06/Travel_OfferPriceRQ_v1}NameType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="TypeCode" type="{http://xml.amadeus.com/2010/06/Travel_OfferPriceRQ_v1}ProgramTypeCodeType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="Pre-paidCertificate" type="{http://xml.amadeus.com/2010/06/Travel_OfferPriceRQ_v1}PrePaidCertificateType" maxOccurs="unbounded" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="ProgamContract" type="{http://xml.amadeus.com/2010/06/Travel_OfferPriceRQ_v1}ProgamContractType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="ProgramAccount" type="{http://xml.amadeus.com/2010/06/Travel_OfferPriceRQ_v1}ProgramAccountType" maxOccurs="unbounded" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="ProgramOwner" type="{http://xml.amadeus.com/2010/06/Travel_OfferPriceRQ_v1}ProgramOwnerType"/&amp;gt;
 *       &amp;lt;/sequence&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 = "ProgramCriteriaType", propOrder = {
    "memberStatusText",
    "name",
    "typeCode",
    "prePaidCertificate",
    "progamContract",
    "programAccount",
    "programOwner"
})
public class ProgramCriteriaType {

    @XmlElement(name = "MemberStatusText")
    protected String memberStatusText;
    @XmlElement(name = "Name")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    @XmlSchemaType(name = "token")
    protected String name;
    @XmlElement(name = "TypeCode")
    @XmlSchemaType(name = "string")
    protected ProgramTypeCodeContentType typeCode;
    @XmlElement(name = "Pre-paidCertificate")
    protected List<PrePaidCertificateType> prePaidCertificate;
    @XmlElement(name = "ProgamContract")
    protected ProgamContractType progamContract;
    @XmlElement(name = "ProgramAccount")
    protected List<ProgramAccountType> programAccount;
    @XmlElement(name = "ProgramOwner", required = true)
    protected ProgramOwnerType programOwner;

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

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

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

    /**
     * Sets the value of the typeCode property.
     * 
     * @param value
     *     allowed object is
     *     {@link ProgramTypeCodeContentType }
     *     
     */
    public void setTypeCode(ProgramTypeCodeContentType value) {
        this.typeCode = value;
    }

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

    /**
     * Gets the value of the progamContract property.
     * 
     * @return
     *     possible object is
     *     {@link ProgamContractType }
     *     
     */
    public ProgamContractType getProgamContract() {
        return progamContract;
    }

    /**
     * Sets the value of the progamContract property.
     * 
     * @param value
     *     allowed object is
     *     {@link ProgamContractType }
     *     
     */
    public void setProgamContract(ProgamContractType value) {
        this.progamContract = value;
    }

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

    /**
     * Gets the value of the programOwner property.
     * 
     * @return
     *     possible object is
     *     {@link ProgramOwnerType }
     *     
     */
    public ProgramOwnerType getProgramOwner() {
        return programOwner;
    }

    /**
     * Sets the value of the programOwner property.
     * 
     * @param value
     *     allowed object is
     *     {@link ProgramOwnerType }
     *     
     */
    public void setProgramOwner(ProgramOwnerType value) {
        this.programOwner = value;
    }

}
