
package com.amadeus.travelManagement.amadeus.xml._2010._06.travel_orderviewrs_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;
import javax.xml.datatype.Duration;


/**
 * Transportation of a passenger on a Dated Operating Segment.
 * 
 * &lt;p&gt;Java class for PaxSegmentType complex type.
 * 
 * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
 * 
 * &lt;pre&gt;
 * &amp;lt;complexType name="PaxSegmentType"&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="PaxSegmentID" type="{http://xml.amadeus.com/2010/06/Travel_OrderViewRS_v1}ID_Type"/&amp;gt;
 *         &amp;lt;element name="ARNK_Ind" type="{http://xml.amadeus.com/2010/06/Travel_OrderViewRS_v1}IndType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="TicketlessInd" type="{http://xml.amadeus.com/2010/06/Travel_OrderViewRS_v1}IndType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="SecureFlightInd" type="{http://xml.amadeus.com/2010/06/Travel_OrderViewRS_v1}IndType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="Duration" type="{http://xml.amadeus.com/2010/06/Travel_OrderViewRS_v1}DurationType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="SegmentTypeCode" type="{http://xml.amadeus.com/2010/06/Travel_OrderViewRS_v1}SegmentTypeCodeType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="CabinType" type="{http://xml.amadeus.com/2010/06/Travel_OrderViewRS_v1}CabinTypeType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="Dep" type="{http://xml.amadeus.com/2010/06/Travel_OrderViewRS_v1}TransportDepType"/&amp;gt;
 *         &amp;lt;element name="Arrival" type="{http://xml.amadeus.com/2010/06/Travel_OrderViewRS_v1}TransportArrivalType"/&amp;gt;
 *         &amp;lt;element name="MarketingCarrierInfo" type="{http://xml.amadeus.com/2010/06/Travel_OrderViewRS_v1}DatedMarketingSegmentType"/&amp;gt;
 *         &amp;lt;element name="OperatingCarrierInfo" type="{http://xml.amadeus.com/2010/06/Travel_OrderViewRS_v1}DatedOperatingSegmentType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="DatedOperatingLeg" type="{http://xml.amadeus.com/2010/06/Travel_OrderViewRS_v1}DatedOperatingLegType" maxOccurs="unbounded" 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 = "PaxSegmentType", propOrder = {
    "paxSegmentID",
    "arnkInd",
    "ticketlessInd",
    "secureFlightInd",
    "duration",
    "segmentTypeCode",
    "cabinType",
    "dep",
    "arrival",
    "marketingCarrierInfo",
    "operatingCarrierInfo",
    "datedOperatingLeg"
})
public class PaxSegmentType {

    @XmlElement(name = "PaxSegmentID", required = true)
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    @XmlSchemaType(name = "token")
    protected String paxSegmentID;
    @XmlElement(name = "ARNK_Ind")
    protected Boolean arnkInd;
    @XmlElement(name = "TicketlessInd")
    protected Boolean ticketlessInd;
    @XmlElement(name = "SecureFlightInd")
    protected Boolean secureFlightInd;
    @XmlElement(name = "Duration")
    protected Duration duration;
    @XmlElement(name = "SegmentTypeCode")
    protected String segmentTypeCode;
    @XmlElement(name = "CabinType")
    protected CabinTypeType cabinType;
    @XmlElement(name = "Dep", required = true)
    protected TransportDepType dep;
    @XmlElement(name = "Arrival", required = true)
    protected TransportArrivalType arrival;
    @XmlElement(name = "MarketingCarrierInfo", required = true)
    protected DatedMarketingSegmentType marketingCarrierInfo;
    @XmlElement(name = "OperatingCarrierInfo")
    protected DatedOperatingSegmentType operatingCarrierInfo;
    @XmlElement(name = "DatedOperatingLeg")
    protected List<DatedOperatingLegType> datedOperatingLeg;

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

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

    /**
     * Gets the value of the arnkInd property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public Boolean isARNKInd() {
        return arnkInd;
    }

    /**
     * Sets the value of the arnkInd property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setARNKInd(Boolean value) {
        this.arnkInd = value;
    }

    /**
     * Gets the value of the ticketlessInd property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public Boolean isTicketlessInd() {
        return ticketlessInd;
    }

    /**
     * Sets the value of the ticketlessInd property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setTicketlessInd(Boolean value) {
        this.ticketlessInd = value;
    }

    /**
     * Gets the value of the secureFlightInd property.
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public Boolean isSecureFlightInd() {
        return secureFlightInd;
    }

    /**
     * Sets the value of the secureFlightInd property.
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setSecureFlightInd(Boolean value) {
        this.secureFlightInd = value;
    }

    /**
     * Gets the value of the duration property.
     * 
     * @return
     *     possible object is
     *     {@link Duration }
     *     
     */
    public Duration getDuration() {
        return duration;
    }

    /**
     * Sets the value of the duration property.
     * 
     * @param value
     *     allowed object is
     *     {@link Duration }
     *     
     */
    public void setDuration(Duration value) {
        this.duration = value;
    }

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

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

    /**
     * Gets the value of the cabinType property.
     * 
     * @return
     *     possible object is
     *     {@link CabinTypeType }
     *     
     */
    public CabinTypeType getCabinType() {
        return cabinType;
    }

    /**
     * Sets the value of the cabinType property.
     * 
     * @param value
     *     allowed object is
     *     {@link CabinTypeType }
     *     
     */
    public void setCabinType(CabinTypeType value) {
        this.cabinType = value;
    }

    /**
     * Gets the value of the dep property.
     * 
     * @return
     *     possible object is
     *     {@link TransportDepType }
     *     
     */
    public TransportDepType getDep() {
        return dep;
    }

    /**
     * Sets the value of the dep property.
     * 
     * @param value
     *     allowed object is
     *     {@link TransportDepType }
     *     
     */
    public void setDep(TransportDepType value) {
        this.dep = value;
    }

    /**
     * Gets the value of the arrival property.
     * 
     * @return
     *     possible object is
     *     {@link TransportArrivalType }
     *     
     */
    public TransportArrivalType getArrival() {
        return arrival;
    }

    /**
     * Sets the value of the arrival property.
     * 
     * @param value
     *     allowed object is
     *     {@link TransportArrivalType }
     *     
     */
    public void setArrival(TransportArrivalType value) {
        this.arrival = value;
    }

    /**
     * Gets the value of the marketingCarrierInfo property.
     * 
     * @return
     *     possible object is
     *     {@link DatedMarketingSegmentType }
     *     
     */
    public DatedMarketingSegmentType getMarketingCarrierInfo() {
        return marketingCarrierInfo;
    }

    /**
     * Sets the value of the marketingCarrierInfo property.
     * 
     * @param value
     *     allowed object is
     *     {@link DatedMarketingSegmentType }
     *     
     */
    public void setMarketingCarrierInfo(DatedMarketingSegmentType value) {
        this.marketingCarrierInfo = value;
    }

    /**
     * Gets the value of the operatingCarrierInfo property.
     * 
     * @return
     *     possible object is
     *     {@link DatedOperatingSegmentType }
     *     
     */
    public DatedOperatingSegmentType getOperatingCarrierInfo() {
        return operatingCarrierInfo;
    }

    /**
     * Sets the value of the operatingCarrierInfo property.
     * 
     * @param value
     *     allowed object is
     *     {@link DatedOperatingSegmentType }
     *     
     */
    public void setOperatingCarrierInfo(DatedOperatingSegmentType value) {
        this.operatingCarrierInfo = value;
    }

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

}
