
package com.amadeus.fmptbq_24_1_1a;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
import java.util.List;


/**
 * Contains flight travel (date, time, flight number,...) and posting avaibility information
 * 
 * &lt;p&gt;Java class for TravelProductType complex type.
 * 
 * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
 * 
 * &lt;pre&gt;
 * &amp;lt;complexType name="TravelProductType"&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="productDateTime" type="{http://xml.amadeus.com/FMPTBQ_24_1_1A}ProductDateTimeType_195546C"/&amp;gt;
 *         &amp;lt;element name="location" type="{http://xml.amadeus.com/FMPTBQ_24_1_1A}LocationIdentificationDetailsType" maxOccurs="2"/&amp;gt;
 *         &amp;lt;element name="companyId" type="{http://xml.amadeus.com/FMPTBQ_24_1_1A}CompanyIdentificationType_195544C" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="flightOrtrainNumber" type="{http://xml.amadeus.com/FMPTBQ_24_1_1A}AlphaNumericString_Length1To8" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="productDetail" type="{http://xml.amadeus.com/FMPTBQ_24_1_1A}AdditionalProductDetailsType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="addProductDetail" type="{http://xml.amadeus.com/FMPTBQ_24_1_1A}ProductFacilitiesType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="attributeDetails" type="{http://xml.amadeus.com/FMPTBQ_24_1_1A}CodedAttributeInformationType_289379C" maxOccurs="20" minOccurs="0"/&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 = "TravelProductType", propOrder = {
    "productDateTime",
    "location",
    "companyId",
    "flightOrtrainNumber",
    "productDetail",
    "addProductDetail",
    "attributeDetails"
})
public class TravelProductType {

    @XmlElement(required = true)
    protected ProductDateTimeType195546C productDateTime;
    @XmlElement(required = true)
    protected List<LocationIdentificationDetailsType> location;
    protected CompanyIdentificationType195544C companyId;
    protected String flightOrtrainNumber;
    protected AdditionalProductDetailsType productDetail;
    protected ProductFacilitiesType addProductDetail;
    protected List<CodedAttributeInformationType289379C> attributeDetails;

    /**
     * Gets the value of the productDateTime property.
     * 
     * @return
     *     possible object is
     *     {@link ProductDateTimeType195546C }
     *     
     */
    public ProductDateTimeType195546C getProductDateTime() {
        return productDateTime;
    }

    /**
     * Sets the value of the productDateTime property.
     * 
     * @param value
     *     allowed object is
     *     {@link ProductDateTimeType195546C }
     *     
     */
    public void setProductDateTime(ProductDateTimeType195546C value) {
        this.productDateTime = value;
    }

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

    /**
     * Gets the value of the companyId property.
     * 
     * @return
     *     possible object is
     *     {@link CompanyIdentificationType195544C }
     *     
     */
    public CompanyIdentificationType195544C getCompanyId() {
        return companyId;
    }

    /**
     * Sets the value of the companyId property.
     * 
     * @param value
     *     allowed object is
     *     {@link CompanyIdentificationType195544C }
     *     
     */
    public void setCompanyId(CompanyIdentificationType195544C value) {
        this.companyId = value;
    }

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

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

    /**
     * Gets the value of the productDetail property.
     * 
     * @return
     *     possible object is
     *     {@link AdditionalProductDetailsType }
     *     
     */
    public AdditionalProductDetailsType getProductDetail() {
        return productDetail;
    }

    /**
     * Sets the value of the productDetail property.
     * 
     * @param value
     *     allowed object is
     *     {@link AdditionalProductDetailsType }
     *     
     */
    public void setProductDetail(AdditionalProductDetailsType value) {
        this.productDetail = value;
    }

    /**
     * Gets the value of the addProductDetail property.
     * 
     * @return
     *     possible object is
     *     {@link ProductFacilitiesType }
     *     
     */
    public ProductFacilitiesType getAddProductDetail() {
        return addProductDetail;
    }

    /**
     * Sets the value of the addProductDetail property.
     * 
     * @param value
     *     allowed object is
     *     {@link ProductFacilitiesType }
     *     
     */
    public void setAddProductDetail(ProductFacilitiesType value) {
        this.addProductDetail = value;
    }

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

}
