com.prowidesoftware.swift.model.mx.dic.MarginCallRequestV04 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.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;
/**
* Scope
* The MarginCallRequest message is sent by the collateral taker or its collateral manager to the collateral giver or its collateral manager
* This message is used to request new collateral at the initiation of an exposure or request additional collateral for an existing exposure. It can also be used to recall collateral upon the collateral giver or its collateral manager's request.
*
* The message definition is intended for use with the ISO20022 Business Application Header.
*
* Usage
* When sent by the collateral taker the MarginCallRequest message is used to:
* - request new collateral at the initiation of an exposure
* - request additional collateral
* When sent by the collateral giver the MarginCallRequest message is used to:
* - request the return of collateral
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MarginCallRequestV04", propOrder = {
"txId",
"oblgtn",
"agrmt",
"mrgnCallRslt",
"mrgnDtlsDueToA",
"mrgnDtlsDueToB",
"rqrmntDtlsDueToA",
"rqrmntDtlsDueToB",
"xpctdCollDueToA",
"xpctdCollDueToB",
"mrgnCallDtls",
"splmtryData"
})
public class MarginCallRequestV04 {
@XmlElement(name = "TxId", required = true)
protected String txId;
@XmlElement(name = "Oblgtn", required = true)
protected Obligation4 oblgtn;
@XmlElement(name = "Agrmt")
protected Agreement4 agrmt;
@XmlElement(name = "MrgnCallRslt", required = true)
protected MarginCallResult3 mrgnCallRslt;
@XmlElement(name = "MrgnDtlsDueToA")
protected MarginCall1 mrgnDtlsDueToA;
@XmlElement(name = "MrgnDtlsDueToB")
protected MarginCall1 mrgnDtlsDueToB;
@XmlElement(name = "RqrmntDtlsDueToA")
protected MarginRequirement1Choice rqrmntDtlsDueToA;
@XmlElement(name = "RqrmntDtlsDueToB")
protected MarginRequirement1Choice rqrmntDtlsDueToB;
@XmlElement(name = "XpctdCollDueToA")
protected ExpectedCollateral2Choice xpctdCollDueToA;
@XmlElement(name = "XpctdCollDueToB")
protected ExpectedCollateral2Choice xpctdCollDueToB;
@XmlElement(name = "MrgnCallDtls")
protected List mrgnCallDtls;
@XmlElement(name = "SplmtryData")
protected List splmtryData;
/**
* Gets the value of the txId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTxId() {
return txId;
}
/**
* Sets the value of the txId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public MarginCallRequestV04 setTxId(String value) {
this.txId = value;
return this;
}
/**
* Gets the value of the oblgtn property.
*
* @return
* possible object is
* {@link Obligation4 }
*
*/
public Obligation4 getOblgtn() {
return oblgtn;
}
/**
* Sets the value of the oblgtn property.
*
* @param value
* allowed object is
* {@link Obligation4 }
*
*/
public MarginCallRequestV04 setOblgtn(Obligation4 value) {
this.oblgtn = value;
return this;
}
/**
* Gets the value of the agrmt property.
*
* @return
* possible object is
* {@link Agreement4 }
*
*/
public Agreement4 getAgrmt() {
return agrmt;
}
/**
* Sets the value of the agrmt property.
*
* @param value
* allowed object is
* {@link Agreement4 }
*
*/
public MarginCallRequestV04 setAgrmt(Agreement4 value) {
this.agrmt = value;
return this;
}
/**
* Gets the value of the mrgnCallRslt property.
*
* @return
* possible object is
* {@link MarginCallResult3 }
*
*/
public MarginCallResult3 getMrgnCallRslt() {
return mrgnCallRslt;
}
/**
* Sets the value of the mrgnCallRslt property.
*
* @param value
* allowed object is
* {@link MarginCallResult3 }
*
*/
public MarginCallRequestV04 setMrgnCallRslt(MarginCallResult3 value) {
this.mrgnCallRslt = value;
return this;
}
/**
* Gets the value of the mrgnDtlsDueToA property.
*
* @return
* possible object is
* {@link MarginCall1 }
*
*/
public MarginCall1 getMrgnDtlsDueToA() {
return mrgnDtlsDueToA;
}
/**
* Sets the value of the mrgnDtlsDueToA property.
*
* @param value
* allowed object is
* {@link MarginCall1 }
*
*/
public MarginCallRequestV04 setMrgnDtlsDueToA(MarginCall1 value) {
this.mrgnDtlsDueToA = value;
return this;
}
/**
* Gets the value of the mrgnDtlsDueToB property.
*
* @return
* possible object is
* {@link MarginCall1 }
*
*/
public MarginCall1 getMrgnDtlsDueToB() {
return mrgnDtlsDueToB;
}
/**
* Sets the value of the mrgnDtlsDueToB property.
*
* @param value
* allowed object is
* {@link MarginCall1 }
*
*/
public MarginCallRequestV04 setMrgnDtlsDueToB(MarginCall1 value) {
this.mrgnDtlsDueToB = value;
return this;
}
/**
* Gets the value of the rqrmntDtlsDueToA property.
*
* @return
* possible object is
* {@link MarginRequirement1Choice }
*
*/
public MarginRequirement1Choice getRqrmntDtlsDueToA() {
return rqrmntDtlsDueToA;
}
/**
* Sets the value of the rqrmntDtlsDueToA property.
*
* @param value
* allowed object is
* {@link MarginRequirement1Choice }
*
*/
public MarginCallRequestV04 setRqrmntDtlsDueToA(MarginRequirement1Choice value) {
this.rqrmntDtlsDueToA = value;
return this;
}
/**
* Gets the value of the rqrmntDtlsDueToB property.
*
* @return
* possible object is
* {@link MarginRequirement1Choice }
*
*/
public MarginRequirement1Choice getRqrmntDtlsDueToB() {
return rqrmntDtlsDueToB;
}
/**
* Sets the value of the rqrmntDtlsDueToB property.
*
* @param value
* allowed object is
* {@link MarginRequirement1Choice }
*
*/
public MarginCallRequestV04 setRqrmntDtlsDueToB(MarginRequirement1Choice value) {
this.rqrmntDtlsDueToB = value;
return this;
}
/**
* Gets the value of the xpctdCollDueToA property.
*
* @return
* possible object is
* {@link ExpectedCollateral2Choice }
*
*/
public ExpectedCollateral2Choice getXpctdCollDueToA() {
return xpctdCollDueToA;
}
/**
* Sets the value of the xpctdCollDueToA property.
*
* @param value
* allowed object is
* {@link ExpectedCollateral2Choice }
*
*/
public MarginCallRequestV04 setXpctdCollDueToA(ExpectedCollateral2Choice value) {
this.xpctdCollDueToA = value;
return this;
}
/**
* Gets the value of the xpctdCollDueToB property.
*
* @return
* possible object is
* {@link ExpectedCollateral2Choice }
*
*/
public ExpectedCollateral2Choice getXpctdCollDueToB() {
return xpctdCollDueToB;
}
/**
* Sets the value of the xpctdCollDueToB property.
*
* @param value
* allowed object is
* {@link ExpectedCollateral2Choice }
*
*/
public MarginCallRequestV04 setXpctdCollDueToB(ExpectedCollateral2Choice value) {
this.xpctdCollDueToB = value;
return this;
}
/**
* Gets the value of the mrgnCallDtls 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 JAXB object.
* This is why there is not a set
method for the mrgnCallDtls property.
*
*
* For example, to add a new item, do as follows:
*
* getMrgnCallDtls().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link MarginCall2 }
*
*
*/
public List getMrgnCallDtls() {
if (mrgnCallDtls == null) {
mrgnCallDtls = new ArrayList();
}
return this.mrgnCallDtls;
}
/**
* Gets the value of the splmtryData 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 JAXB object.
* This is why there is not a set
method for the splmtryData property.
*
*
* For example, to add a new item, do as follows:
*
* getSplmtryData().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link SupplementaryData1 }
*
*
*/
public List getSplmtryData() {
if (splmtryData == null) {
splmtryData = new ArrayList();
}
return this.splmtryData;
}
@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 mrgnCallDtls list.
* @see #getMrgnCallDtls()
*
*/
public MarginCallRequestV04 addMrgnCallDtls(MarginCall2 mrgnCallDtls) {
getMrgnCallDtls().add(mrgnCallDtls);
return this;
}
/**
* Adds a new item to the splmtryData list.
* @see #getSplmtryData()
*
*/
public MarginCallRequestV04 addSplmtryData(SupplementaryData1 splmtryData) {
getSplmtryData().add(splmtryData);
return this;
}
}