Class Email.EmailBuilder<C extends Email,B extends Email.EmailBuilder<C,B>>
java.lang.Object
com.totvs.tjf.communication.sdk.messages.AbstractMessage.AbstractMessageBuilder<C,B>
com.totvs.tjf.communication.sdk.messages.AbstractMessageWithAttachment.AbstractMessageWithAttachmentBuilder<C,B>
com.totvs.tjf.communication.sdk.messages.Email.EmailBuilder<C,B>
- Enclosing class:
Email
public abstract static class Email.EmailBuilder<C extends Email,B extends Email.EmailBuilder<C,B>>
extends AbstractMessageWithAttachment.AbstractMessageWithAttachmentBuilder<C,B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattachment
(EmailAttachment attachment) Deprecated, for removal: This API element is subject to removal in a future version.in favor of using the attachment's idattachment
(String type, String name, byte[] content, boolean inline) Deprecated, for removal: This API element is subject to removal in a future version.in favor of using the attachment's idattachment
(String type, String name, byte[] content, String contentId, boolean inline) Deprecated, for removal: This API element is subject to removal in a future version.in favor of using the attachment's idattachment
(String type, String name, String content, boolean inline) Deprecated, for removal: This API element is subject to removal in a future version.in favor of using the attachment's idattachment
(String id, String type, String name, byte[] content, String contentId, boolean inline) Deprecated, for removal: This API element is subject to removal in a future version.in favor of using the attachment's idattachment
(String type, String name, String content, String contentId, boolean inline) Deprecated, for removal: This API element is subject to removal in a future version.in favor of using the attachment's idDeprecated, for removal: This API element is subject to removal in a future version.in favor of using the attachment's idattachments
(Collection<EmailAttachment> emailAttachments) Deprecated, for removal: This API element is subject to removal in a future version.in favor of using the attachment's idabstract C
build()
emailAttachments
(List<EmailAttachment> emailAttachments) Deprecated.in favor of using the attachment's idrecipient
(EmailRecipientType type, String recipient) recipient
(EmailRecipientType type, String recipient, String name) recipient
(EmailRecipientType type, List<String> recipients) recipient
(EmailRecipientType type, Map<String, String> recipients) recipients
(List<EmailRecipient> recipients) protected abstract B
self()
senderName
(String senderName) toString()
Methods inherited from class com.totvs.tjf.communication.sdk.messages.AbstractMessageWithAttachment.AbstractMessageWithAttachmentBuilder
attachment, attachments
Methods inherited from class com.totvs.tjf.communication.sdk.messages.AbstractMessage.AbstractMessageBuilder
applicationId, content, date, fallback, id, param, param, params, templateId, tenantId
-
Constructor Details
-
EmailBuilder
public EmailBuilder()
-
-
Method Details
-
recipient
-
recipient
-
cc
-
cc
-
ccs
-
ccs
-
bcc
-
bcc
-
bccs
-
bccs
-
recipient
-
recipient
-
recipient
-
recipient
-
attachment
Deprecated, for removal: This API element is subject to removal in a future version.in favor of using the attachment's id -
attachment
@Deprecated(since="1.5.0-RELEASE", forRemoval=true) public B attachment(String id, String type, String name, String content, String contentId, boolean inline) Deprecated, for removal: This API element is subject to removal in a future version.in favor of using the attachment's id -
attachment
@Deprecated(since="1.5.0-RELEASE", forRemoval=true) public B attachment(String id, String type, String name, byte[] content, String contentId, boolean inline) Deprecated, for removal: This API element is subject to removal in a future version.in favor of using the attachment's id -
attachment
@Deprecated(since="1.5.0-RELEASE", forRemoval=true) public B attachment(String type, String name, String content, boolean inline) Deprecated, for removal: This API element is subject to removal in a future version.in favor of using the attachment's id -
attachment
@Deprecated(since="1.5.0-RELEASE", forRemoval=true) public B attachment(String type, String name, String content, String contentId, boolean inline) Deprecated, for removal: This API element is subject to removal in a future version.in favor of using the attachment's id -
attachment
@Deprecated(since="1.5.0-RELEASE", forRemoval=true) public B attachment(String type, String name, byte[] content, boolean inline) Deprecated, for removal: This API element is subject to removal in a future version.in favor of using the attachment's id -
attachment
@Deprecated(since="1.5.0-RELEASE", forRemoval=true) public B attachment(String type, String name, byte[] content, String contentId, boolean inline) Deprecated, for removal: This API element is subject to removal in a future version.in favor of using the attachment's id -
attachments
@Deprecated(since="1.5.0-RELEASE", forRemoval=true) public B attachments(Collection<EmailAttachment> emailAttachments) Deprecated, for removal: This API element is subject to removal in a future version.in favor of using the attachment's id -
recipients
- Returns:
this
.
-
subject
- Returns:
this
.
-
senderName
- Returns:
this
.
-
replyTo
- Returns:
this
.
-
from
- Returns:
this
.
-
fromName
- Returns:
this
.
-
emailAttachments
Deprecated.in favor of using the attachment's id- Returns:
this
.
-
self
- Specified by:
self
in classAbstractMessageWithAttachment.AbstractMessageWithAttachmentBuilder<C extends Email,
B extends Email.EmailBuilder<C, B>>
-
build
- Specified by:
build
in classAbstractMessageWithAttachment.AbstractMessageWithAttachmentBuilder<C extends Email,
B extends Email.EmailBuilder<C, B>>
-
toString
- Overrides:
toString
in classAbstractMessageWithAttachment.AbstractMessageWithAttachmentBuilder<C extends Email,
B extends Email.EmailBuilder<C, B>>
-