com.prowidesoftware.swift.model.mx.dic.OriginalGroupInformation30 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.math.BigDecimal;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import com.prowidesoftware.swift.model.mx.adapters.IsoDateTimeAdapter;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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;
/**
* Provides information on the original group, to which the message refers.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OriginalGroupInformation30", propOrder = {
"orgnlMsgId",
"orgnlMsgNmId",
"orgnlCreDtTm",
"orgnlNbOfTxs",
"orgnlCtrlSum",
"grpSts",
"stsRsnInf",
"nbOfTxsPerSts"
})
public class OriginalGroupInformation30 {
@XmlElement(name = "OrgnlMsgId", required = true)
protected String orgnlMsgId;
@XmlElement(name = "OrgnlMsgNmId", required = true)
protected String orgnlMsgNmId;
@XmlElement(name = "OrgnlCreDtTm", type = String.class)
@XmlJavaTypeAdapter(IsoDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected OffsetDateTime orgnlCreDtTm;
@XmlElement(name = "OrgnlNbOfTxs")
protected String orgnlNbOfTxs;
@XmlElement(name = "OrgnlCtrlSum")
protected BigDecimal orgnlCtrlSum;
@XmlElement(name = "GrpSts")
protected String grpSts;
@XmlElement(name = "StsRsnInf")
protected List stsRsnInf;
@XmlElement(name = "NbOfTxsPerSts")
protected List nbOfTxsPerSts;
/**
* Gets the value of the orgnlMsgId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrgnlMsgId() {
return orgnlMsgId;
}
/**
* Sets the value of the orgnlMsgId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalGroupInformation30 setOrgnlMsgId(String value) {
this.orgnlMsgId = value;
return this;
}
/**
* Gets the value of the orgnlMsgNmId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrgnlMsgNmId() {
return orgnlMsgNmId;
}
/**
* Sets the value of the orgnlMsgNmId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalGroupInformation30 setOrgnlMsgNmId(String value) {
this.orgnlMsgNmId = value;
return this;
}
/**
* Gets the value of the orgnlCreDtTm property.
*
* @return
* possible object is
* {@link String }
*
*/
public OffsetDateTime getOrgnlCreDtTm() {
return orgnlCreDtTm;
}
/**
* Sets the value of the orgnlCreDtTm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalGroupInformation30 setOrgnlCreDtTm(OffsetDateTime value) {
this.orgnlCreDtTm = value;
return this;
}
/**
* Gets the value of the orgnlNbOfTxs property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrgnlNbOfTxs() {
return orgnlNbOfTxs;
}
/**
* Sets the value of the orgnlNbOfTxs property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalGroupInformation30 setOrgnlNbOfTxs(String value) {
this.orgnlNbOfTxs = value;
return this;
}
/**
* Gets the value of the orgnlCtrlSum property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getOrgnlCtrlSum() {
return orgnlCtrlSum;
}
/**
* Sets the value of the orgnlCtrlSum property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public OriginalGroupInformation30 setOrgnlCtrlSum(BigDecimal value) {
this.orgnlCtrlSum = value;
return this;
}
/**
* Gets the value of the grpSts property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getGrpSts() {
return grpSts;
}
/**
* Sets the value of the grpSts property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalGroupInformation30 setGrpSts(String value) {
this.grpSts = value;
return this;
}
/**
* Gets the value of the stsRsnInf 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 stsRsnInf property.
*
*
* For example, to add a new item, do as follows:
*
* getStsRsnInf().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link StatusReasonInformation12 }
*
*
* @return
* The value of the stsRsnInf property.
*/
public List getStsRsnInf() {
if (stsRsnInf == null) {
stsRsnInf = new ArrayList<>();
}
return this.stsRsnInf;
}
/**
* Gets the value of the nbOfTxsPerSts 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 nbOfTxsPerSts property.
*
*
* For example, to add a new item, do as follows:
*
* getNbOfTxsPerSts().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link NumberOfTransactionsPerStatus5 }
*
*
* @return
* The value of the nbOfTxsPerSts property.
*/
public List getNbOfTxsPerSts() {
if (nbOfTxsPerSts == null) {
nbOfTxsPerSts = new ArrayList<>();
}
return this.nbOfTxsPerSts;
}
@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 stsRsnInf list.
* @see #getStsRsnInf()
*
*/
public OriginalGroupInformation30 addStsRsnInf(StatusReasonInformation12 stsRsnInf) {
getStsRsnInf().add(stsRsnInf);
return this;
}
/**
* Adds a new item to the nbOfTxsPerSts list.
* @see #getNbOfTxsPerSts()
*
*/
public OriginalGroupInformation30 addNbOfTxsPerSts(NumberOfTransactionsPerStatus5 nbOfTxsPerSts) {
getNbOfTxsPerSts().add(nbOfTxsPerSts);
return this;
}
}