com.prowidesoftware.swift.model.mx.dic.SafekeepingAccount3 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;
/**
* A safekeeping account is an account on which a securities entry is made.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SafekeepingAccount3", propOrder = {
"acctId",
"acctOwnr",
"subAcctDtls",
"instdBal",
"rghtsHldr"
})
public class SafekeepingAccount3 {
@XmlElement(name = "AcctId", required = true)
protected String acctId;
@XmlElement(name = "AcctOwnr")
protected PartyIdentification9Choice acctOwnr;
@XmlElement(name = "SubAcctDtls")
protected SubAccount2 subAcctDtls;
@XmlElement(name = "InstdBal", required = true)
protected List instdBal;
@XmlElement(name = "RghtsHldr")
protected List rghtsHldr;
/**
* Gets the value of the acctId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAcctId() {
return acctId;
}
/**
* Sets the value of the acctId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SafekeepingAccount3 setAcctId(String value) {
this.acctId = value;
return this;
}
/**
* Gets the value of the acctOwnr property.
*
* @return
* possible object is
* {@link PartyIdentification9Choice }
*
*/
public PartyIdentification9Choice getAcctOwnr() {
return acctOwnr;
}
/**
* Sets the value of the acctOwnr property.
*
* @param value
* allowed object is
* {@link PartyIdentification9Choice }
*
*/
public SafekeepingAccount3 setAcctOwnr(PartyIdentification9Choice value) {
this.acctOwnr = value;
return this;
}
/**
* Gets the value of the subAcctDtls property.
*
* @return
* possible object is
* {@link SubAccount2 }
*
*/
public SubAccount2 getSubAcctDtls() {
return subAcctDtls;
}
/**
* Sets the value of the subAcctDtls property.
*
* @param value
* allowed object is
* {@link SubAccount2 }
*
*/
public SafekeepingAccount3 setSubAcctDtls(SubAccount2 value) {
this.subAcctDtls = value;
return this;
}
/**
* Gets the value of the instdBal 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 instdBal property.
*
*
* For example, to add a new item, do as follows:
*
* getInstdBal().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link HoldingBalance4 }
*
*
* @return
* The value of the instdBal property.
*/
public List getInstdBal() {
if (instdBal == null) {
instdBal = new ArrayList<>();
}
return this.instdBal;
}
/**
* Gets the value of the rghtsHldr 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 rghtsHldr property.
*
*
* For example, to add a new item, do as follows:
*
* getRghtsHldr().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PartyIdentification9Choice }
*
*
* @return
* The value of the rghtsHldr property.
*/
public List getRghtsHldr() {
if (rghtsHldr == null) {
rghtsHldr = new ArrayList<>();
}
return this.rghtsHldr;
}
@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 instdBal list.
* @see #getInstdBal()
*
*/
public SafekeepingAccount3 addInstdBal(HoldingBalance4 instdBal) {
getInstdBal().add(instdBal);
return this;
}
/**
* Adds a new item to the rghtsHldr list.
* @see #getRghtsHldr()
*
*/
public SafekeepingAccount3 addRghtsHldr(PartyIdentification9Choice rghtsHldr) {
getRghtsHldr().add(rghtsHldr);
return this;
}
}