Skip to content

Instantly share code, notes, and snippets.

@Gogetter
Last active March 20, 2022 09:19
Show Gist options
  • Save Gogetter/e7d93c306a19fe1070efcb6c3f21b169 to your computer and use it in GitHub Desktop.
Save Gogetter/e7d93c306a19fe1070efcb6c3f21b169 to your computer and use it in GitHub Desktop.
public class EmailData {
private final String recipient;
private final String subject;
private final String message;
private final Set<EmailAttachment> emailAttachments;
public EmailData() {
}
public String getRecipient() {
return recipient;
}
public void setRecipient(String recipient) {
this.recipient = recipient;
}
public String getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
// with toString, hashcode and equals overridden
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment