Class EmailMessageWithTemplate
java.lang.Object
sendpost_java_sdk.EmailMessageWithTemplate
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-12-22T13:35:12.742682+05:30[Asia/Kolkata]",
comments="Generator version: 7.13.0")
public class EmailMessageWithTemplate
extends Object
EmailMessageWithTemplate
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttachmentsItem(Attachment attachmentsItem) addGroupsItem(String groupsItem) attachments(List<Attachment> attachments) booleanfrom(EmailAddress from) static EmailMessageWithTemplateCreate an instance of EmailMessageWithTemplate given an JSON stringGet ampBodyGet attachmentsgetFrom()Get fromGet groupsGet headersGet htmlBodyGet ippoolGet preTextGet replyToGet subjectGet templateTemplate ID for the email templateKey-Value pair of template variablesGet textBodygetTo()Get toGet trackClicksGet trackOpensGet webhookEndpointinthashCode()putHeadersItem(String key, String headersItem) putTemplateVariablesItem(String key, String templateVariablesItem) replyTo(EmailAddress replyTo) voidsetAmpBody(String ampBody) voidsetAttachments(List<Attachment> attachments) voidsetFrom(EmailAddress from) voidvoidsetHeaders(Map<String, String> headers) voidsetHtmlBody(String htmlBody) voidvoidsetPreText(String preText) voidsetReplyTo(EmailAddress replyTo) voidsetSubject(String subject) voidsetTemplate(String template) voidsetTemplateId(String templateId) voidsetTemplateVariables(Map<String, String> templateVariables) voidsetTextBody(String textBody) voidvoidsetTrackClicks(Boolean trackClicks) voidsetTrackOpens(Boolean trackOpens) voidsetWebhookEndpoint(String webhookEndpoint) templateId(String templateId) templateVariables(Map<String, String> templateVariables) toJson()Convert an instance of EmailMessageWithTemplate to an JSON stringtoString()trackClicks(Boolean trackClicks) trackOpens(Boolean trackOpens) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundwebhookEndpoint(String webhookEndpoint)
-
Field Details
-
SERIALIZED_NAME_FROM
- See Also:
-
SERIALIZED_NAME_REPLY_TO
- See Also:
-
SERIALIZED_NAME_TO
- See Also:
-
SERIALIZED_NAME_SUBJECT
- See Also:
-
SERIALIZED_NAME_PRE_TEXT
- See Also:
-
SERIALIZED_NAME_HTML_BODY
- See Also:
-
SERIALIZED_NAME_TEXT_BODY
- See Also:
-
SERIALIZED_NAME_AMP_BODY
- See Also:
-
SERIALIZED_NAME_IPPOOL
- See Also:
-
SERIALIZED_NAME_HEADERS
- See Also:
-
SERIALIZED_NAME_TRACK_OPENS
- See Also:
-
SERIALIZED_NAME_TRACK_CLICKS
- See Also:
-
SERIALIZED_NAME_GROUPS
- See Also:
-
SERIALIZED_NAME_ATTACHMENTS
- See Also:
-
SERIALIZED_NAME_WEBHOOK_ENDPOINT
- See Also:
-
SERIALIZED_NAME_TEMPLATE
- See Also:
-
SERIALIZED_NAME_TEMPLATE_ID
- See Also:
-
SERIALIZED_NAME_TEMPLATE_VARIABLES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
EmailMessageWithTemplate
public EmailMessageWithTemplate()
-
-
Method Details
-
from
-
getFrom
-
setFrom
-
replyTo
-
getReplyTo
-
setReplyTo
-
to
-
addToItem
-
getTo
-
setTo
-
subject
-
getSubject
-
setSubject
-
preText
-
getPreText
-
setPreText
-
htmlBody
-
getHtmlBody
-
setHtmlBody
-
textBody
-
getTextBody
-
setTextBody
-
ampBody
-
getAmpBody
-
setAmpBody
-
ippool
-
getIppool
-
setIppool
-
headers
-
putHeadersItem
-
getHeaders
-
setHeaders
-
trackOpens
-
getTrackOpens
-
setTrackOpens
-
trackClicks
-
getTrackClicks
-
setTrackClicks
-
groups
-
addGroupsItem
-
getGroups
-
setGroups
-
attachments
-
addAttachmentsItem
-
getAttachments
-
setAttachments
-
webhookEndpoint
-
getWebhookEndpoint
-
setWebhookEndpoint
-
template
-
getTemplate
-
setTemplate
-
templateId
-
getTemplateId
-
setTemplateId
-
templateVariables
-
putTemplateVariablesItem
-
getTemplateVariables
-
setTemplateVariables
-
equals
-
hashCode
-
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to EmailMessageWithTemplate
-
fromJson
Create an instance of EmailMessageWithTemplate given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of EmailMessageWithTemplate
- Throws:
IOException- if the JSON string is invalid with respect to EmailMessageWithTemplate
-
toJson
Convert an instance of EmailMessageWithTemplate to an JSON string- Returns:
- JSON string
-