com.prowidesoftware.swift.model.mx.dic.SubAccountIdentification11 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;
/**
* Account to or from which a securities entry is made.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SubAccountIdentification11", propOrder = {
"acctOwnr",
"sfkpgAcct",
"actvtyInd",
"balForSubAcct"
})
public class SubAccountIdentification11 {
@XmlElement(name = "AcctOwnr")
protected PartyIdentification13Choice acctOwnr;
@XmlElement(name = "SfkpgAcct", required = true)
protected SecuritiesAccount14 sfkpgAcct;
@XmlElement(name = "ActvtyInd")
protected boolean actvtyInd;
@XmlElement(name = "BalForSubAcct")
protected List balForSubAcct;
/**
* Gets the value of the acctOwnr property.
*
* @return
* possible object is
* {@link PartyIdentification13Choice }
*
*/
public PartyIdentification13Choice getAcctOwnr() {
return acctOwnr;
}
/**
* Sets the value of the acctOwnr property.
*
* @param value
* allowed object is
* {@link PartyIdentification13Choice }
*
*/
public SubAccountIdentification11 setAcctOwnr(PartyIdentification13Choice value) {
this.acctOwnr = value;
return this;
}
/**
* Gets the value of the sfkpgAcct property.
*
* @return
* possible object is
* {@link SecuritiesAccount14 }
*
*/
public SecuritiesAccount14 getSfkpgAcct() {
return sfkpgAcct;
}
/**
* Sets the value of the sfkpgAcct property.
*
* @param value
* allowed object is
* {@link SecuritiesAccount14 }
*
*/
public SubAccountIdentification11 setSfkpgAcct(SecuritiesAccount14 value) {
this.sfkpgAcct = value;
return this;
}
/**
* Gets the value of the actvtyInd property.
*
*/
public boolean isActvtyInd() {
return actvtyInd;
}
/**
* Sets the value of the actvtyInd property.
*
*/
public SubAccountIdentification11 setActvtyInd(boolean value) {
this.actvtyInd = value;
return this;
}
/**
* Gets the value of the balForSubAcct 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 balForSubAcct property.
*
*
* For example, to add a new item, do as follows:
*
* getBalForSubAcct().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AggregateBalanceInformation9 }
*
*
* @return
* The value of the balForSubAcct property.
*/
public List getBalForSubAcct() {
if (balForSubAcct == null) {
balForSubAcct = new ArrayList<>();
}
return this.balForSubAcct;
}
@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 balForSubAcct list.
* @see #getBalForSubAcct()
*
*/
public SubAccountIdentification11 addBalForSubAcct(AggregateBalanceInformation9 balForSubAcct) {
getBalForSubAcct().add(balForSubAcct);
return this;
}
}