public class EmailDto extends Object
Constructor and Description |
---|
EmailDto() |
EmailDto(List<AlternateView> alternateViews,
List<Attachment> attachments,
List<MailAddress> bcc,
String body,
String bodyEncoding,
String bodyType,
List<MailAddress> cc,
Date date,
List<String> deliveryNotificationOptions,
MailAddress from,
Map<String,String> headers,
String htmlBody,
String htmlBodyText,
Boolean isBodyHtml,
Boolean isDraft,
Boolean isEncrypted,
Boolean isSigned,
List<LinkedResource> linkedResources,
String messageId,
Boolean originalIsTnef,
String preferredTextEncoding,
String priority,
List<MailAddress> readReceiptTo,
List<MailAddress> replyToList,
MailAddress reversePath,
MailAddress sender,
String sensitivity,
String subject,
String subjectEncoding,
Long timeZoneOffset,
List<MailAddress> to,
String xMailer)
Initializes a new instance of the EmailDto
|
Modifier and Type | Method and Description |
---|---|
EmailDto |
addAlternateViewsItem(AlternateView alternateViewsItem)
Add an item to alternateViews and return this.
|
EmailDto |
addAttachmentsItem(Attachment attachmentsItem)
Add an item to attachments and return this.
|
EmailDto |
addBccItem(MailAddress bccItem)
Add an item to bcc and return this.
|
EmailDto |
addCcItem(MailAddress ccItem)
Add an item to cc and return this.
|
EmailDto |
addDeliveryNotificationOptionsItem(String deliveryNotificationOptionsItem)
Add an item to deliveryNotificationOptions and return this.
|
EmailDto |
addLinkedResourcesItem(LinkedResource linkedResourcesItem)
Add an item to linkedResources and return this.
|
EmailDto |
addReadReceiptToItem(MailAddress readReceiptToItem)
Add an item to readReceiptTo and return this.
|
EmailDto |
addReplyToListItem(MailAddress replyToListItem)
Add an item to replyToList and return this.
|
EmailDto |
addToItem(MailAddress toItem)
Add an item to to and return this.
|
EmailDto |
alternateViews(List<AlternateView> alternateViews)
Set alternateViews and return this.
|
EmailDto |
attachments(List<Attachment> attachments)
Set attachments and return this.
|
EmailDto |
bcc(List<MailAddress> bcc)
Set bcc and return this.
|
EmailDto |
body(String body)
Set body and return this.
|
EmailDto |
bodyEncoding(String bodyEncoding)
Set bodyEncoding and return this.
|
EmailDto |
bodyType(String bodyType)
Set bodyType and return this.
|
EmailDto |
cc(List<MailAddress> cc)
Set cc and return this.
|
EmailDto |
date(Date date)
Set date and return this.
|
EmailDto |
deliveryNotificationOptions(List<String> deliveryNotificationOptions)
Set deliveryNotificationOptions and return this.
|
boolean |
equals(Object o) |
EmailDto |
from(MailAddress from)
Set from and return this.
|
List<AlternateView> |
getAlternateViews()
Collection of alternate views of message.
|
List<Attachment> |
getAttachments()
Email message attachments.
|
List<MailAddress> |
getBcc()
BCC recipients.
|
String |
getBody()
Email message body as plain text.
|
String |
getBodyEncoding()
Body encoding.
|
String |
getBodyType()
The content type of message body.
|
List<MailAddress> |
getCc()
CC recipients.
|
Date |
getDate()
Message date.
|
List<String> |
getDeliveryNotificationOptions()
Delivery notifications.
|
MailAddress |
getFrom()
From address.
|
Map<String,String> |
getHeaders()
Document headers.
|
String |
getHtmlBody()
HTML body.
|
String |
getHtmlBodyText()
Html body as plain text.
|
List<LinkedResource> |
getLinkedResources()
Linked resources of message.
|
String |
getMessageId()
Message id.
|
String |
getPreferredTextEncoding()
Preferred encoding.
|
String |
getPriority()
Email priority status.
|
List<MailAddress> |
getReadReceiptTo()
Read receipt addresses.
|
List<MailAddress> |
getReplyToList()
The list of addresses to reply to for the mail message.
|
MailAddress |
getReversePath()
ReversePath address.
|
MailAddress |
getSender()
Sender address.
|
String |
getSensitivity()
Specifies the sensitivity of a MailMessage.
|
String |
getSubject()
Message subject.
|
String |
getSubjectEncoding()
Subject encoding.
|
Long |
getTimeZoneOffset()
Coordinated Universal Time (UTC) offset for the message dates.
|
List<MailAddress> |
getTo()
The address collection that contains the recipients of message.
|
String |
getXMailer()
The X-Mailer the software that created the e-mail message.
|
int |
hashCode() |
EmailDto |
headers(Map<String,String> headers)
Set headers and return this.
|
EmailDto |
htmlBody(String htmlBody)
Set htmlBody and return this.
|
EmailDto |
htmlBodyText(String htmlBodyText)
Set htmlBodyText and return this.
|
EmailDto |
isBodyHtml(Boolean isBodyHtml)
Set isBodyHtml and return this.
|
EmailDto |
isDraft(Boolean isDraft)
Set isDraft and return this.
|
EmailDto |
isEncrypted(Boolean isEncrypted)
Set isEncrypted and return this.
|
Boolean |
isIsBodyHtml()
Indicates whether the message body is in Html.
|
Boolean |
isIsDraft()
Indicates whether or not a message has been sent.
|
Boolean |
isIsEncrypted()
Indicates whether the message is encrypted.
|
Boolean |
isIsSigned()
Indicates whether the message is signed.
|
Boolean |
isOriginalIsTnef()
Indicates whether original EML message is in TNEF format.
|
EmailDto |
isSigned(Boolean isSigned)
Set isSigned and return this.
|
EmailDto |
linkedResources(List<LinkedResource> linkedResources)
Set linkedResources and return this.
|
EmailDto |
messageId(String messageId)
Set messageId and return this.
|
EmailDto |
originalIsTnef(Boolean originalIsTnef)
Set originalIsTnef and return this.
|
EmailDto |
preferredTextEncoding(String preferredTextEncoding)
Set preferredTextEncoding and return this.
|
EmailDto |
priority(String priority)
Set priority and return this.
|
EmailDto |
putHeadersItem(String key,
String headersItem)
Add an item to headers and return this.
|
EmailDto |
readReceiptTo(List<MailAddress> readReceiptTo)
Set readReceiptTo and return this.
|
EmailDto |
replyToList(List<MailAddress> replyToList)
Set replyToList and return this.
|
EmailDto |
reversePath(MailAddress reversePath)
Set reversePath and return this.
|
EmailDto |
sender(MailAddress sender)
Set sender and return this.
|
EmailDto |
sensitivity(String sensitivity)
Set sensitivity and return this.
|
void |
setAlternateViews(List<AlternateView> alternateViews)
Set alternateViews.
|
void |
setAttachments(List<Attachment> attachments)
Set attachments.
|
void |
setBcc(List<MailAddress> bcc)
Set bcc.
|
void |
setBody(String body)
Set body.
|
void |
setBodyEncoding(String bodyEncoding)
Set bodyEncoding.
|
void |
setBodyType(String bodyType)
Set bodyType.
|
void |
setCc(List<MailAddress> cc)
Set cc.
|
void |
setDate(Date date)
Set date.
|
void |
setDeliveryNotificationOptions(List<String> deliveryNotificationOptions)
Set deliveryNotificationOptions.
|
void |
setFrom(MailAddress from)
Set from.
|
void |
setHeaders(Map<String,String> headers)
Set headers.
|
void |
setHtmlBody(String htmlBody)
Set htmlBody.
|
void |
setHtmlBodyText(String htmlBodyText)
Set htmlBodyText.
|
void |
setIsBodyHtml(Boolean isBodyHtml)
Set isBodyHtml.
|
void |
setIsDraft(Boolean isDraft)
Set isDraft.
|
void |
setIsEncrypted(Boolean isEncrypted)
Set isEncrypted.
|
void |
setIsSigned(Boolean isSigned)
Set isSigned.
|
void |
setLinkedResources(List<LinkedResource> linkedResources)
Set linkedResources.
|
void |
setMessageId(String messageId)
Set messageId.
|
void |
setOriginalIsTnef(Boolean originalIsTnef)
Set originalIsTnef.
|
void |
setPreferredTextEncoding(String preferredTextEncoding)
Set preferredTextEncoding.
|
void |
setPriority(String priority)
Set priority.
|
void |
setReadReceiptTo(List<MailAddress> readReceiptTo)
Set readReceiptTo.
|
void |
setReplyToList(List<MailAddress> replyToList)
Set replyToList.
|
void |
setReversePath(MailAddress reversePath)
Set reversePath.
|
void |
setSender(MailAddress sender)
Set sender.
|
void |
setSensitivity(String sensitivity)
Set sensitivity.
|
void |
setSubject(String subject)
Set subject.
|
void |
setSubjectEncoding(String subjectEncoding)
Set subjectEncoding.
|
void |
setTimeZoneOffset(Long timeZoneOffset)
Set timeZoneOffset.
|
void |
setTo(List<MailAddress> to)
Set to.
|
void |
setXMailer(String xMailer)
Set xMailer.
|
EmailDto |
subject(String subject)
Set subject and return this.
|
EmailDto |
subjectEncoding(String subjectEncoding)
Set subjectEncoding and return this.
|
EmailDto |
timeZoneOffset(Long timeZoneOffset)
Set timeZoneOffset and return this.
|
EmailDto |
to(List<MailAddress> to)
Set to and return this.
|
String |
toString() |
EmailDto |
xMailer(String xMailer)
Set xMailer and return this.
|
public EmailDto()
public EmailDto(List<AlternateView> alternateViews, List<Attachment> attachments, List<MailAddress> bcc, String body, String bodyEncoding, String bodyType, List<MailAddress> cc, Date date, List<String> deliveryNotificationOptions, MailAddress from, Map<String,String> headers, String htmlBody, String htmlBodyText, Boolean isBodyHtml, Boolean isDraft, Boolean isEncrypted, Boolean isSigned, List<LinkedResource> linkedResources, String messageId, Boolean originalIsTnef, String preferredTextEncoding, String priority, List<MailAddress> readReceiptTo, List<MailAddress> replyToList, MailAddress reversePath, MailAddress sender, String sensitivity, String subject, String subjectEncoding, Long timeZoneOffset, List<MailAddress> to, String xMailer)
alternateViews
- Collection of alternate views of message.attachments
- Email message attachments.bcc
- BCC recipients.body
- Email message body as plain text.bodyEncoding
- Body encoding.bodyType
- The content type of message body. Enum, available values: PlainText, Html, Rtfcc
- CC recipients.date
- Message date.deliveryNotificationOptions
- Delivery notifications. Items: Email delivery notification options. Enum, available values: Delay, Never, None, OnFailure, OnSuccessfrom
- From address.headers
- Document headers.htmlBody
- HTML body.htmlBodyText
- Html body as plain text. Read only.isBodyHtml
- Indicates whether the message body is in Html.isDraft
- Indicates whether or not a message has been sent.isEncrypted
- Indicates whether the message is encrypted. Read only.isSigned
- Indicates whether the message is signed. Read only.linkedResources
- Linked resources of message.messageId
- Message id.originalIsTnef
- Indicates whether original EML message is in TNEF format. Read only.preferredTextEncoding
- Preferred encoding.priority
- Email priority status. Enum, available values: High, Low, NormalreadReceiptTo
- Read receipt addresses.replyToList
- The list of addresses to reply to for the mail message.reversePath
- ReversePath address.sender
- Sender address.sensitivity
- Specifies the sensitivity of a MailMessage. Enum, available values: None, Normal, Personal, Private, CompanyConfidentialsubject
- Message subject.subjectEncoding
- Subject encoding.timeZoneOffset
- Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the local time and UTC represented as count of ticks (10 000 per millisecond).to
- The address collection that contains the recipients of message.xMailer
- The X-Mailer the software that created the e-mail message.public EmailDto alternateViews(List<AlternateView> alternateViews)
alternateViews
- Collection of alternate views of message.public EmailDto addAlternateViewsItem(AlternateView alternateViewsItem)
alternateViewsItem
- An item of: Collection of alternate views of message.public List<AlternateView> getAlternateViews()
public void setAlternateViews(List<AlternateView> alternateViews)
alternateViews
- Collection of alternate views of message.public EmailDto attachments(List<Attachment> attachments)
attachments
- Email message attachments.public EmailDto addAttachmentsItem(Attachment attachmentsItem)
attachmentsItem
- An item of: Email message attachments.public List<Attachment> getAttachments()
public void setAttachments(List<Attachment> attachments)
attachments
- Email message attachments.public EmailDto bcc(List<MailAddress> bcc)
bcc
- BCC recipients.public EmailDto addBccItem(MailAddress bccItem)
bccItem
- An item of: BCC recipients.public List<MailAddress> getBcc()
public void setBcc(List<MailAddress> bcc)
bcc
- BCC recipients.public EmailDto body(String body)
body
- Email message body as plain text.public String getBody()
public void setBody(String body)
body
- Email message body as plain text.public EmailDto bodyEncoding(String bodyEncoding)
bodyEncoding
- Body encoding.public String getBodyEncoding()
public void setBodyEncoding(String bodyEncoding)
bodyEncoding
- Body encoding.public EmailDto bodyType(String bodyType)
bodyType
- The content type of message body. Enum, available values: PlainText, Html, Rtfpublic String getBodyType()
public void setBodyType(String bodyType)
bodyType
- The content type of message body. Enum, available values: PlainText, Html, Rtfpublic EmailDto cc(List<MailAddress> cc)
cc
- CC recipients.public EmailDto addCcItem(MailAddress ccItem)
ccItem
- An item of: CC recipients.public List<MailAddress> getCc()
public void setCc(List<MailAddress> cc)
cc
- CC recipients.public EmailDto date(Date date)
date
- Message date.public Date getDate()
public void setDate(Date date)
date
- Message date.public EmailDto deliveryNotificationOptions(List<String> deliveryNotificationOptions)
deliveryNotificationOptions
- Delivery notifications. Items: Email delivery notification options. Enum, available values: Delay, Never, None, OnFailure, OnSuccesspublic EmailDto addDeliveryNotificationOptionsItem(String deliveryNotificationOptionsItem)
deliveryNotificationOptionsItem
- An item of: Delivery notifications.public List<String> getDeliveryNotificationOptions()
public void setDeliveryNotificationOptions(List<String> deliveryNotificationOptions)
deliveryNotificationOptions
- Delivery notifications. Items: Email delivery notification options. Enum, available values: Delay, Never, None, OnFailure, OnSuccesspublic EmailDto from(MailAddress from)
from
- From address.public MailAddress getFrom()
public void setFrom(MailAddress from)
from
- From address.public EmailDto headers(Map<String,String> headers)
headers
- Document headers.public EmailDto putHeadersItem(String key, String headersItem)
key
- An item keyheadersItem
- An item valuepublic void setHeaders(Map<String,String> headers)
headers
- Document headers.public EmailDto htmlBody(String htmlBody)
htmlBody
- HTML body.public String getHtmlBody()
public void setHtmlBody(String htmlBody)
htmlBody
- HTML body.public EmailDto htmlBodyText(String htmlBodyText)
htmlBodyText
- Html body as plain text. Read only.public String getHtmlBodyText()
public void setHtmlBodyText(String htmlBodyText)
htmlBodyText
- Html body as plain text. Read only.public EmailDto isBodyHtml(Boolean isBodyHtml)
isBodyHtml
- Indicates whether the message body is in Html.public Boolean isIsBodyHtml()
public void setIsBodyHtml(Boolean isBodyHtml)
isBodyHtml
- Indicates whether the message body is in Html.public EmailDto isDraft(Boolean isDraft)
isDraft
- Indicates whether or not a message has been sent.public Boolean isIsDraft()
public void setIsDraft(Boolean isDraft)
isDraft
- Indicates whether or not a message has been sent.public EmailDto isEncrypted(Boolean isEncrypted)
isEncrypted
- Indicates whether the message is encrypted. Read only.public Boolean isIsEncrypted()
public void setIsEncrypted(Boolean isEncrypted)
isEncrypted
- Indicates whether the message is encrypted. Read only.public EmailDto isSigned(Boolean isSigned)
isSigned
- Indicates whether the message is signed. Read only.public Boolean isIsSigned()
public void setIsSigned(Boolean isSigned)
isSigned
- Indicates whether the message is signed. Read only.public EmailDto linkedResources(List<LinkedResource> linkedResources)
linkedResources
- Linked resources of message.public EmailDto addLinkedResourcesItem(LinkedResource linkedResourcesItem)
linkedResourcesItem
- An item of: Linked resources of message.public List<LinkedResource> getLinkedResources()
public void setLinkedResources(List<LinkedResource> linkedResources)
linkedResources
- Linked resources of message.public EmailDto messageId(String messageId)
messageId
- Message id.public String getMessageId()
public void setMessageId(String messageId)
messageId
- Message id.public EmailDto originalIsTnef(Boolean originalIsTnef)
originalIsTnef
- Indicates whether original EML message is in TNEF format. Read only.public Boolean isOriginalIsTnef()
public void setOriginalIsTnef(Boolean originalIsTnef)
originalIsTnef
- Indicates whether original EML message is in TNEF format. Read only.public EmailDto preferredTextEncoding(String preferredTextEncoding)
preferredTextEncoding
- Preferred encoding.public String getPreferredTextEncoding()
public void setPreferredTextEncoding(String preferredTextEncoding)
preferredTextEncoding
- Preferred encoding.public EmailDto priority(String priority)
priority
- Email priority status. Enum, available values: High, Low, Normalpublic String getPriority()
public void setPriority(String priority)
priority
- Email priority status. Enum, available values: High, Low, Normalpublic EmailDto readReceiptTo(List<MailAddress> readReceiptTo)
readReceiptTo
- Read receipt addresses.public EmailDto addReadReceiptToItem(MailAddress readReceiptToItem)
readReceiptToItem
- An item of: Read receipt addresses.public List<MailAddress> getReadReceiptTo()
public void setReadReceiptTo(List<MailAddress> readReceiptTo)
readReceiptTo
- Read receipt addresses.public EmailDto replyToList(List<MailAddress> replyToList)
replyToList
- The list of addresses to reply to for the mail message.public EmailDto addReplyToListItem(MailAddress replyToListItem)
replyToListItem
- An item of: The list of addresses to reply to for the mail message.public List<MailAddress> getReplyToList()
public void setReplyToList(List<MailAddress> replyToList)
replyToList
- The list of addresses to reply to for the mail message.public EmailDto reversePath(MailAddress reversePath)
reversePath
- ReversePath address.public MailAddress getReversePath()
public void setReversePath(MailAddress reversePath)
reversePath
- ReversePath address.public EmailDto sender(MailAddress sender)
sender
- Sender address.public MailAddress getSender()
public void setSender(MailAddress sender)
sender
- Sender address.public EmailDto sensitivity(String sensitivity)
sensitivity
- Specifies the sensitivity of a MailMessage. Enum, available values: None, Normal, Personal, Private, CompanyConfidentialpublic String getSensitivity()
public void setSensitivity(String sensitivity)
sensitivity
- Specifies the sensitivity of a MailMessage. Enum, available values: None, Normal, Personal, Private, CompanyConfidentialpublic EmailDto subject(String subject)
subject
- Message subject.public String getSubject()
public void setSubject(String subject)
subject
- Message subject.public EmailDto subjectEncoding(String subjectEncoding)
subjectEncoding
- Subject encoding.public String getSubjectEncoding()
public void setSubjectEncoding(String subjectEncoding)
subjectEncoding
- Subject encoding.public EmailDto timeZoneOffset(Long timeZoneOffset)
timeZoneOffset
- Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the local time and UTC represented as count of ticks (10 000 per millisecond).public Long getTimeZoneOffset()
public void setTimeZoneOffset(Long timeZoneOffset)
timeZoneOffset
- Coordinated Universal Time (UTC) offset for the message dates. This property defines the time zone difference, between the local time and UTC represented as count of ticks (10 000 per millisecond).public EmailDto to(List<MailAddress> to)
to
- The address collection that contains the recipients of message.public EmailDto addToItem(MailAddress toItem)
toItem
- An item of: The address collection that contains the recipients of message.public List<MailAddress> getTo()
public void setTo(List<MailAddress> to)
to
- The address collection that contains the recipients of message.public EmailDto xMailer(String xMailer)
xMailer
- The X-Mailer the software that created the e-mail message.public String getXMailer()
public void setXMailer(String xMailer)
xMailer
- The X-Mailer the software that created the e-mail message.Copyright © 2020. All rights reserved.