
package com.amadeus.travelManagement.amadeus.xml._2010._06.travel_orderchangerq_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.XmlType;


/**
 * Contains a choice of functions to update and Order including Update Order Item, Update Passenger, and Accept Reprice Order.
 * 
 * &lt;p&gt;Java class for ChangeOrderType complex type.
 * 
 * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
 * 
 * &lt;pre&gt;
 * &amp;lt;complexType name="ChangeOrderType"&amp;gt;
 *   &amp;lt;complexContent&amp;gt;
 *     &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
 *       &amp;lt;choice&amp;gt;
 *         &amp;lt;element name="AcceptRepricedOrder" type="{http://xml.amadeus.com/2010/06/Travel_OrderChangeRQ_v1}AcceptRepricedOrderType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="UpdatePax" type="{http://xml.amadeus.com/2010/06/Travel_OrderChangeRQ_v1}UpdatePaxType" maxOccurs="unbounded" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="UpdateOrderItem" type="{http://xml.amadeus.com/2010/06/Travel_OrderChangeRQ_v1}UpdateOrderItemType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="AcceptChange" type="{http://xml.amadeus.com/2010/06/Travel_OrderChangeRQ_v1}SelectedOrderItemType" minOccurs="0"/&amp;gt;
 *       &amp;lt;/choice&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 = "ChangeOrderType", propOrder = {
    "acceptRepricedOrder",
    "updatePax",
    "updateOrderItem",
    "acceptChange"
})
public class ChangeOrderType {

    @XmlElement(name = "AcceptRepricedOrder")
    protected AcceptRepricedOrderType acceptRepricedOrder;
    @XmlElement(name = "UpdatePax")
    protected List<UpdatePaxType> updatePax;
    @XmlElement(name = "UpdateOrderItem")
    protected UpdateOrderItemType updateOrderItem;
    @XmlElement(name = "AcceptChange")
    protected SelectedOrderItemType acceptChange;

    /**
     * Gets the value of the acceptRepricedOrder property.
     * 
     * @return
     *     possible object is
     *     {@link AcceptRepricedOrderType }
     *     
     */
    public AcceptRepricedOrderType getAcceptRepricedOrder() {
        return acceptRepricedOrder;
    }

    /**
     * Sets the value of the acceptRepricedOrder property.
     * 
     * @param value
     *     allowed object is
     *     {@link AcceptRepricedOrderType }
     *     
     */
    public void setAcceptRepricedOrder(AcceptRepricedOrderType value) {
        this.acceptRepricedOrder = value;
    }

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

    /**
     * Gets the value of the updateOrderItem property.
     * 
     * @return
     *     possible object is
     *     {@link UpdateOrderItemType }
     *     
     */
    public UpdateOrderItemType getUpdateOrderItem() {
        return updateOrderItem;
    }

    /**
     * Sets the value of the updateOrderItem property.
     * 
     * @param value
     *     allowed object is
     *     {@link UpdateOrderItemType }
     *     
     */
    public void setUpdateOrderItem(UpdateOrderItemType value) {
        this.updateOrderItem = value;
    }

    /**
     * Gets the value of the acceptChange property.
     * 
     * @return
     *     possible object is
     *     {@link SelectedOrderItemType }
     *     
     */
    public SelectedOrderItemType getAcceptChange() {
        return acceptChange;
    }

    /**
     * Sets the value of the acceptChange property.
     * 
     * @param value
     *     allowed object is
     *     {@link SelectedOrderItemType }
     *     
     */
    public void setAcceptChange(SelectedOrderItemType value) {
        this.acceptChange = value;
    }

}
