com.prowidesoftware.swift.model.mx.dic.TradeLegNotificationCancellationV01 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;
/**
* This message is sent by the central counterparty (CCP) to a Clearing member to notify the cancellation of a Trade Leg Notification previously sent.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TradeLegNotificationCancellationV01", propOrder = {
"id",
"refs",
"clrMmb",
"clrAcct",
"dlvryAcct",
"clrDtls",
"tradLegDtls",
"sttlmDtls",
"splmtryData"
})
public class TradeLegNotificationCancellationV01 {
@XmlElement(name = "Id", required = true)
protected DocumentIdentification11 id;
@XmlElement(name = "Refs", required = true)
protected Reference18 refs;
@XmlElement(name = "ClrMmb", required = true)
protected PartyIdentification35Choice clrMmb;
@XmlElement(name = "ClrAcct", required = true)
protected SecuritiesAccount18 clrAcct;
@XmlElement(name = "DlvryAcct")
protected SecuritiesAccount19 dlvryAcct;
@XmlElement(name = "ClrDtls", required = true)
protected Clearing1 clrDtls;
@XmlElement(name = "TradLegDtls", required = true)
protected TradeLeg1 tradLegDtls;
@XmlElement(name = "SttlmDtls", required = true)
protected SettlementDetails21 sttlmDtls;
@XmlElement(name = "SplmtryData")
protected List splmtryData;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link DocumentIdentification11 }
*
*/
public DocumentIdentification11 getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link DocumentIdentification11 }
*
*/
public TradeLegNotificationCancellationV01 setId(DocumentIdentification11 value) {
this.id = value;
return this;
}
/**
* Gets the value of the refs property.
*
* @return
* possible object is
* {@link Reference18 }
*
*/
public Reference18 getRefs() {
return refs;
}
/**
* Sets the value of the refs property.
*
* @param value
* allowed object is
* {@link Reference18 }
*
*/
public TradeLegNotificationCancellationV01 setRefs(Reference18 value) {
this.refs = value;
return this;
}
/**
* 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 TradeLegNotificationCancellationV01 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 TradeLegNotificationCancellationV01 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 TradeLegNotificationCancellationV01 setDlvryAcct(SecuritiesAccount19 value) {
this.dlvryAcct = value;
return this;
}
/**
* Gets the value of the clrDtls property.
*
* @return
* possible object is
* {@link Clearing1 }
*
*/
public Clearing1 getClrDtls() {
return clrDtls;
}
/**
* Sets the value of the clrDtls property.
*
* @param value
* allowed object is
* {@link Clearing1 }
*
*/
public TradeLegNotificationCancellationV01 setClrDtls(Clearing1 value) {
this.clrDtls = value;
return this;
}
/**
* Gets the value of the tradLegDtls property.
*
* @return
* possible object is
* {@link TradeLeg1 }
*
*/
public TradeLeg1 getTradLegDtls() {
return tradLegDtls;
}
/**
* Sets the value of the tradLegDtls property.
*
* @param value
* allowed object is
* {@link TradeLeg1 }
*
*/
public TradeLegNotificationCancellationV01 setTradLegDtls(TradeLeg1 value) {
this.tradLegDtls = value;
return this;
}
/**
* Gets the value of the sttlmDtls property.
*
* @return
* possible object is
* {@link SettlementDetails21 }
*
*/
public SettlementDetails21 getSttlmDtls() {
return sttlmDtls;
}
/**
* Sets the value of the sttlmDtls property.
*
* @param value
* allowed object is
* {@link SettlementDetails21 }
*
*/
public TradeLegNotificationCancellationV01 setSttlmDtls(SettlementDetails21 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 TradeLegNotificationCancellationV01 addSplmtryData(SupplementaryData1 splmtryData) {
getSplmtryData().add(splmtryData);
return this;
}
}