com.prowidesoftware.swift.model.mx.dic.ExchangeConfiguration8 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.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;
/**
* Configuration parameters of data exchanges.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ExchangeConfiguration8", propOrder = {
"xchgPlcy",
"maxNb",
"maxAmt",
"reTry",
"tmCond"
})
public class ExchangeConfiguration8 {
@XmlElement(name = "XchgPlcy", required = true)
@XmlSchemaType(name = "string")
protected List xchgPlcy;
@XmlElement(name = "MaxNb")
protected BigDecimal maxNb;
@XmlElement(name = "MaxAmt")
protected BigDecimal maxAmt;
@XmlElement(name = "ReTry")
protected ProcessRetry2 reTry;
@XmlElement(name = "TmCond")
protected ProcessTiming4 tmCond;
/**
* Gets the value of the xchgPlcy 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 Jakarta XML Binding object.
* This is why there is not a {@code set} method for the xchgPlcy property.
*
*
* For example, to add a new item, do as follows:
*
* getXchgPlcy().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ExchangePolicy2Code }
*
*
* @return
* The value of the xchgPlcy property.
*/
public List getXchgPlcy() {
if (xchgPlcy == null) {
xchgPlcy = new ArrayList<>();
}
return this.xchgPlcy;
}
/**
* Gets the value of the maxNb property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getMaxNb() {
return maxNb;
}
/**
* Sets the value of the maxNb property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public ExchangeConfiguration8 setMaxNb(BigDecimal value) {
this.maxNb = value;
return this;
}
/**
* Gets the value of the maxAmt property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getMaxAmt() {
return maxAmt;
}
/**
* Sets the value of the maxAmt property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public ExchangeConfiguration8 setMaxAmt(BigDecimal value) {
this.maxAmt = value;
return this;
}
/**
* Gets the value of the reTry property.
*
* @return
* possible object is
* {@link ProcessRetry2 }
*
*/
public ProcessRetry2 getReTry() {
return reTry;
}
/**
* Sets the value of the reTry property.
*
* @param value
* allowed object is
* {@link ProcessRetry2 }
*
*/
public ExchangeConfiguration8 setReTry(ProcessRetry2 value) {
this.reTry = value;
return this;
}
/**
* Gets the value of the tmCond property.
*
* @return
* possible object is
* {@link ProcessTiming4 }
*
*/
public ProcessTiming4 getTmCond() {
return tmCond;
}
/**
* Sets the value of the tmCond property.
*
* @param value
* allowed object is
* {@link ProcessTiming4 }
*
*/
public ExchangeConfiguration8 setTmCond(ProcessTiming4 value) {
this.tmCond = value;
return this;
}
@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 xchgPlcy list.
* @see #getXchgPlcy()
*
*/
public ExchangeConfiguration8 addXchgPlcy(ExchangePolicy2Code xchgPlcy) {
getXchgPlcy().add(xchgPlcy);
return this;
}
}