71 lines
1.4 KiB
Java
71 lines
1.4 KiB
Java
package com.baeldung.spring.domain;
|
|
|
|
import javax.validation.constraints.Email;
|
|
import javax.validation.constraints.NotNull;
|
|
import javax.validation.constraints.Size;
|
|
|
|
/**
|
|
* Created by Olga on 7/20/2016.
|
|
*/
|
|
public class MailObject {
|
|
@Email
|
|
@NotNull
|
|
@Size(min = 1, message = "Please, set an email address to send the message to it")
|
|
private String to;
|
|
private String recipientName;
|
|
private String subject;
|
|
private String text;
|
|
private String senderName;
|
|
private String templateEngine;
|
|
|
|
public String getTo() {
|
|
return to;
|
|
}
|
|
|
|
public void setTo(String to) {
|
|
this.to = to;
|
|
}
|
|
|
|
public String getSubject() {
|
|
return subject;
|
|
}
|
|
|
|
public void setSubject(String subject) {
|
|
this.subject = subject;
|
|
}
|
|
|
|
public String getText() {
|
|
return text;
|
|
}
|
|
|
|
public void setText(String text) {
|
|
this.text = text;
|
|
}
|
|
|
|
public String getRecipientName() {
|
|
return recipientName;
|
|
}
|
|
|
|
public void setRecipientName(String recipientName) {
|
|
this.recipientName = recipientName;
|
|
}
|
|
|
|
public String getSenderName() {
|
|
return senderName;
|
|
}
|
|
|
|
public void setSenderName(String senderName) {
|
|
this.senderName = senderName;
|
|
}
|
|
|
|
public String getTemplateEngine() {
|
|
return templateEngine;
|
|
}
|
|
|
|
public void setTemplateEngine(String templateEngine) {
|
|
this.templateEngine = templateEngine;
|
|
}
|
|
|
|
|
|
}
|