@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class SendEmailOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SendEmailOptions.CustomTypeAdapterFactory |
static class |
SendEmailOptions.SendStrategyEnum
How an email should be sent based on its recipients
|
static class |
SendEmailOptions.ValidateEmailAddressesEnum
Validate recipient email addresses before sending
|
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_ADD_TRACKING_PIXEL |
static String |
SERIALIZED_NAME_ATTACHMENTS |
static String |
SERIALIZED_NAME_BCC |
static String |
SERIALIZED_NAME_BODY |
static String |
SERIALIZED_NAME_CC |
static String |
SERIALIZED_NAME_CHARSET |
static String |
SERIALIZED_NAME_FILTER_BOUNCED_RECIPIENTS |
static String |
SERIALIZED_NAME_FROM |
static String |
SERIALIZED_NAME_HTML |
static String |
SERIALIZED_NAME_IS_H_T_M_L |
static String |
SERIALIZED_NAME_REPLY_TO |
static String |
SERIALIZED_NAME_SEND_STRATEGY |
static String |
SERIALIZED_NAME_SUBJECT |
static String |
SERIALIZED_NAME_TEMPLATE |
static String |
SERIALIZED_NAME_TEMPLATE_VARIABLES |
static String |
SERIALIZED_NAME_TO |
static String |
SERIALIZED_NAME_TO_CONTACTS |
static String |
SERIALIZED_NAME_TO_GROUP |
static String |
SERIALIZED_NAME_USE_INBOX_NAME |
static String |
SERIALIZED_NAME_VALIDATE_EMAIL_ADDRESSES |
Constructor and Description |
---|
SendEmailOptions() |
Modifier and Type | Method and Description |
---|---|
SendEmailOptions |
addAttachmentsItem(String attachmentsItem) |
SendEmailOptions |
addBccItem(String bccItem) |
SendEmailOptions |
addCcItem(String ccItem) |
SendEmailOptions |
addToContactsItem(UUID toContactsItem) |
SendEmailOptions |
addToItem(String toItem) |
SendEmailOptions |
addTrackingPixel(Boolean addTrackingPixel) |
SendEmailOptions |
attachments(List<String> attachments) |
SendEmailOptions |
bcc(List<String> bcc) |
SendEmailOptions |
body(String body) |
SendEmailOptions |
cc(List<String> cc) |
SendEmailOptions |
charset(String charset) |
boolean |
equals(Object o) |
SendEmailOptions |
filterBouncedRecipients(Boolean filterBouncedRecipients) |
SendEmailOptions |
from(String from) |
static SendEmailOptions |
fromJson(String jsonString)
Create an instance of SendEmailOptions given an JSON string
|
Boolean |
getAddTrackingPixel()
Add tracking pixel to email
|
List<String> |
getAttachments()
Optional list of attachment IDs to send with this email.
|
List<String> |
getBcc()
Optional list of bcc destination email addresses
|
String |
getBody()
Optional contents of email.
|
List<String> |
getCc()
Optional list of cc destination email addresses
|
String |
getCharset()
Optional charset
|
Boolean |
getFilterBouncedRecipients()
Filter recipients to remove any bounced recipients from to, bcc, and cc before sending
|
String |
getFrom()
Optional from address.
|
Boolean |
getHtml()
Optional HTML flag to indicate that contents is HTML.
|
Boolean |
getIsHTML()
Optional HTML flag.
|
String |
getReplyTo()
Optional replyTo header
|
SendEmailOptions.SendStrategyEnum |
getSendStrategy()
How an email should be sent based on its recipients
|
String |
getSubject()
Optional email subject line
|
UUID |
getTemplate()
Optional template ID to use for body.
|
Map<String,Object> |
getTemplateVariables()
Optional map of template variables.
|
List<String> |
getTo()
List of destination email addresses.
|
List<UUID> |
getToContacts()
Optional list of contact IDs to send email to.
|
UUID |
getToGroup()
Optional contact group ID to send email to.
|
Boolean |
getUseInboxName()
Use name of inbox as sender email address name.
|
SendEmailOptions.ValidateEmailAddressesEnum |
getValidateEmailAddresses()
Validate recipient email addresses before sending
|
int |
hashCode() |
SendEmailOptions |
html(Boolean html) |
SendEmailOptions |
isHTML(Boolean isHTML) |
SendEmailOptions |
putTemplateVariablesItem(String key,
Object templateVariablesItem) |
SendEmailOptions |
replyTo(String replyTo) |
SendEmailOptions |
sendStrategy(SendEmailOptions.SendStrategyEnum sendStrategy) |
void |
setAddTrackingPixel(Boolean addTrackingPixel) |
void |
setAttachments(List<String> attachments) |
void |
setBcc(List<String> bcc) |
void |
setBody(String body) |
void |
setCc(List<String> cc) |
void |
setCharset(String charset) |
void |
setFilterBouncedRecipients(Boolean filterBouncedRecipients) |
void |
setFrom(String from) |
void |
setHtml(Boolean html) |
void |
setIsHTML(Boolean isHTML) |
void |
setReplyTo(String replyTo) |
void |
setSendStrategy(SendEmailOptions.SendStrategyEnum sendStrategy) |
void |
setSubject(String subject) |
void |
setTemplate(UUID template) |
void |
setTemplateVariables(Map<String,Object> templateVariables) |
void |
setTo(List<String> to) |
void |
setToContacts(List<UUID> toContacts) |
void |
setToGroup(UUID toGroup) |
void |
setUseInboxName(Boolean useInboxName) |
void |
setValidateEmailAddresses(SendEmailOptions.ValidateEmailAddressesEnum validateEmailAddresses) |
SendEmailOptions |
subject(String subject) |
SendEmailOptions |
template(UUID template) |
SendEmailOptions |
templateVariables(Map<String,Object> templateVariables) |
SendEmailOptions |
to(List<String> to) |
SendEmailOptions |
toContacts(List<UUID> toContacts) |
SendEmailOptions |
toGroup(UUID toGroup) |
String |
toJson()
Convert an instance of SendEmailOptions to an JSON string
|
String |
toString() |
SendEmailOptions |
useInboxName(Boolean useInboxName) |
SendEmailOptions |
validateEmailAddresses(SendEmailOptions.ValidateEmailAddressesEnum validateEmailAddresses) |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public static final String SERIALIZED_NAME_TO_CONTACTS
public static final String SERIALIZED_NAME_TO_GROUP
public static final String SERIALIZED_NAME_TO
public static final String SERIALIZED_NAME_FROM
public static final String SERIALIZED_NAME_CC
public static final String SERIALIZED_NAME_BCC
public static final String SERIALIZED_NAME_SUBJECT
public static final String SERIALIZED_NAME_REPLY_TO
public static final String SERIALIZED_NAME_BODY
public static final String SERIALIZED_NAME_HTML
public static final String SERIALIZED_NAME_IS_H_T_M_L
public static final String SERIALIZED_NAME_CHARSET
public static final String SERIALIZED_NAME_ATTACHMENTS
public static final String SERIALIZED_NAME_TEMPLATE_VARIABLES
public static final String SERIALIZED_NAME_TEMPLATE
public static final String SERIALIZED_NAME_SEND_STRATEGY
public static final String SERIALIZED_NAME_USE_INBOX_NAME
public static final String SERIALIZED_NAME_ADD_TRACKING_PIXEL
public static final String SERIALIZED_NAME_FILTER_BOUNCED_RECIPIENTS
public static final String SERIALIZED_NAME_VALIDATE_EMAIL_ADDRESSES
public SendEmailOptions toContacts(List<UUID> toContacts)
public SendEmailOptions addToContactsItem(UUID toContactsItem)
@Nullable public List<UUID> getToContacts()
public SendEmailOptions toGroup(UUID toGroup)
@Nullable public UUID getToGroup()
public void setToGroup(UUID toGroup)
public SendEmailOptions to(List<String> to)
public SendEmailOptions addToItem(String toItem)
@Nullable public List<String> getTo()
public SendEmailOptions from(String from)
@Nullable public String getFrom()
public void setFrom(String from)
public SendEmailOptions cc(List<String> cc)
public SendEmailOptions addCcItem(String ccItem)
@Nullable public List<String> getCc()
public SendEmailOptions bcc(List<String> bcc)
public SendEmailOptions addBccItem(String bccItem)
@Nullable public List<String> getBcc()
public SendEmailOptions subject(String subject)
public void setSubject(String subject)
public SendEmailOptions replyTo(String replyTo)
public void setReplyTo(String replyTo)
public SendEmailOptions body(String body)
@Nullable public String getBody()
public void setBody(String body)
public SendEmailOptions html(Boolean html)
@Nullable public Boolean getHtml()
public void setHtml(Boolean html)
public SendEmailOptions isHTML(Boolean isHTML)
@Nullable public Boolean getIsHTML()
public void setIsHTML(Boolean isHTML)
public SendEmailOptions charset(String charset)
public void setCharset(String charset)
public SendEmailOptions attachments(List<String> attachments)
public SendEmailOptions addAttachmentsItem(String attachmentsItem)
@Nullable public List<String> getAttachments()
public SendEmailOptions templateVariables(Map<String,Object> templateVariables)
public SendEmailOptions putTemplateVariablesItem(String key, Object templateVariablesItem)
@Nullable public Map<String,Object> getTemplateVariables()
public SendEmailOptions template(UUID template)
@Nullable public UUID getTemplate()
public void setTemplate(UUID template)
public SendEmailOptions sendStrategy(SendEmailOptions.SendStrategyEnum sendStrategy)
@Nullable public SendEmailOptions.SendStrategyEnum getSendStrategy()
public void setSendStrategy(SendEmailOptions.SendStrategyEnum sendStrategy)
public SendEmailOptions useInboxName(Boolean useInboxName)
@Nullable public Boolean getUseInboxName()
public void setUseInboxName(Boolean useInboxName)
public SendEmailOptions addTrackingPixel(Boolean addTrackingPixel)
@Nullable public Boolean getAddTrackingPixel()
public void setAddTrackingPixel(Boolean addTrackingPixel)
public SendEmailOptions filterBouncedRecipients(Boolean filterBouncedRecipients)
@Nullable public Boolean getFilterBouncedRecipients()
public void setFilterBouncedRecipients(Boolean filterBouncedRecipients)
public SendEmailOptions validateEmailAddresses(SendEmailOptions.ValidateEmailAddressesEnum validateEmailAddresses)
@Nullable public SendEmailOptions.ValidateEmailAddressesEnum getValidateEmailAddresses()
public void setValidateEmailAddresses(SendEmailOptions.ValidateEmailAddressesEnum validateEmailAddresses)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to SendEmailOptionspublic static SendEmailOptions fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to SendEmailOptionspublic String toJson()
Copyright © 2023. All rights reserved.