com.prowidesoftware.swift.model.mx.dic.CollateralSubstitution2 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.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 details about the collateral that will be substituted.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CollateralSubstitution2", propOrder = {
"collSbstitnSeq",
"sbstitnRqrmnt",
"collSbstitnTp",
"stdSttlmInstrs",
"sctiesColl",
"cshColl",
"othrColl",
"lkdRefs"
})
public class CollateralSubstitution2 {
@XmlElement(name = "CollSbstitnSeq", required = true)
@XmlSchemaType(name = "string")
protected CollateralSubstitutionSequence1Code collSbstitnSeq;
@XmlElement(name = "SbstitnRqrmnt", required = true)
protected ActiveCurrencyAndAmount sbstitnRqrmnt;
@XmlElement(name = "CollSbstitnTp", required = true)
@XmlSchemaType(name = "string")
protected CollateralSubstitutionType1Code collSbstitnTp;
@XmlElement(name = "StdSttlmInstrs")
protected String stdSttlmInstrs;
@XmlElement(name = "SctiesColl")
protected List sctiesColl;
@XmlElement(name = "CshColl")
protected List cshColl;
@XmlElement(name = "OthrColl")
protected List othrColl;
@XmlElement(name = "LkdRefs")
protected Reference17 lkdRefs;
/**
* Gets the value of the collSbstitnSeq property.
*
* @return
* possible object is
* {@link CollateralSubstitutionSequence1Code }
*
*/
public CollateralSubstitutionSequence1Code getCollSbstitnSeq() {
return collSbstitnSeq;
}
/**
* Sets the value of the collSbstitnSeq property.
*
* @param value
* allowed object is
* {@link CollateralSubstitutionSequence1Code }
*
*/
public CollateralSubstitution2 setCollSbstitnSeq(CollateralSubstitutionSequence1Code value) {
this.collSbstitnSeq = value;
return this;
}
/**
* Gets the value of the sbstitnRqrmnt property.
*
* @return
* possible object is
* {@link ActiveCurrencyAndAmount }
*
*/
public ActiveCurrencyAndAmount getSbstitnRqrmnt() {
return sbstitnRqrmnt;
}
/**
* Sets the value of the sbstitnRqrmnt property.
*
* @param value
* allowed object is
* {@link ActiveCurrencyAndAmount }
*
*/
public CollateralSubstitution2 setSbstitnRqrmnt(ActiveCurrencyAndAmount value) {
this.sbstitnRqrmnt = value;
return this;
}
/**
* Gets the value of the collSbstitnTp property.
*
* @return
* possible object is
* {@link CollateralSubstitutionType1Code }
*
*/
public CollateralSubstitutionType1Code getCollSbstitnTp() {
return collSbstitnTp;
}
/**
* Sets the value of the collSbstitnTp property.
*
* @param value
* allowed object is
* {@link CollateralSubstitutionType1Code }
*
*/
public CollateralSubstitution2 setCollSbstitnTp(CollateralSubstitutionType1Code value) {
this.collSbstitnTp = 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 CollateralSubstitution2 setStdSttlmInstrs(String value) {
this.stdSttlmInstrs = 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 SecuritiesCollateral4 }
*
*
* @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 CashCollateral5 }
*
*
* @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 OtherCollateral4 }
*
*
* @return
* The value of the othrColl property.
*/
public List getOthrColl() {
if (othrColl == null) {
othrColl = new ArrayList<>();
}
return this.othrColl;
}
/**
* Gets the value of the lkdRefs property.
*
* @return
* possible object is
* {@link Reference17 }
*
*/
public Reference17 getLkdRefs() {
return lkdRefs;
}
/**
* Sets the value of the lkdRefs property.
*
* @param value
* allowed object is
* {@link Reference17 }
*
*/
public CollateralSubstitution2 setLkdRefs(Reference17 value) {
this.lkdRefs = 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 sctiesColl list.
* @see #getSctiesColl()
*
*/
public CollateralSubstitution2 addSctiesColl(SecuritiesCollateral4 sctiesColl) {
getSctiesColl().add(sctiesColl);
return this;
}
/**
* Adds a new item to the cshColl list.
* @see #getCshColl()
*
*/
public CollateralSubstitution2 addCshColl(CashCollateral5 cshColl) {
getCshColl().add(cshColl);
return this;
}
/**
* Adds a new item to the othrColl list.
* @see #getOthrColl()
*
*/
public CollateralSubstitution2 addOthrColl(OtherCollateral4 othrColl) {
getOthrColl().add(othrColl);
return this;
}
}