com.prowidesoftware.swift.model.mx.dic.PartyUpdate1 Maven / Gradle / Ivy
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;
/**
* Specifies the attributes of the party, which are / are being updated.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PartyUpdate1", propOrder = {
"techRcrdId",
"id",
"prvsId",
"othr",
"sts",
"techVldtyPrd",
"splmtryData"
})
public class PartyUpdate1 {
@XmlElement(name = "TechRcrdId")
protected String techRcrdId;
@XmlElement(name = "Id", required = true)
protected PartyIdentification136 id;
@XmlElement(name = "PrvsId")
protected PartyIdentification136 prvsId;
@XmlElement(name = "Othr", required = true)
protected PartyDetail1 othr;
@XmlElement(name = "Sts", required = true)
protected List sts;
@XmlElement(name = "TechVldtyPrd")
protected Period4Choice techVldtyPrd;
@XmlElement(name = "SplmtryData")
protected List splmtryData;
/**
* Gets the value of the techRcrdId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTechRcrdId() {
return techRcrdId;
}
/**
* Sets the value of the techRcrdId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public PartyUpdate1 setTechRcrdId(String value) {
this.techRcrdId = value;
return this;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link PartyIdentification136 }
*
*/
public PartyIdentification136 getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link PartyIdentification136 }
*
*/
public PartyUpdate1 setId(PartyIdentification136 value) {
this.id = value;
return this;
}
/**
* Gets the value of the prvsId property.
*
* @return
* possible object is
* {@link PartyIdentification136 }
*
*/
public PartyIdentification136 getPrvsId() {
return prvsId;
}
/**
* Sets the value of the prvsId property.
*
* @param value
* allowed object is
* {@link PartyIdentification136 }
*
*/
public PartyUpdate1 setPrvsId(PartyIdentification136 value) {
this.prvsId = value;
return this;
}
/**
* Gets the value of the othr property.
*
* @return
* possible object is
* {@link PartyDetail1 }
*
*/
public PartyDetail1 getOthr() {
return othr;
}
/**
* Sets the value of the othr property.
*
* @param value
* allowed object is
* {@link PartyDetail1 }
*
*/
public PartyUpdate1 setOthr(PartyDetail1 value) {
this.othr = value;
return this;
}
/**
* Gets the value of the sts 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 sts property.
*
*
* For example, to add a new item, do as follows:
*
* getSts().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link StatusDetail1 }
*
*
* @return
* The value of the sts property.
*/
public List getSts() {
if (sts == null) {
sts = new ArrayList<>();
}
return this.sts;
}
/**
* Gets the value of the techVldtyPrd property.
*
* @return
* possible object is
* {@link Period4Choice }
*
*/
public Period4Choice getTechVldtyPrd() {
return techVldtyPrd;
}
/**
* Sets the value of the techVldtyPrd property.
*
* @param value
* allowed object is
* {@link Period4Choice }
*
*/
public PartyUpdate1 setTechVldtyPrd(Period4Choice value) {
this.techVldtyPrd = 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 sts list.
* @see #getSts()
*
*/
public PartyUpdate1 addSts(StatusDetail1 sts) {
getSts().add(sts);
return this;
}
/**
* Adds a new item to the splmtryData list.
* @see #getSplmtryData()
*
*/
public PartyUpdate1 addSplmtryData(SupplementaryData1 splmtryData) {
getSplmtryData().add(splmtryData);
return this;
}
}