com.prowidesoftware.swift.model.mx.dic.NetPosition1 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.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;
/**
* Provides the net positions details.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NetPosition1", propOrder = {
"clrAcct",
"dlvryAcct",
"finInstrmId",
"initlPosAmt",
"netPosAmt",
"avrgDealPric",
"netQty",
"sctiesMvmntTp",
"dpstry",
"tradLegDtls",
"nonClrMmb",
"acrdIntrstAmt"
})
public class NetPosition1 {
@XmlElement(name = "ClrAcct", required = true)
protected SecuritiesAccount18 clrAcct;
@XmlElement(name = "DlvryAcct", required = true)
protected SecuritiesAccount19 dlvryAcct;
@XmlElement(name = "FinInstrmId", required = true)
protected SecurityIdentification14 finInstrmId;
@XmlElement(name = "InitlPosAmt")
protected AmountAndDirection21 initlPosAmt;
@XmlElement(name = "NetPosAmt", required = true)
protected AmountAndDirection21 netPosAmt;
@XmlElement(name = "AvrgDealPric")
protected Price4 avrgDealPric;
@XmlElement(name = "NetQty", required = true)
protected FinancialInstrumentQuantity1Choice netQty;
@XmlElement(name = "SctiesMvmntTp", required = true)
@XmlSchemaType(name = "string")
protected ReceiveDelivery1Code sctiesMvmntTp;
@XmlElement(name = "Dpstry", required = true)
protected PartyIdentification34Choice dpstry;
@XmlElement(name = "TradLegDtls")
protected List tradLegDtls;
@XmlElement(name = "NonClrMmb")
protected PartyIdentificationAndAccount31 nonClrMmb;
@XmlElement(name = "AcrdIntrstAmt")
protected AmountAndDirection21 acrdIntrstAmt;
/**
* 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 NetPosition1 setClrAcct(SecuritiesAccount18 value) {
this.clrAcct = value;
return this;
}
/**
* Gets the value of the dlvryAcct property.
*
* @return
* possible object is
* {@link SecuritiesAccount19 }
*
*/
public SecuritiesAccount19 getDlvryAcct() {
return dlvryAcct;
}
/**
* Sets the value of the dlvryAcct property.
*
* @param value
* allowed object is
* {@link SecuritiesAccount19 }
*
*/
public NetPosition1 setDlvryAcct(SecuritiesAccount19 value) {
this.dlvryAcct = value;
return this;
}
/**
* Gets the value of the finInstrmId property.
*
* @return
* possible object is
* {@link SecurityIdentification14 }
*
*/
public SecurityIdentification14 getFinInstrmId() {
return finInstrmId;
}
/**
* Sets the value of the finInstrmId property.
*
* @param value
* allowed object is
* {@link SecurityIdentification14 }
*
*/
public NetPosition1 setFinInstrmId(SecurityIdentification14 value) {
this.finInstrmId = value;
return this;
}
/**
* Gets the value of the initlPosAmt property.
*
* @return
* possible object is
* {@link AmountAndDirection21 }
*
*/
public AmountAndDirection21 getInitlPosAmt() {
return initlPosAmt;
}
/**
* Sets the value of the initlPosAmt property.
*
* @param value
* allowed object is
* {@link AmountAndDirection21 }
*
*/
public NetPosition1 setInitlPosAmt(AmountAndDirection21 value) {
this.initlPosAmt = value;
return this;
}
/**
* Gets the value of the netPosAmt property.
*
* @return
* possible object is
* {@link AmountAndDirection21 }
*
*/
public AmountAndDirection21 getNetPosAmt() {
return netPosAmt;
}
/**
* Sets the value of the netPosAmt property.
*
* @param value
* allowed object is
* {@link AmountAndDirection21 }
*
*/
public NetPosition1 setNetPosAmt(AmountAndDirection21 value) {
this.netPosAmt = value;
return this;
}
/**
* Gets the value of the avrgDealPric property.
*
* @return
* possible object is
* {@link Price4 }
*
*/
public Price4 getAvrgDealPric() {
return avrgDealPric;
}
/**
* Sets the value of the avrgDealPric property.
*
* @param value
* allowed object is
* {@link Price4 }
*
*/
public NetPosition1 setAvrgDealPric(Price4 value) {
this.avrgDealPric = value;
return this;
}
/**
* Gets the value of the netQty property.
*
* @return
* possible object is
* {@link FinancialInstrumentQuantity1Choice }
*
*/
public FinancialInstrumentQuantity1Choice getNetQty() {
return netQty;
}
/**
* Sets the value of the netQty property.
*
* @param value
* allowed object is
* {@link FinancialInstrumentQuantity1Choice }
*
*/
public NetPosition1 setNetQty(FinancialInstrumentQuantity1Choice value) {
this.netQty = value;
return this;
}
/**
* Gets the value of the sctiesMvmntTp property.
*
* @return
* possible object is
* {@link ReceiveDelivery1Code }
*
*/
public ReceiveDelivery1Code getSctiesMvmntTp() {
return sctiesMvmntTp;
}
/**
* Sets the value of the sctiesMvmntTp property.
*
* @param value
* allowed object is
* {@link ReceiveDelivery1Code }
*
*/
public NetPosition1 setSctiesMvmntTp(ReceiveDelivery1Code value) {
this.sctiesMvmntTp = value;
return this;
}
/**
* Gets the value of the dpstry property.
*
* @return
* possible object is
* {@link PartyIdentification34Choice }
*
*/
public PartyIdentification34Choice getDpstry() {
return dpstry;
}
/**
* Sets the value of the dpstry property.
*
* @param value
* allowed object is
* {@link PartyIdentification34Choice }
*
*/
public NetPosition1 setDpstry(PartyIdentification34Choice value) {
this.dpstry = value;
return this;
}
/**
* Gets the value of the tradLegDtls 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 tradLegDtls property.
*
*
* For example, to add a new item, do as follows:
*
* getTradLegDtls().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TradeLeg4 }
*
*
* @return
* The value of the tradLegDtls property.
*/
public List getTradLegDtls() {
if (tradLegDtls == null) {
tradLegDtls = new ArrayList<>();
}
return this.tradLegDtls;
}
/**
* 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 NetPosition1 setNonClrMmb(PartyIdentificationAndAccount31 value) {
this.nonClrMmb = value;
return this;
}
/**
* Gets the value of the acrdIntrstAmt property.
*
* @return
* possible object is
* {@link AmountAndDirection21 }
*
*/
public AmountAndDirection21 getAcrdIntrstAmt() {
return acrdIntrstAmt;
}
/**
* Sets the value of the acrdIntrstAmt property.
*
* @param value
* allowed object is
* {@link AmountAndDirection21 }
*
*/
public NetPosition1 setAcrdIntrstAmt(AmountAndDirection21 value) {
this.acrdIntrstAmt = 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 tradLegDtls list.
* @see #getTradLegDtls()
*
*/
public NetPosition1 addTradLegDtls(TradeLeg4 tradLegDtls) {
getTradLegDtls().add(tradLegDtls);
return this;
}
}