public static class SubmitEmailDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SubmitEmailDetails.Builder |
bodyHtml(String bodyHtml)
HTML body content in UTF-8.
|
SubmitEmailDetails.Builder |
bodyText(String bodyText)
Text body content.
|
SubmitEmailDetails |
build() |
SubmitEmailDetails.Builder |
copy(SubmitEmailDetails model) |
SubmitEmailDetails.Builder |
headerFields(Map<String,String> headerFields)
The header used by the customer for the email sent.
|
SubmitEmailDetails.Builder |
messageId(String messageId)
The unique ID for the email’s Message-ID header used for service log correlation.
|
SubmitEmailDetails.Builder |
recipients(Recipients recipients) |
SubmitEmailDetails.Builder |
replyTo(List<EmailAddress> replyTo)
The email address for the recipient to reply to.
|
SubmitEmailDetails.Builder |
sender(Sender sender) |
SubmitEmailDetails.Builder |
subject(String subject)
A short summary of the content, which will appear in the recipient’s inbox.
|
public SubmitEmailDetails.Builder messageId(String messageId)
The unique ID for the email’s Message-ID header used for service log correlation. The submission will return an error if the syntax is not a valid RFC 5322 Message-ID. This will be generated if not provided. Example: sdiofu234qwermls24fd@mail.example.com
messageId
- the value to setpublic SubmitEmailDetails.Builder sender(Sender sender)
public SubmitEmailDetails.Builder recipients(Recipients recipients)
public SubmitEmailDetails.Builder subject(String subject)
A short summary of the content, which will appear in the recipient’s inbox. UTF-8 supported RFC 2047.
subject
- the value to setpublic SubmitEmailDetails.Builder bodyHtml(String bodyHtml)
HTML body content in UTF-8. NOTE: Even though bodytext and bodyhtml are both optional, at least one of them must be provided.
bodyHtml
- the value to setpublic SubmitEmailDetails.Builder bodyText(String bodyText)
Text body content. NOTE: Even though bodytext and bodyhtml are both optional, at least one of them must be provided.
bodyText
- the value to setpublic SubmitEmailDetails.Builder replyTo(List<EmailAddress> replyTo)
The email address for the recipient to reply to. If left blank, defaults to the sender address.
replyTo
- the value to setpublic SubmitEmailDetails.Builder headerFields(Map<String,String> headerFields)
The header used by the customer for the email sent. Reserved headers are not allowed e.g
“subject”, “from”, and “to” etc. Example: {"bar-key": "value"}
headerFields
- the value to setpublic SubmitEmailDetails build()
public SubmitEmailDetails.Builder copy(SubmitEmailDetails model)
Copyright © 2016–2024. All rights reserved.