com.prowidesoftware.swift.model.mx.dic.TotalTransactions2 Maven / Gradle / Ivy
package com.prowidesoftware.swift.model.mx.dic;
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.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;
/**
* Set of elements used to provide summary information on entries.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TotalTransactions2", propOrder = {
"ttlNtries",
"ttlCdtNtries",
"ttlDbtNtries",
"ttlNtriesPerBkTxCd"
})
public class TotalTransactions2 {
@XmlElement(name = "TtlNtries")
protected NumberAndSumOfTransactions2 ttlNtries;
@XmlElement(name = "TtlCdtNtries")
protected NumberAndSumOfTransactions1 ttlCdtNtries;
@XmlElement(name = "TtlDbtNtries")
protected NumberAndSumOfTransactions1 ttlDbtNtries;
@XmlElement(name = "TtlNtriesPerBkTxCd")
protected List ttlNtriesPerBkTxCd;
/**
* Gets the value of the ttlNtries property.
*
* @return
* possible object is
* {@link NumberAndSumOfTransactions2 }
*
*/
public NumberAndSumOfTransactions2 getTtlNtries() {
return ttlNtries;
}
/**
* Sets the value of the ttlNtries property.
*
* @param value
* allowed object is
* {@link NumberAndSumOfTransactions2 }
*
*/
public TotalTransactions2 setTtlNtries(NumberAndSumOfTransactions2 value) {
this.ttlNtries = value;
return this;
}
/**
* Gets the value of the ttlCdtNtries property.
*
* @return
* possible object is
* {@link NumberAndSumOfTransactions1 }
*
*/
public NumberAndSumOfTransactions1 getTtlCdtNtries() {
return ttlCdtNtries;
}
/**
* Sets the value of the ttlCdtNtries property.
*
* @param value
* allowed object is
* {@link NumberAndSumOfTransactions1 }
*
*/
public TotalTransactions2 setTtlCdtNtries(NumberAndSumOfTransactions1 value) {
this.ttlCdtNtries = value;
return this;
}
/**
* Gets the value of the ttlDbtNtries property.
*
* @return
* possible object is
* {@link NumberAndSumOfTransactions1 }
*
*/
public NumberAndSumOfTransactions1 getTtlDbtNtries() {
return ttlDbtNtries;
}
/**
* Sets the value of the ttlDbtNtries property.
*
* @param value
* allowed object is
* {@link NumberAndSumOfTransactions1 }
*
*/
public TotalTransactions2 setTtlDbtNtries(NumberAndSumOfTransactions1 value) {
this.ttlDbtNtries = value;
return this;
}
/**
* Gets the value of the ttlNtriesPerBkTxCd 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 ttlNtriesPerBkTxCd property.
*
*
* For example, to add a new item, do as follows:
*
* getTtlNtriesPerBkTxCd().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TotalsPerBankTransactionCode2 }
*
*
* @return
* The value of the ttlNtriesPerBkTxCd property.
*/
public List getTtlNtriesPerBkTxCd() {
if (ttlNtriesPerBkTxCd == null) {
ttlNtriesPerBkTxCd = new ArrayList<>();
}
return this.ttlNtriesPerBkTxCd;
}
@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 ttlNtriesPerBkTxCd list.
* @see #getTtlNtriesPerBkTxCd()
*
*/
public TotalTransactions2 addTtlNtriesPerBkTxCd(TotalsPerBankTransactionCode2 ttlNtriesPerBkTxCd) {
getTtlNtriesPerBkTxCd().add(ttlNtriesPerBkTxCd);
return this;
}
}