com.prowidesoftware.swift.model.mx.dic.EntitlementAdvice1 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.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;
/**
* Provides information about the CA entitlement.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EntitlementAdvice1", propOrder = {
"optnTp",
"optnNb",
"rcrdDt",
"pmtDt",
"acctAndDstrbtnDtls"
})
public class EntitlementAdvice1 {
@XmlElement(name = "OptnTp", required = true)
protected CorporateActionOption1FormatChoice optnTp;
@XmlElement(name = "OptnNb", required = true)
protected String optnNb;
@XmlElement(name = "RcrdDt")
protected DateFormat4Choice rcrdDt;
@XmlElement(name = "PmtDt")
protected DateFormat4Choice pmtDt;
@XmlElement(name = "AcctAndDstrbtnDtls", required = true)
protected List acctAndDstrbtnDtls;
/**
* Gets the value of the optnTp property.
*
* @return
* possible object is
* {@link CorporateActionOption1FormatChoice }
*
*/
public CorporateActionOption1FormatChoice getOptnTp() {
return optnTp;
}
/**
* Sets the value of the optnTp property.
*
* @param value
* allowed object is
* {@link CorporateActionOption1FormatChoice }
*
*/
public EntitlementAdvice1 setOptnTp(CorporateActionOption1FormatChoice value) {
this.optnTp = value;
return this;
}
/**
* Gets the value of the optnNb property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOptnNb() {
return optnNb;
}
/**
* Sets the value of the optnNb property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public EntitlementAdvice1 setOptnNb(String value) {
this.optnNb = value;
return this;
}
/**
* Gets the value of the rcrdDt property.
*
* @return
* possible object is
* {@link DateFormat4Choice }
*
*/
public DateFormat4Choice getRcrdDt() {
return rcrdDt;
}
/**
* Sets the value of the rcrdDt property.
*
* @param value
* allowed object is
* {@link DateFormat4Choice }
*
*/
public EntitlementAdvice1 setRcrdDt(DateFormat4Choice value) {
this.rcrdDt = value;
return this;
}
/**
* Gets the value of the pmtDt property.
*
* @return
* possible object is
* {@link DateFormat4Choice }
*
*/
public DateFormat4Choice getPmtDt() {
return pmtDt;
}
/**
* Sets the value of the pmtDt property.
*
* @param value
* allowed object is
* {@link DateFormat4Choice }
*
*/
public EntitlementAdvice1 setPmtDt(DateFormat4Choice value) {
this.pmtDt = value;
return this;
}
/**
* Gets the value of the acctAndDstrbtnDtls 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 JAXB object.
* This is why there is not a set
method for the acctAndDstrbtnDtls property.
*
*
* For example, to add a new item, do as follows:
*
* getAcctAndDstrbtnDtls().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Entitlement1 }
*
*
*/
public List getAcctAndDstrbtnDtls() {
if (acctAndDstrbtnDtls == null) {
acctAndDstrbtnDtls = new ArrayList();
}
return this.acctAndDstrbtnDtls;
}
@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 acctAndDstrbtnDtls list.
* @see #getAcctAndDstrbtnDtls()
*
*/
public EntitlementAdvice1 addAcctAndDstrbtnDtls(Entitlement1 acctAndDstrbtnDtls) {
getAcctAndDstrbtnDtls().add(acctAndDstrbtnDtls);
return this;
}
}