com.prowidesoftware.swift.model.mx.dic.ForeignExchangeTradeInstructionV02 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 ForeignExchangeTradeInstruction message is sent by a participant to a central settlement system to notify the creation of the foreign exchange trade agreed by both trading parties.
* Usage
* The ForeignExchangeTradeInstruction message is sent from a participant to a central settlement system to advise of the creation of a foreign exchange trade.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ForeignExchangeTradeInstructionV02", propOrder = {
"tradInf",
"tradgSdId",
"ctrPtySdId",
"tradAmts",
"agrdRate",
"tradgSdSttlmInstrs",
"ctrPtySdSttlmInstrs",
"optnlGnlInf",
"rgltryRptg",
"splmtryData"
})
public class ForeignExchangeTradeInstructionV02 {
@XmlElement(name = "TradInf", required = true)
protected TradeAgreement7 tradInf;
@XmlElement(name = "TradgSdId", required = true)
protected TradePartyIdentification6 tradgSdId;
@XmlElement(name = "CtrPtySdId", required = true)
protected TradePartyIdentification6 ctrPtySdId;
@XmlElement(name = "TradAmts", required = true)
protected AmountsAndValueDate1 tradAmts;
@XmlElement(name = "AgrdRate", required = true)
protected AgreedRate1 agrdRate;
@XmlElement(name = "TradgSdSttlmInstrs")
protected SettlementParties29 tradgSdSttlmInstrs;
@XmlElement(name = "CtrPtySdSttlmInstrs")
protected SettlementParties29 ctrPtySdSttlmInstrs;
@XmlElement(name = "OptnlGnlInf")
protected GeneralInformation4 optnlGnlInf;
@XmlElement(name = "RgltryRptg")
protected RegulatoryReporting1 rgltryRptg;
@XmlElement(name = "SplmtryData")
protected List splmtryData;
/**
* Gets the value of the tradInf property.
*
* @return
* possible object is
* {@link TradeAgreement7 }
*
*/
public TradeAgreement7 getTradInf() {
return tradInf;
}
/**
* Sets the value of the tradInf property.
*
* @param value
* allowed object is
* {@link TradeAgreement7 }
*
*/
public ForeignExchangeTradeInstructionV02 setTradInf(TradeAgreement7 value) {
this.tradInf = value;
return this;
}
/**
* Gets the value of the tradgSdId property.
*
* @return
* possible object is
* {@link TradePartyIdentification6 }
*
*/
public TradePartyIdentification6 getTradgSdId() {
return tradgSdId;
}
/**
* Sets the value of the tradgSdId property.
*
* @param value
* allowed object is
* {@link TradePartyIdentification6 }
*
*/
public ForeignExchangeTradeInstructionV02 setTradgSdId(TradePartyIdentification6 value) {
this.tradgSdId = value;
return this;
}
/**
* Gets the value of the ctrPtySdId property.
*
* @return
* possible object is
* {@link TradePartyIdentification6 }
*
*/
public TradePartyIdentification6 getCtrPtySdId() {
return ctrPtySdId;
}
/**
* Sets the value of the ctrPtySdId property.
*
* @param value
* allowed object is
* {@link TradePartyIdentification6 }
*
*/
public ForeignExchangeTradeInstructionV02 setCtrPtySdId(TradePartyIdentification6 value) {
this.ctrPtySdId = value;
return this;
}
/**
* Gets the value of the tradAmts property.
*
* @return
* possible object is
* {@link AmountsAndValueDate1 }
*
*/
public AmountsAndValueDate1 getTradAmts() {
return tradAmts;
}
/**
* Sets the value of the tradAmts property.
*
* @param value
* allowed object is
* {@link AmountsAndValueDate1 }
*
*/
public ForeignExchangeTradeInstructionV02 setTradAmts(AmountsAndValueDate1 value) {
this.tradAmts = value;
return this;
}
/**
* Gets the value of the agrdRate property.
*
* @return
* possible object is
* {@link AgreedRate1 }
*
*/
public AgreedRate1 getAgrdRate() {
return agrdRate;
}
/**
* Sets the value of the agrdRate property.
*
* @param value
* allowed object is
* {@link AgreedRate1 }
*
*/
public ForeignExchangeTradeInstructionV02 setAgrdRate(AgreedRate1 value) {
this.agrdRate = value;
return this;
}
/**
* Gets the value of the tradgSdSttlmInstrs property.
*
* @return
* possible object is
* {@link SettlementParties29 }
*
*/
public SettlementParties29 getTradgSdSttlmInstrs() {
return tradgSdSttlmInstrs;
}
/**
* Sets the value of the tradgSdSttlmInstrs property.
*
* @param value
* allowed object is
* {@link SettlementParties29 }
*
*/
public ForeignExchangeTradeInstructionV02 setTradgSdSttlmInstrs(SettlementParties29 value) {
this.tradgSdSttlmInstrs = value;
return this;
}
/**
* Gets the value of the ctrPtySdSttlmInstrs property.
*
* @return
* possible object is
* {@link SettlementParties29 }
*
*/
public SettlementParties29 getCtrPtySdSttlmInstrs() {
return ctrPtySdSttlmInstrs;
}
/**
* Sets the value of the ctrPtySdSttlmInstrs property.
*
* @param value
* allowed object is
* {@link SettlementParties29 }
*
*/
public ForeignExchangeTradeInstructionV02 setCtrPtySdSttlmInstrs(SettlementParties29 value) {
this.ctrPtySdSttlmInstrs = value;
return this;
}
/**
* Gets the value of the optnlGnlInf property.
*
* @return
* possible object is
* {@link GeneralInformation4 }
*
*/
public GeneralInformation4 getOptnlGnlInf() {
return optnlGnlInf;
}
/**
* Sets the value of the optnlGnlInf property.
*
* @param value
* allowed object is
* {@link GeneralInformation4 }
*
*/
public ForeignExchangeTradeInstructionV02 setOptnlGnlInf(GeneralInformation4 value) {
this.optnlGnlInf = value;
return this;
}
/**
* Gets the value of the rgltryRptg property.
*
* @return
* possible object is
* {@link RegulatoryReporting1 }
*
*/
public RegulatoryReporting1 getRgltryRptg() {
return rgltryRptg;
}
/**
* Sets the value of the rgltryRptg property.
*
* @param value
* allowed object is
* {@link RegulatoryReporting1 }
*
*/
public ForeignExchangeTradeInstructionV02 setRgltryRptg(RegulatoryReporting1 value) {
this.rgltryRptg = 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 ForeignExchangeTradeInstructionV02 addSplmtryData(SupplementaryData1 splmtryData) {
getSplmtryData().add(splmtryData);
return this;
}
}