public static final class EmailSettings.Builder
extends java.lang.Object
EmailSettings
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
EmailSettings |
build()
Builds the configured instance.
|
EmailSettings.Builder |
from(java.lang.String from)
Sets the value of
EmailSettings.getFrom() |
EmailSettings.Builder |
replyTo(java.lang.String replyTo)
Sets the value of
EmailSettings.getReplyTo() |
public EmailSettings.Builder from(java.lang.String from)
EmailSettings.getFrom()
from
- The 'from' address on the emails received by the user.this
public EmailSettings.Builder replyTo(java.lang.String replyTo)
EmailSettings.getReplyTo()
replyTo
- The 'replyTo' address on the emails received by the user as defined by IETF RFC-5322.
When set, most email clients recognize to change 'to' line to this address when a reply is drafted.this
public EmailSettings build()
EmailSettings
java.lang.NullPointerException
- if any required attribute was not provided