com.prowidesoftware.swift.model.mx.dic.Collateral8 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
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 details on the collateral that will be either delivered, returned or both.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Collateral8", propOrder = {
"mrgnCallReqId",
"mrgnCallRspnId",
"stdSttlmInstrs",
"collPrpslRspnId",
"sctiesColl",
"cshColl",
"othrColl"
})
public class Collateral8 {
@XmlElement(name = "MrgnCallReqId", required = true)
protected String mrgnCallReqId;
@XmlElement(name = "MrgnCallRspnId")
protected String mrgnCallRspnId;
@XmlElement(name = "StdSttlmInstrs")
protected String stdSttlmInstrs;
@XmlElement(name = "CollPrpslRspnId")
protected String collPrpslRspnId;
@XmlElement(name = "SctiesColl")
protected List sctiesColl;
@XmlElement(name = "CshColl")
protected List cshColl;
@XmlElement(name = "OthrColl")
protected List othrColl;
/**
* Gets the value of the mrgnCallReqId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMrgnCallReqId() {
return mrgnCallReqId;
}
/**
* Sets the value of the mrgnCallReqId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Collateral8 setMrgnCallReqId(String value) {
this.mrgnCallReqId = value;
return this;
}
/**
* Gets the value of the mrgnCallRspnId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMrgnCallRspnId() {
return mrgnCallRspnId;
}
/**
* Sets the value of the mrgnCallRspnId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Collateral8 setMrgnCallRspnId(String value) {
this.mrgnCallRspnId = value;
return this;
}
/**
* Gets the value of the stdSttlmInstrs property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStdSttlmInstrs() {
return stdSttlmInstrs;
}
/**
* Sets the value of the stdSttlmInstrs property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Collateral8 setStdSttlmInstrs(String value) {
this.stdSttlmInstrs = value;
return this;
}
/**
* Gets the value of the collPrpslRspnId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCollPrpslRspnId() {
return collPrpslRspnId;
}
/**
* Sets the value of the collPrpslRspnId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Collateral8 setCollPrpslRspnId(String value) {
this.collPrpslRspnId = value;
return this;
}
/**
* Gets the value of the sctiesColl 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 sctiesColl property.
*
*
* For example, to add a new item, do as follows:
*
* getSctiesColl().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link SecuritiesCollateral3 }
*
*
* @return
* The value of the sctiesColl property.
*/
public List getSctiesColl() {
if (sctiesColl == null) {
sctiesColl = new ArrayList<>();
}
return this.sctiesColl;
}
/**
* Gets the value of the cshColl 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 cshColl property.
*
*
* For example, to add a new item, do as follows:
*
* getCshColl().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CashCollateral3 }
*
*
* @return
* The value of the cshColl property.
*/
public List getCshColl() {
if (cshColl == null) {
cshColl = new ArrayList<>();
}
return this.cshColl;
}
/**
* Gets the value of the othrColl 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 othrColl property.
*
*
* For example, to add a new item, do as follows:
*
* getOthrColl().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link OtherCollateral2 }
*
*
* @return
* The value of the othrColl property.
*/
public List getOthrColl() {
if (othrColl == null) {
othrColl = new ArrayList<>();
}
return this.othrColl;
}
@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 sctiesColl list.
* @see #getSctiesColl()
*
*/
public Collateral8 addSctiesColl(SecuritiesCollateral3 sctiesColl) {
getSctiesColl().add(sctiesColl);
return this;
}
/**
* Adds a new item to the cshColl list.
* @see #getCshColl()
*
*/
public Collateral8 addCshColl(CashCollateral3 cshColl) {
getCshColl().add(cshColl);
return this;
}
/**
* Adds a new item to the othrColl list.
* @see #getOthrColl()
*
*/
public Collateral8 addOthrColl(OtherCollateral2 othrColl) {
getOthrColl().add(othrColl);
return this;
}
}