com.prowidesoftware.swift.model.mx.dic.TradeLegNotificationCancellationV02 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;
/**
* Scope
* The TradeLegNotificationCancellation message is sent by the central counterparty (CCP) to a clearing member to notify the cancellation of a TradeLegNotification message previously sent.
* The ISO 20022 Business Application Header (BAH) must be used.
* Usage
* The previously sent message must be the Trade Leg Notification message.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TradeLegNotificationCancellationV02", propOrder = {
"clrMmb",
"clrAcct",
"dlvryAcct",
"nonClrMmb",
"clrDtls",
"tradLegDtls",
"sttlmDtls",
"splmtryData"
})
public class TradeLegNotificationCancellationV02 {
@XmlElement(name = "ClrMmb", required = true)
protected PartyIdentification35Choice clrMmb;
@XmlElement(name = "ClrAcct", required = true)
protected SecuritiesAccount18 clrAcct;
@XmlElement(name = "DlvryAcct")
protected SecuritiesAccount19 dlvryAcct;
@XmlElement(name = "NonClrMmb")
protected PartyIdentificationAndAccount31 nonClrMmb;
@XmlElement(name = "ClrDtls")
protected Clearing2 clrDtls;
@XmlElement(name = "TradLegDtls", required = true)
protected TradeLeg5 tradLegDtls;
@XmlElement(name = "SttlmDtls", required = true)
protected Settlement1 sttlmDtls;
@XmlElement(name = "SplmtryData")
protected List splmtryData;
/**
* Gets the value of the clrMmb property.
*
* @return
* possible object is
* {@link PartyIdentification35Choice }
*
*/
public PartyIdentification35Choice getClrMmb() {
return clrMmb;
}
/**
* Sets the value of the clrMmb property.
*
* @param value
* allowed object is
* {@link PartyIdentification35Choice }
*
*/
public TradeLegNotificationCancellationV02 setClrMmb(PartyIdentification35Choice value) {
this.clrMmb = value;
return this;
}
/**
* Gets the value of the clrAcct property.
*
* @return
* possible object is
* {@link SecuritiesAccount18 }
*
*/
public SecuritiesAccount18 getClrAcct() {
return clrAcct;
}
/**
* Sets the value of the clrAcct property.
*
* @param value
* allowed object is
* {@link SecuritiesAccount18 }
*
*/
public TradeLegNotificationCancellationV02 setClrAcct(SecuritiesAccount18 value) {
this.clrAcct = value;
return this;
}
/**
* Gets the value of the dlvryAcct property.
*
* @return
* possible object is
* {@link SecuritiesAccount19 }
*
*/
public SecuritiesAccount19 getDlvryAcct() {
return dlvryAcct;
}
/**
* Sets the value of the dlvryAcct property.
*
* @param value
* allowed object is
* {@link SecuritiesAccount19 }
*
*/
public TradeLegNotificationCancellationV02 setDlvryAcct(SecuritiesAccount19 value) {
this.dlvryAcct = value;
return this;
}
/**
* Gets the value of the nonClrMmb property.
*
* @return
* possible object is
* {@link PartyIdentificationAndAccount31 }
*
*/
public PartyIdentificationAndAccount31 getNonClrMmb() {
return nonClrMmb;
}
/**
* Sets the value of the nonClrMmb property.
*
* @param value
* allowed object is
* {@link PartyIdentificationAndAccount31 }
*
*/
public TradeLegNotificationCancellationV02 setNonClrMmb(PartyIdentificationAndAccount31 value) {
this.nonClrMmb = value;
return this;
}
/**
* Gets the value of the clrDtls property.
*
* @return
* possible object is
* {@link Clearing2 }
*
*/
public Clearing2 getClrDtls() {
return clrDtls;
}
/**
* Sets the value of the clrDtls property.
*
* @param value
* allowed object is
* {@link Clearing2 }
*
*/
public TradeLegNotificationCancellationV02 setClrDtls(Clearing2 value) {
this.clrDtls = value;
return this;
}
/**
* Gets the value of the tradLegDtls property.
*
* @return
* possible object is
* {@link TradeLeg5 }
*
*/
public TradeLeg5 getTradLegDtls() {
return tradLegDtls;
}
/**
* Sets the value of the tradLegDtls property.
*
* @param value
* allowed object is
* {@link TradeLeg5 }
*
*/
public TradeLegNotificationCancellationV02 setTradLegDtls(TradeLeg5 value) {
this.tradLegDtls = value;
return this;
}
/**
* Gets the value of the sttlmDtls property.
*
* @return
* possible object is
* {@link Settlement1 }
*
*/
public Settlement1 getSttlmDtls() {
return sttlmDtls;
}
/**
* Sets the value of the sttlmDtls property.
*
* @param value
* allowed object is
* {@link Settlement1 }
*
*/
public TradeLegNotificationCancellationV02 setSttlmDtls(Settlement1 value) {
this.sttlmDtls = 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 Jakarta XML Binding object.
* This is why there is not a {@code 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 }
*
*
* @return
* The value of the splmtryData property.
*/
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 TradeLegNotificationCancellationV02 addSplmtryData(SupplementaryData1 splmtryData) {
getSplmtryData().add(splmtryData);
return this;
}
}