Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

package gov.va.med.ars.model.request;

public class EmailTemplateRequest {

private String templateType;

private String heading;

private String message;

private String templateName;

private String modifiedBy;

public EmailTemplateRequest() {
super();
}

public String getTemplateName() {
return templateName;
}

public void setTemplateName(String templateName) {
this.templateName = templateName;
}

public EmailTemplateRequest(String heading, String message, String templateName, String modifiedBy) {
super();
this.heading = heading;
this.message = message;
this.templateName = templateName;
this.modifiedBy = modifiedBy;
}

/**
* @return the templateType
*/
public String getTemplateType() {
return templateType;
}

/**
* @param templateType
* the templateType to set
*/
public void setTemplateType(String templateType) {
this.templateType = templateType;
}

public String getHeading() {
return heading;
}

public void setHeading(String heading) {
this.heading = heading;
}

public String getMessage() {
return message;
}

public void setMessage(String message) {
this.message = message;
}

public String getModifiedBy() {
return modifiedBy;
}

public void setModifiedBy(String modifiedBy) {
this.modifiedBy = modifiedBy;
}

@Override
public String toString() {
return "EmailTemplateRequest [heading=" + heading + ", message=" + message + ", templateName=" + templateName + ", modifiedBy=" + "]";
}

@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((heading == null) ? 0 : heading.hashCode());
result = prime * result + ((message == null) ? 0 : message.hashCode());
result = prime * result + ((modifiedBy == null) ? 0 : modifiedBy.hashCode());
result = prime * result + ((templateName == null) ? 0 : templateName.hashCode());
result = prime * result + ((templateType == null) ? 0 : templateType.hashCode());
return result;
}

@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
EmailTemplateRequest other = (EmailTemplateRequest) obj;
if (heading == null) {
if (other.heading != null)
return false;
} else if (!heading.equals(other.heading))
return false;
if (message == null) {
if (other.message != null)
return false;
} else if (!message.equals(other.message))
return false;
if (modifiedBy == null) {
if (other.modifiedBy != null)
return false;
} else if (!modifiedBy.equals(other.modifiedBy))
return false;
if (templateName == null) {
if (other.templateName != null)
return false;
} else if (!templateName.equals(other.templateName))
return false;
if (templateType == null) {
if (other.templateType != null)
return false;
} else if (!templateType.equals(other.templateType))
return false;
return true;
}
}