
package com.amadeus.travelManagement.amadeus.xml._2010._06.travel_seatavailabilityrs_v1;

import java.math.BigDecimal;
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;


/**
 * A punishment imposed for breaking a law, rule, or contract.
 * 
 * &lt;p&gt;Java class for PenaltyType complex type.
 * 
 * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
 * 
 * &lt;pre&gt;
 * &amp;lt;complexType name="PenaltyType"&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="PenaltyID" type="{http://xml.amadeus.com/2010/06/Travel_SeatAvailabilityRS_v1}ID_Type"/&amp;gt;
 *         &amp;lt;element name="TypeCode" type="{http://xml.amadeus.com/2010/06/Travel_SeatAvailabilityRS_v1}PenaltyTypeCodeType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="UpgradeFeeInd" type="{http://xml.amadeus.com/2010/06/Travel_SeatAvailabilityRS_v1}IndType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="PenaltyAmount" type="{http://xml.amadeus.com/2010/06/Travel_SeatAvailabilityRS_v1}AmountType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="PenaltyPercent" type="{http://xml.amadeus.com/2010/06/Travel_SeatAvailabilityRS_v1}PercentType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="DescText" type="{http://xml.amadeus.com/2010/06/Travel_SeatAvailabilityRS_v1}TextType" maxOccurs="unbounded" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="AppCode" type="{http://xml.amadeus.com/2010/06/Travel_SeatAvailabilityRS_v1}PenaltyAppCodeType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="CancelFeeInd" type="{http://xml.amadeus.com/2010/06/Travel_SeatAvailabilityRS_v1}IndType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="ChangeFeeInd" type="{http://xml.amadeus.com/2010/06/Travel_SeatAvailabilityRS_v1}IndType" 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 = "PenaltyType", propOrder = {
    "penaltyID",
    "typeCode",
    "upgradeFeeInd",
    "penaltyAmount",
    "penaltyPercent",
    "descText",
    "appCode",
    "cancelFeeInd",
    "changeFeeInd"
})
public class PenaltyType {

    @XmlElement(name = "PenaltyID", required = true)
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    @XmlSchemaType(name = "token")
    protected String penaltyID;
    @XmlElement(name = "TypeCode")
    @XmlSchemaType(name = "string")
    protected PenaltyTypeContentType typeCode;
    @XmlElement(name = "UpgradeFeeInd")
    protected Boolean upgradeFeeInd;
    @XmlElement(name = "PenaltyAmount")
    protected AmountType penaltyAmount;
    @XmlElement(name = "PenaltyPercent")
    protected BigDecimal penaltyPercent;
    @XmlElement(name = "DescText")
    protected List<String> descText;
    @XmlElement(name = "AppCode")
    protected String appCode;
    @XmlElement(name = "CancelFeeInd")
    protected Boolean cancelFeeInd;
    @XmlElement(name = "ChangeFeeInd")
    protected Boolean changeFeeInd;

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

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

    /**
     * Gets the value of the typeCode property.
     * 
     * @return
     *     possible object is
     *     {@link PenaltyTypeContentType }
     *     
     */
    public PenaltyTypeContentType getTypeCode() {
        return typeCode;
    }

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

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

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

    /**
     * Gets the value of the penaltyAmount property.
     * 
     * @return
     *     possible object is
     *     {@link AmountType }
     *     
     */
    public AmountType getPenaltyAmount() {
        return penaltyAmount;
    }

    /**
     * Sets the value of the penaltyAmount property.
     * 
     * @param value
     *     allowed object is
     *     {@link AmountType }
     *     
     */
    public void setPenaltyAmount(AmountType value) {
        this.penaltyAmount = value;
    }

    /**
     * Gets the value of the penaltyPercent property.
     * 
     * @return
     *     possible object is
     *     {@link BigDecimal }
     *     
     */
    public BigDecimal getPenaltyPercent() {
        return penaltyPercent;
    }

    /**
     * Sets the value of the penaltyPercent property.
     * 
     * @param value
     *     allowed object is
     *     {@link BigDecimal }
     *     
     */
    public void setPenaltyPercent(BigDecimal value) {
        this.penaltyPercent = value;
    }

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

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

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

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

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

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

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

}
