com.prowidesoftware.swift.model.mx.dic.TradeLegStatement1 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;
/**
* Provides the trade leg statement details.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TradeLegStatement1", propOrder = {
"clrAcct",
"clrSgmt",
"tradLegsDtls",
"nonClrMmb"
})
public class TradeLegStatement1 {
@XmlElement(name = "ClrAcct")
protected SecuritiesAccount18 clrAcct;
@XmlElement(name = "ClrSgmt")
protected PartyIdentification35Choice clrSgmt;
@XmlElement(name = "TradLegsDtls", required = true)
protected List tradLegsDtls;
@XmlElement(name = "NonClrMmb")
protected PartyIdentificationAndAccount31 nonClrMmb;
/**
* Gets the value of the clrAcct property.
*
* @return
* possible object is
* {@link SecuritiesAccount18 }
*
*/
public SecuritiesAccount18 getClrAcct() {
return clrAcct;
}
/**
* Sets the value of the clrAcct property.
*
* @param value
* allowed object is
* {@link SecuritiesAccount18 }
*
*/
public TradeLegStatement1 setClrAcct(SecuritiesAccount18 value) {
this.clrAcct = value;
return this;
}
/**
* Gets the value of the clrSgmt property.
*
* @return
* possible object is
* {@link PartyIdentification35Choice }
*
*/
public PartyIdentification35Choice getClrSgmt() {
return clrSgmt;
}
/**
* Sets the value of the clrSgmt property.
*
* @param value
* allowed object is
* {@link PartyIdentification35Choice }
*
*/
public TradeLegStatement1 setClrSgmt(PartyIdentification35Choice value) {
this.clrSgmt = value;
return this;
}
/**
* Gets the value of the tradLegsDtls 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 tradLegsDtls property.
*
*
* For example, to add a new item, do as follows:
*
* getTradLegsDtls().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TradeLeg3 }
*
*
* @return
* The value of the tradLegsDtls property.
*/
public List getTradLegsDtls() {
if (tradLegsDtls == null) {
tradLegsDtls = new ArrayList<>();
}
return this.tradLegsDtls;
}
/**
* Gets the value of the nonClrMmb property.
*
* @return
* possible object is
* {@link PartyIdentificationAndAccount31 }
*
*/
public PartyIdentificationAndAccount31 getNonClrMmb() {
return nonClrMmb;
}
/**
* Sets the value of the nonClrMmb property.
*
* @param value
* allowed object is
* {@link PartyIdentificationAndAccount31 }
*
*/
public TradeLegStatement1 setNonClrMmb(PartyIdentificationAndAccount31 value) {
this.nonClrMmb = 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 tradLegsDtls list.
* @see #getTradLegsDtls()
*
*/
public TradeLegStatement1 addTradLegsDtls(TradeLeg3 tradLegsDtls) {
getTradLegsDtls().add(tradLegsDtls);
return this;
}
}