Class Email
java.lang.Object
com.totvs.tjf.communication.sdk.messages.AbstractMessage
com.totvs.tjf.communication.sdk.messages.AbstractMessageWithAttachment
com.totvs.tjf.communication.sdk.messages.Email
- All Implemented Interfaces:
Publisher
This class represents the default structure of an email.
- Author:
- Diego Nunes da Silveira
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Email.EmailBuilder<C extends Email,
B extends Email.EmailBuilder<C, B>> Nested classes/interfaces inherited from class com.totvs.tjf.communication.sdk.messages.AbstractMessageWithAttachment
AbstractMessageWithAttachment.AbstractMessageWithAttachmentBuilder<C extends AbstractMessageWithAttachment,
B extends AbstractMessageWithAttachment.AbstractMessageWithAttachmentBuilder<C, B>> Nested classes/interfaces inherited from class com.totvs.tjf.communication.sdk.messages.AbstractMessage
AbstractMessage.AbstractMessageBuilder<C extends AbstractMessage,
B extends AbstractMessage.AbstractMessageBuilder<C, B>> -
Field Summary
Fields inherited from class com.totvs.tjf.communication.sdk.messages.AbstractMessageWithAttachment
attachments
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
static Email.EmailBuilder
<?, ?> builder()
protected boolean
boolean
Deprecated.in favor of using the attachment's idgetFrom()
int
hashCode()
void
setAttachmentsByType
(Object attachment) void
setAttachmentsByType
(Collection<?> attachments) void
setFromName
(String fromName) void
setRecipient
(String recipient) void
setSenderName
(String senderName) void
toString()
Methods inherited from class com.totvs.tjf.communication.sdk.messages.AbstractMessageWithAttachment
getAttachments
Methods inherited from class com.totvs.tjf.communication.sdk.messages.AbstractMessage
getApplicationId, getContent, getDate, getFallback, getId, getParams, getTemplateId, getTenantId
-
Constructor Details
-
Email
protected Email() -
Email
-
-
Method Details
-
setRecipient
-
setTo
-
addCc
-
addCcs
-
addBcc
-
addBCcs
-
setAttachmentsByType
-
setAttachmentsByType
-
builder
-
getRecipients
-
getSubject
-
getSenderName
-
getReplyTo
-
getFrom
-
getFromName
-
getEmailAttachments
Deprecated.in favor of using the attachment's id -
setSenderName
-
setFromName
-
equals
- Overrides:
equals
in classAbstractMessageWithAttachment
-
canEqual
- Overrides:
canEqual
in classAbstractMessageWithAttachment
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractMessageWithAttachment
-
toString
- Overrides:
toString
in classAbstractMessageWithAttachment
-