com.prowidesoftware.swift.model.mx.dic.MarginCallRequestV02 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 ISO 20022 Business Application Header must be used
* 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 = "MarginCallRequestV02", propOrder = {
"txId",
"oblgtn",
"agrmt",
"mrgnDtlsDueToA",
"mrgnDtlsDueToB",
"rqrmntDtlsDueToA",
"rqrmntDtlsDueToB",
"mrgnCallRslt",
"xpctdCollDueToB",
"xpctdCollDueToA",
"splmtryData"
})
public class MarginCallRequestV02 {
@XmlElement(name = "TxId", required = true)
protected String txId;
@XmlElement(name = "Oblgtn", required = true)
protected Obligation2 oblgtn;
@XmlElement(name = "Agrmt")
protected Agreement2 agrmt;
@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 = "MrgnCallRslt", required = true)
protected MarginCallResult3 mrgnCallRslt;
@XmlElement(name = "XpctdCollDueToB")
protected ExpectedCollateral1Choice xpctdCollDueToB;
@XmlElement(name = "XpctdCollDueToA")
protected ExpectedCollateral1Choice xpctdCollDueToA;
@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 MarginCallRequestV02 setTxId(String value) {
this.txId = value;
return this;
}
/**
* Gets the value of the oblgtn property.
*
* @return
* possible object is
* {@link Obligation2 }
*
*/
public Obligation2 getOblgtn() {
return oblgtn;
}
/**
* Sets the value of the oblgtn property.
*
* @param value
* allowed object is
* {@link Obligation2 }
*
*/
public MarginCallRequestV02 setOblgtn(Obligation2 value) {
this.oblgtn = value;
return this;
}
/**
* Gets the value of the agrmt property.
*
* @return
* possible object is
* {@link Agreement2 }
*
*/
public Agreement2 getAgrmt() {
return agrmt;
}
/**
* Sets the value of the agrmt property.
*
* @param value
* allowed object is
* {@link Agreement2 }
*
*/
public MarginCallRequestV02 setAgrmt(Agreement2 value) {
this.agrmt = 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 MarginCallRequestV02 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 MarginCallRequestV02 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 MarginCallRequestV02 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 MarginCallRequestV02 setRqrmntDtlsDueToB(MarginRequirement1Choice value) {
this.rqrmntDtlsDueToB = 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 MarginCallRequestV02 setMrgnCallRslt(MarginCallResult3 value) {
this.mrgnCallRslt = value;
return this;
}
/**
* Gets the value of the xpctdCollDueToB property.
*
* @return
* possible object is
* {@link ExpectedCollateral1Choice }
*
*/
public ExpectedCollateral1Choice getXpctdCollDueToB() {
return xpctdCollDueToB;
}
/**
* Sets the value of the xpctdCollDueToB property.
*
* @param value
* allowed object is
* {@link ExpectedCollateral1Choice }
*
*/
public MarginCallRequestV02 setXpctdCollDueToB(ExpectedCollateral1Choice value) {
this.xpctdCollDueToB = value;
return this;
}
/**
* Gets the value of the xpctdCollDueToA property.
*
* @return
* possible object is
* {@link ExpectedCollateral1Choice }
*
*/
public ExpectedCollateral1Choice getXpctdCollDueToA() {
return xpctdCollDueToA;
}
/**
* Sets the value of the xpctdCollDueToA property.
*
* @param value
* allowed object is
* {@link ExpectedCollateral1Choice }
*
*/
public MarginCallRequestV02 setXpctdCollDueToA(ExpectedCollateral1Choice value) {
this.xpctdCollDueToA = value;
return this;
}
/**
* 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 splmtryData list.
* @see #getSplmtryData()
*
*/
public MarginCallRequestV02 addSplmtryData(SupplementaryData1 splmtryData) {
getSplmtryData().add(splmtryData);
return this;
}
}