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


/**
 * Price Variance supports specifying Payment Processing Rules, including payment failure.  Acceptable amount and/or percentage of the total amount by which the Order item price can vary. Example: 20 USD, 2 Percent
 * 
 * &lt;p&gt;Java class for PriceVarianceRuleType complex type.
 * 
 * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
 * 
 * &lt;pre&gt;
 * &amp;lt;complexType name="PriceVarianceRuleType"&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="RuleID" type="{http://xml.amadeus.com/2010/06/Travel_OfferPriceRS_v1}ID_Type"/&amp;gt;
 *         &amp;lt;element name="RuleName" type="{http://xml.amadeus.com/2010/06/Travel_OfferPriceRS_v1}NameType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="AcceptableVarianceAmount" type="{http://xml.amadeus.com/2010/06/Travel_OfferPriceRS_v1}AmountType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="AcceptableVariancePercent" type="{http://xml.amadeus.com/2010/06/Travel_OfferPriceRS_v1}PercentType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="EffectivePeriod" type="{http://xml.amadeus.com/2010/06/Travel_OfferPriceRS_v1}DurationType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="OwnerName" type="{http://xml.amadeus.com/2010/06/Travel_OfferPriceRS_v1}NameType" minOccurs="0"/&amp;gt;
 *         &amp;lt;element name="Remark" type="{http://xml.amadeus.com/2010/06/Travel_OfferPriceRS_v1}RemarkType" 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 = "PriceVarianceRuleType", propOrder = {
    "ruleID",
    "ruleName",
    "acceptableVarianceAmount",
    "acceptableVariancePercent",
    "effectivePeriod",
    "ownerName",
    "remark"
})
public class PriceVarianceRuleType {

    @XmlElement(name = "RuleID", required = true)
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    @XmlSchemaType(name = "token")
    protected String ruleID;
    @XmlElement(name = "RuleName")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    @XmlSchemaType(name = "token")
    protected String ruleName;
    @XmlElement(name = "AcceptableVarianceAmount")
    protected AmountType acceptableVarianceAmount;
    @XmlElement(name = "AcceptableVariancePercent")
    protected BigDecimal acceptableVariancePercent;
    @XmlElement(name = "EffectivePeriod")
    protected Duration effectivePeriod;
    @XmlElement(name = "OwnerName")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    @XmlSchemaType(name = "token")
    protected String ownerName;
    @XmlElement(name = "Remark")
    protected List<RemarkType> remark;

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

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

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

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

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

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

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

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

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

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

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

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

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

}
