Package google.registry.util
Interface EmailMessage.Builder
- Enclosing class:
EmailMessage
public static interface EmailMessage.Builder
Builder for
EmailMessage
.-
Method Summary
Modifier and TypeMethodDescriptiondefault EmailMessage.Builder
addBcc
(jakarta.mail.internet.InternetAddress bcc) default EmailMessage.Builder
addCc
(jakarta.mail.internet.InternetAddress cc) default EmailMessage.Builder
addRecipient
(jakarta.mail.internet.InternetAddress value) com.google.common.collect.ImmutableSet.Builder
<jakarta.mail.internet.InternetAddress> build()
com.google.common.collect.ImmutableSet.Builder
<jakarta.mail.internet.InternetAddress> com.google.common.collect.ImmutableSet.Builder
<jakarta.mail.internet.InternetAddress> setAttachment
(EmailMessage.Attachment attachment) setBccs
(Collection<jakarta.mail.internet.InternetAddress> bccs) setCcs
(Collection<jakarta.mail.internet.InternetAddress> ccs) setContentType
(com.google.common.net.MediaType contentType) setRecipients
(Collection<jakarta.mail.internet.InternetAddress> recipients) setReplyToEmailAddress
(jakarta.mail.internet.InternetAddress replyToEmailAddress) setReplyToEmailAddress
(Optional<jakarta.mail.internet.InternetAddress> replyToEmailAddress) setSubject
(String subject)
-
Method Details
-
setSubject
-
setBody
-
setRecipients
-
setReplyToEmailAddress
EmailMessage.Builder setReplyToEmailAddress(jakarta.mail.internet.InternetAddress replyToEmailAddress) -
setReplyToEmailAddress
EmailMessage.Builder setReplyToEmailAddress(Optional<jakarta.mail.internet.InternetAddress> replyToEmailAddress) -
setBccs
-
setCcs
-
setContentType
-
setAttachment
-
recipientsBuilder
com.google.common.collect.ImmutableSet.Builder<jakarta.mail.internet.InternetAddress> recipientsBuilder() -
bccsBuilder
com.google.common.collect.ImmutableSet.Builder<jakarta.mail.internet.InternetAddress> bccsBuilder() -
ccsBuilder
com.google.common.collect.ImmutableSet.Builder<jakarta.mail.internet.InternetAddress> ccsBuilder() -
addRecipient
-
addBcc
-
addCc
-
build
EmailMessage build()
-