com.prowidesoftware.swift.model.mx.dic.AutomaticVariation1 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
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 org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Variation parameters and triggers.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AutomaticVariation1", propOrder = {
"id",
"tp",
"amtAndTrggr",
"addtlInf"
})
public class AutomaticVariation1 {
@XmlElement(name = "Id", required = true)
protected String id;
@XmlElement(name = "Tp", required = true)
@XmlSchemaType(name = "string")
protected VariationType1Code tp;
@XmlElement(name = "AmtAndTrggr", required = true)
protected List amtAndTrggr;
@XmlElement(name = "AddtlInf")
protected List addtlInf;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public AutomaticVariation1 setId(String value) {
this.id = value;
return this;
}
/**
* Gets the value of the tp property.
*
* @return
* possible object is
* {@link VariationType1Code }
*
*/
public VariationType1Code getTp() {
return tp;
}
/**
* Sets the value of the tp property.
*
* @param value
* allowed object is
* {@link VariationType1Code }
*
*/
public AutomaticVariation1 setTp(VariationType1Code value) {
this.tp = value;
return this;
}
/**
* Gets the value of the amtAndTrggr property.
*
*
* 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 set
method for the amtAndTrggr property.
*
*
* For example, to add a new item, do as follows:
*
* getAmtAndTrggr().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AmountAndTrigger1 }
*
*
*/
public List getAmtAndTrggr() {
if (amtAndTrggr == null) {
amtAndTrggr = new ArrayList();
}
return this.amtAndTrggr;
}
/**
* Gets the value of the addtlInf property.
*
*
* 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 set
method for the addtlInf property.
*
*
* For example, to add a new item, do as follows:
*
* getAddtlInf().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getAddtlInf() {
if (addtlInf == null) {
addtlInf = new ArrayList();
}
return this.addtlInf;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
/**
* Adds a new item to the amtAndTrggr list.
* @see #getAmtAndTrggr()
*
*/
public AutomaticVariation1 addAmtAndTrggr(AmountAndTrigger1 amtAndTrggr) {
getAmtAndTrggr().add(amtAndTrggr);
return this;
}
/**
* Adds a new item to the addtlInf list.
* @see #getAddtlInf()
*
*/
public AutomaticVariation1 addAddtlInf(String addtlInf) {
getAddtlInf().add(addtlInf);
return this;
}
}