package com.pgf.mqspring.model; import java.io.Serializable; public class MqmdRequestModel implements Serializable { /** MQMD */ private String format; private String msgId; private String correlId; private String persistence; private String expiry; private String applIdentityData; public MqmdRequestModel() { } public MqmdRequestModel(String format, String correlId, String persistence, String expiry, String applIdentityData) { this.format = format; this.correlId = correlId; this.persistence = persistence; this.expiry = expiry; this.applIdentityData = applIdentityData; } public String getFormat() { return (format == null) ? "" : format; } public void setFormat(String format) { this.format = format; } public String getMsgId() { return (msgId == null) ? "" : msgId; } public void setMsgId(String msgId) { this.msgId = msgId; } public String getCorrelId() { return (correlId == null) ? "" : correlId; } public void setCorrelId(String correlId) { this.correlId = correlId; } public String getPersistence() { return (persistence == null) ? "0" : persistence; } public void setPersistence(String persistence) { this.persistence = persistence; } public String getExpiry() { return (expiry == null) ? "0" : expiry; } public void setExpiry(String expiry) { this.expiry = expiry; } public String getApplIdentityData() { return (applIdentityData == null) ? "" : applIdentityData; } public void setApplIdentityData(String applIdentityData) { this.applIdentityData = applIdentityData; } @Override public String toString() { StringBuilder str = new StringBuilder(); str.append(getFormat()); str.append(getMsgId()); str.append(getCorrelId()); str.append(getPersistence()); str.append(getExpiry()); str.append(getApplIdentityData()); return String.format("%s", str.toString()); } }