com.prowidesoftware.swift.model.mx.dic.IntraBalanceMovementInstructionV01 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;
/**
* The IntraBalanceMovementInstruction message is sent from an account owner/requestor to a settlement infrastructure to instruct the movement of an amount of money within its holdings from one sub-balance to another.
*
* Usage:
* The message may be used to:
* - re-send a message previously sent (the sub-function of the message is "Duplicate")
* - provide a third party with a copy of a message for information (the sub-function of the message is "Copy")
* - re-send to a third party a copy of a message for information (the sub-function of the message is "CopyDuplicate").
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "IntraBalanceMovementInstructionV01", propOrder = {
"id",
"corpActnEvtId",
"nbCounts",
"lnkgs",
"cshAcct",
"cshAcctOwnr",
"cshAcctSvcr",
"intraBal",
"splmtryData"
})
public class IntraBalanceMovementInstructionV01 {
@XmlElement(name = "Id")
protected TransactionAndDocumentIdentification6 id;
@XmlElement(name = "CorpActnEvtId")
protected Identification14 corpActnEvtId;
@XmlElement(name = "NbCounts")
protected NumberCount1Choice nbCounts;
@XmlElement(name = "Lnkgs")
protected List lnkgs;
@XmlElement(name = "CshAcct", required = true)
protected CashAccount38 cshAcct;
@XmlElement(name = "CshAcctOwnr")
protected SystemPartyIdentification8 cshAcctOwnr;
@XmlElement(name = "CshAcctSvcr")
protected BranchAndFinancialInstitutionIdentification6 cshAcctSvcr;
@XmlElement(name = "IntraBal", required = true)
protected IntraBalance5 intraBal;
@XmlElement(name = "SplmtryData")
protected List splmtryData;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link TransactionAndDocumentIdentification6 }
*
*/
public TransactionAndDocumentIdentification6 getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link TransactionAndDocumentIdentification6 }
*
*/
public IntraBalanceMovementInstructionV01 setId(TransactionAndDocumentIdentification6 value) {
this.id = value;
return this;
}
/**
* Gets the value of the corpActnEvtId property.
*
* @return
* possible object is
* {@link Identification14 }
*
*/
public Identification14 getCorpActnEvtId() {
return corpActnEvtId;
}
/**
* Sets the value of the corpActnEvtId property.
*
* @param value
* allowed object is
* {@link Identification14 }
*
*/
public IntraBalanceMovementInstructionV01 setCorpActnEvtId(Identification14 value) {
this.corpActnEvtId = value;
return this;
}
/**
* Gets the value of the nbCounts property.
*
* @return
* possible object is
* {@link NumberCount1Choice }
*
*/
public NumberCount1Choice getNbCounts() {
return nbCounts;
}
/**
* Sets the value of the nbCounts property.
*
* @param value
* allowed object is
* {@link NumberCount1Choice }
*
*/
public IntraBalanceMovementInstructionV01 setNbCounts(NumberCount1Choice value) {
this.nbCounts = value;
return this;
}
/**
* Gets the value of the lnkgs 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 lnkgs property.
*
*
* For example, to add a new item, do as follows:
*
* getLnkgs().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Linkages57 }
*
*
* @return
* The value of the lnkgs property.
*/
public List getLnkgs() {
if (lnkgs == null) {
lnkgs = new ArrayList<>();
}
return this.lnkgs;
}
/**
* Gets the value of the cshAcct property.
*
* @return
* possible object is
* {@link CashAccount38 }
*
*/
public CashAccount38 getCshAcct() {
return cshAcct;
}
/**
* Sets the value of the cshAcct property.
*
* @param value
* allowed object is
* {@link CashAccount38 }
*
*/
public IntraBalanceMovementInstructionV01 setCshAcct(CashAccount38 value) {
this.cshAcct = value;
return this;
}
/**
* Gets the value of the cshAcctOwnr property.
*
* @return
* possible object is
* {@link SystemPartyIdentification8 }
*
*/
public SystemPartyIdentification8 getCshAcctOwnr() {
return cshAcctOwnr;
}
/**
* Sets the value of the cshAcctOwnr property.
*
* @param value
* allowed object is
* {@link SystemPartyIdentification8 }
*
*/
public IntraBalanceMovementInstructionV01 setCshAcctOwnr(SystemPartyIdentification8 value) {
this.cshAcctOwnr = value;
return this;
}
/**
* Gets the value of the cshAcctSvcr property.
*
* @return
* possible object is
* {@link BranchAndFinancialInstitutionIdentification6 }
*
*/
public BranchAndFinancialInstitutionIdentification6 getCshAcctSvcr() {
return cshAcctSvcr;
}
/**
* Sets the value of the cshAcctSvcr property.
*
* @param value
* allowed object is
* {@link BranchAndFinancialInstitutionIdentification6 }
*
*/
public IntraBalanceMovementInstructionV01 setCshAcctSvcr(BranchAndFinancialInstitutionIdentification6 value) {
this.cshAcctSvcr = value;
return this;
}
/**
* Gets the value of the intraBal property.
*
* @return
* possible object is
* {@link IntraBalance5 }
*
*/
public IntraBalance5 getIntraBal() {
return intraBal;
}
/**
* Sets the value of the intraBal property.
*
* @param value
* allowed object is
* {@link IntraBalance5 }
*
*/
public IntraBalanceMovementInstructionV01 setIntraBal(IntraBalance5 value) {
this.intraBal = 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 lnkgs list.
* @see #getLnkgs()
*
*/
public IntraBalanceMovementInstructionV01 addLnkgs(Linkages57 lnkgs) {
getLnkgs().add(lnkgs);
return this;
}
/**
* Adds a new item to the splmtryData list.
* @see #getSplmtryData()
*
*/
public IntraBalanceMovementInstructionV01 addSplmtryData(SupplementaryData1 splmtryData) {
getSplmtryData().add(splmtryData);
return this;
}
}