Class EmailMessageObject
java.lang.Object
sendpost_java_sdk.EmailMessageObject
@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 EmailMessageObject
extends Object
EmailMessageObject
-
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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttachmentsItem(Attachment attachmentsItem) addGroupsItem(String groupsItem) attachments(List<Attachment> attachments) booleanfrom(EmailAddress from) static EmailMessageObjectCreate an instance of EmailMessageObject given an JSON stringGet ampBodyGet attachmentsgetFrom()Get fromGet groupsGet headersGet htmlBodyGet ippoolGet preTextGet replyToGet subjectGet textBodygetTo()Get toGet trackClicksGet trackOpensGet webhookEndpointinthashCode()putHeadersItem(String key, String headersItem) 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) voidsetTextBody(String textBody) voidvoidsetTrackClicks(Boolean trackClicks) voidsetTrackOpens(Boolean trackOpens) voidsetWebhookEndpoint(String webhookEndpoint) toJson()Convert an instance of EmailMessageObject 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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
EmailMessageObject
public EmailMessageObject()
-
-
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
-
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 EmailMessageObject
-
fromJson
Create an instance of EmailMessageObject given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of EmailMessageObject
- Throws:
IOException- if the JSON string is invalid with respect to EmailMessageObject
-
toJson
Convert an instance of EmailMessageObject to an JSON string- Returns:
- JSON string
-