com.prowidesoftware.swift.model.mx.dic.Quantity6 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;
/**
* Details on the quantity, account and other related information involved in a transaction.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Quantity6", propOrder = {
"sttlmQty",
"dnmtnChc",
"certNb",
"qtyBrkdwn"
})
public class Quantity6 {
@XmlElement(name = "SttlmQty", required = true)
protected FinancialInstrumentQuantity15Choice sttlmQty;
@XmlElement(name = "DnmtnChc")
protected String dnmtnChc;
@XmlElement(name = "CertNb")
protected List certNb;
@XmlElement(name = "QtyBrkdwn")
protected List qtyBrkdwn;
/**
* Gets the value of the sttlmQty property.
*
* @return
* possible object is
* {@link FinancialInstrumentQuantity15Choice }
*
*/
public FinancialInstrumentQuantity15Choice getSttlmQty() {
return sttlmQty;
}
/**
* Sets the value of the sttlmQty property.
*
* @param value
* allowed object is
* {@link FinancialInstrumentQuantity15Choice }
*
*/
public Quantity6 setSttlmQty(FinancialInstrumentQuantity15Choice value) {
this.sttlmQty = value;
return this;
}
/**
* Gets the value of the dnmtnChc property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDnmtnChc() {
return dnmtnChc;
}
/**
* Sets the value of the dnmtnChc property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Quantity6 setDnmtnChc(String value) {
this.dnmtnChc = value;
return this;
}
/**
* Gets the value of the certNb 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 certNb property.
*
*
* For example, to add a new item, do as follows:
*
* getCertNb().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link SecuritiesCertificate2 }
*
*
* @return
* The value of the certNb property.
*/
public List getCertNb() {
if (certNb == null) {
certNb = new ArrayList<>();
}
return this.certNb;
}
/**
* Gets the value of the qtyBrkdwn 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 qtyBrkdwn property.
*
*
* For example, to add a new item, do as follows:
*
* getQtyBrkdwn().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link QuantityBreakdown7 }
*
*
* @return
* The value of the qtyBrkdwn property.
*/
public List getQtyBrkdwn() {
if (qtyBrkdwn == null) {
qtyBrkdwn = new ArrayList<>();
}
return this.qtyBrkdwn;
}
@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 certNb list.
* @see #getCertNb()
*
*/
public Quantity6 addCertNb(SecuritiesCertificate2 certNb) {
getCertNb().add(certNb);
return this;
}
/**
* Adds a new item to the qtyBrkdwn list.
* @see #getQtyBrkdwn()
*
*/
public Quantity6 addQtyBrkdwn(QuantityBreakdown7 qtyBrkdwn) {
getQtyBrkdwn().add(qtyBrkdwn);
return this;
}
}