com.prowidesoftware.swift.model.mx.dic.TMSAction2 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.XmlSchemaType;
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;
/**
* Single terminal management action to be performed by the point of interaction.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TMSAction2", propOrder = {
"tp",
"adr",
"dataSetId",
"trggr",
"addtlPrc",
"tmCond",
"tmChllng",
"keyNcphrmntCert",
"errActn"
})
public class TMSAction2 {
@XmlElement(name = "Tp", required = true)
@XmlSchemaType(name = "string")
protected TerminalManagementAction1Code tp;
@XmlElement(name = "Adr")
protected NetworkParameters1 adr;
@XmlElement(name = "DataSetId")
protected DataSetIdentification3 dataSetId;
@XmlElement(name = "Trggr", required = true)
@XmlSchemaType(name = "string")
protected TerminalManagementActionTrigger1Code trggr;
@XmlElement(name = "AddtlPrc")
@XmlSchemaType(name = "string")
protected TerminalManagementAdditionalProcess1Code addtlPrc;
@XmlElement(name = "TmCond")
protected ProcessTiming2 tmCond;
@XmlElement(name = "TMChllng")
protected byte[] tmChllng;
@XmlElement(name = "KeyNcphrmntCert")
protected List keyNcphrmntCert;
@XmlElement(name = "ErrActn")
protected List errActn;
/**
* Gets the value of the tp property.
*
* @return
* possible object is
* {@link TerminalManagementAction1Code }
*
*/
public TerminalManagementAction1Code getTp() {
return tp;
}
/**
* Sets the value of the tp property.
*
* @param value
* allowed object is
* {@link TerminalManagementAction1Code }
*
*/
public TMSAction2 setTp(TerminalManagementAction1Code value) {
this.tp = value;
return this;
}
/**
* Gets the value of the adr property.
*
* @return
* possible object is
* {@link NetworkParameters1 }
*
*/
public NetworkParameters1 getAdr() {
return adr;
}
/**
* Sets the value of the adr property.
*
* @param value
* allowed object is
* {@link NetworkParameters1 }
*
*/
public TMSAction2 setAdr(NetworkParameters1 value) {
this.adr = value;
return this;
}
/**
* Gets the value of the dataSetId property.
*
* @return
* possible object is
* {@link DataSetIdentification3 }
*
*/
public DataSetIdentification3 getDataSetId() {
return dataSetId;
}
/**
* Sets the value of the dataSetId property.
*
* @param value
* allowed object is
* {@link DataSetIdentification3 }
*
*/
public TMSAction2 setDataSetId(DataSetIdentification3 value) {
this.dataSetId = value;
return this;
}
/**
* Gets the value of the trggr property.
*
* @return
* possible object is
* {@link TerminalManagementActionTrigger1Code }
*
*/
public TerminalManagementActionTrigger1Code getTrggr() {
return trggr;
}
/**
* Sets the value of the trggr property.
*
* @param value
* allowed object is
* {@link TerminalManagementActionTrigger1Code }
*
*/
public TMSAction2 setTrggr(TerminalManagementActionTrigger1Code value) {
this.trggr = value;
return this;
}
/**
* Gets the value of the addtlPrc property.
*
* @return
* possible object is
* {@link TerminalManagementAdditionalProcess1Code }
*
*/
public TerminalManagementAdditionalProcess1Code getAddtlPrc() {
return addtlPrc;
}
/**
* Sets the value of the addtlPrc property.
*
* @param value
* allowed object is
* {@link TerminalManagementAdditionalProcess1Code }
*
*/
public TMSAction2 setAddtlPrc(TerminalManagementAdditionalProcess1Code value) {
this.addtlPrc = value;
return this;
}
/**
* Gets the value of the tmCond property.
*
* @return
* possible object is
* {@link ProcessTiming2 }
*
*/
public ProcessTiming2 getTmCond() {
return tmCond;
}
/**
* Sets the value of the tmCond property.
*
* @param value
* allowed object is
* {@link ProcessTiming2 }
*
*/
public TMSAction2 setTmCond(ProcessTiming2 value) {
this.tmCond = value;
return this;
}
/**
* Gets the value of the tmChllng property.
*
* @return
* possible object is
* byte[]
*/
public byte[] getTMChllng() {
return tmChllng;
}
/**
* Sets the value of the tmChllng property.
*
* @param value
* allowed object is
* byte[]
*/
public TMSAction2 setTMChllng(byte[] value) {
this.tmChllng = value;
return this;
}
/**
* Gets the value of the keyNcphrmntCert 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 keyNcphrmntCert property.
*
*
* For example, to add a new item, do as follows:
*
* getKeyNcphrmntCert().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* byte[]
*
* @return
* The value of the keyNcphrmntCert property.
*/
public List getKeyNcphrmntCert() {
if (keyNcphrmntCert == null) {
keyNcphrmntCert = new ArrayList<>();
}
return this.keyNcphrmntCert;
}
/**
* Gets the value of the errActn 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 errActn property.
*
*
* For example, to add a new item, do as follows:
*
* getErrActn().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ErrorAction2 }
*
*
* @return
* The value of the errActn property.
*/
public List getErrActn() {
if (errActn == null) {
errActn = new ArrayList<>();
}
return this.errActn;
}
@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 keyNcphrmntCert list.
* @see #getKeyNcphrmntCert()
*
*/
public TMSAction2 addKeyNcphrmntCert(byte[] keyNcphrmntCert) {
getKeyNcphrmntCert().add(keyNcphrmntCert);
return this;
}
/**
* Adds a new item to the errActn list.
* @see #getErrActn()
*
*/
public TMSAction2 addErrActn(ErrorAction2 errActn) {
getErrActn().add(errActn);
return this;
}
}