/** * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.seyren.core.util.email; public class Email { private String to; private String from; private String message; private String subject; public String getTo() { return to; } public void setTo(String to) { this.to = to; } public Email withTo(String to) { setTo(to); return this; } public String getFrom() { return from; } public void setFrom(String from) { this.from = from; } public Email withFrom(String from) { setFrom(from); return this; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public Email withMessage(String message) { setMessage(message); return this; } public String getSubject() { return subject; } public void setSubject(String subject) { this.subject = subject; } public Email withSubject(String subject) { setSubject(subject); return this; } }