com.prowidesoftware.swift.model.mx.dic.SettlementObligation2 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import com.prowidesoftware.swift.model.mx.adapters.IsoDateAdapter;
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 jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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 details about the settlement obligation.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SettlementObligation2", propOrder = {
"sttlmOblgtnId",
"finInstrmId",
"intnddSttlmDt",
"qty",
"sttlmAmt",
"addtlSttlmOblgtnDtls",
"plcOfTrad",
"tradDt"
})
public class SettlementObligation2 {
@XmlElement(name = "SttlmOblgtnId", required = true)
protected String sttlmOblgtnId;
@XmlElement(name = "FinInstrmId", required = true)
protected SecurityIdentification14 finInstrmId;
@XmlElement(name = "IntnddSttlmDt", required = true)
protected DateFormat11Choice intnddSttlmDt;
@XmlElement(name = "Qty", required = true)
protected FinancialInstrumentQuantity1Choice qty;
@XmlElement(name = "SttlmAmt", required = true)
protected AmountAndDirection20 sttlmAmt;
@XmlElement(name = "AddtlSttlmOblgtnDtls")
protected List addtlSttlmOblgtnDtls;
@XmlElement(name = "PlcOfTrad", required = true)
protected MarketIdentification20 plcOfTrad;
@XmlElement(name = "TradDt", required = true, type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate tradDt;
/**
* Gets the value of the sttlmOblgtnId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSttlmOblgtnId() {
return sttlmOblgtnId;
}
/**
* Sets the value of the sttlmOblgtnId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SettlementObligation2 setSttlmOblgtnId(String value) {
this.sttlmOblgtnId = 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 SettlementObligation2 setFinInstrmId(SecurityIdentification14 value) {
this.finInstrmId = value;
return this;
}
/**
* Gets the value of the intnddSttlmDt property.
*
* @return
* possible object is
* {@link DateFormat11Choice }
*
*/
public DateFormat11Choice getIntnddSttlmDt() {
return intnddSttlmDt;
}
/**
* Sets the value of the intnddSttlmDt property.
*
* @param value
* allowed object is
* {@link DateFormat11Choice }
*
*/
public SettlementObligation2 setIntnddSttlmDt(DateFormat11Choice value) {
this.intnddSttlmDt = value;
return this;
}
/**
* Gets the value of the qty property.
*
* @return
* possible object is
* {@link FinancialInstrumentQuantity1Choice }
*
*/
public FinancialInstrumentQuantity1Choice getQty() {
return qty;
}
/**
* Sets the value of the qty property.
*
* @param value
* allowed object is
* {@link FinancialInstrumentQuantity1Choice }
*
*/
public SettlementObligation2 setQty(FinancialInstrumentQuantity1Choice value) {
this.qty = value;
return this;
}
/**
* Gets the value of the sttlmAmt property.
*
* @return
* possible object is
* {@link AmountAndDirection20 }
*
*/
public AmountAndDirection20 getSttlmAmt() {
return sttlmAmt;
}
/**
* Sets the value of the sttlmAmt property.
*
* @param value
* allowed object is
* {@link AmountAndDirection20 }
*
*/
public SettlementObligation2 setSttlmAmt(AmountAndDirection20 value) {
this.sttlmAmt = value;
return this;
}
/**
* Gets the value of the addtlSttlmOblgtnDtls 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 addtlSttlmOblgtnDtls property.
*
*
* For example, to add a new item, do as follows:
*
* getAddtlSttlmOblgtnDtls().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link SettlementObligation3 }
*
*
* @return
* The value of the addtlSttlmOblgtnDtls property.
*/
public List getAddtlSttlmOblgtnDtls() {
if (addtlSttlmOblgtnDtls == null) {
addtlSttlmOblgtnDtls = new ArrayList<>();
}
return this.addtlSttlmOblgtnDtls;
}
/**
* Gets the value of the plcOfTrad property.
*
* @return
* possible object is
* {@link MarketIdentification20 }
*
*/
public MarketIdentification20 getPlcOfTrad() {
return plcOfTrad;
}
/**
* Sets the value of the plcOfTrad property.
*
* @param value
* allowed object is
* {@link MarketIdentification20 }
*
*/
public SettlementObligation2 setPlcOfTrad(MarketIdentification20 value) {
this.plcOfTrad = value;
return this;
}
/**
* Gets the value of the tradDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getTradDt() {
return tradDt;
}
/**
* Sets the value of the tradDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SettlementObligation2 setTradDt(LocalDate value) {
this.tradDt = 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 addtlSttlmOblgtnDtls list.
* @see #getAddtlSttlmOblgtnDtls()
*
*/
public SettlementObligation2 addAddtlSttlmOblgtnDtls(SettlementObligation3 addtlSttlmOblgtnDtls) {
getAddtlSttlmOblgtnDtls().add(addtlSttlmOblgtnDtls);
return this;
}
}