Class Message
java.lang.Object
sendpost_java_sdk.Message
@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 Message
extends Object
Message
-
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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddToItem(MessageToInner toItem) booleanstatic MessageCreate an instance of Message given an JSON stringgetFrom()Object comprising name and email address of the senderKey-Value pair which are added to every email message being sent and also with webhooks triggered on events such as email delivered, open, click etc.HTML email content.getId()Unique ID for the message.IP Pool from which emails will go out.Text which appears on mobile right after email subject line.Object comprising name and email addresses to which email replies will go toStatus of the messageEmail subject line.UNIX epoch nano timestamp when message was submitted.Text email content.getTo()List of objects comprising name, email and customFields of the recipientsIndicates if email clicks need to be tracked.Indicates if email opens need to be tracked.inthashCode()putHeadersItem(String key, String headersItem) voidvoidsetHeaders(Map<String, String> headers) voidsetHtmlBody(String htmlBody) voidvoidvoidsetPreText(String preText) voidsetReplyTo(Person replyTo) voidvoidsetSubject(String subject) voidsetSubmittedAt(Integer submittedAt) voidsetTextBody(String textBody) voidsetTo(List<MessageToInner> to) voidsetTrackClicks(Boolean trackClicks) voidsetTrackOpens(Boolean trackOpens) submittedAt(Integer submittedAt) to(List<MessageToInner> to) toJson()Convert an instance of Message 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 found
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_SUBMITTED_AT
- See Also:
-
SERIALIZED_NAME_FROM
- See Also:
-
SERIALIZED_NAME_REPLY_TO
- See Also:
-
SERIALIZED_NAME_TO
- See Also:
-
SERIALIZED_NAME_HEADERS
- 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_IPPOOL
- See Also:
-
SERIALIZED_NAME_TRACK_OPENS
- See Also:
-
SERIALIZED_NAME_TRACK_CLICKS
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Message
public Message()
-
-
Method Details
-
id
-
getId
-
setId
-
submittedAt
-
getSubmittedAt
-
setSubmittedAt
-
from
-
getFrom
-
setFrom
-
replyTo
-
getReplyTo
-
setReplyTo
-
to
-
addToItem
-
getTo
List of objects comprising name, email and customFields of the recipients- Returns:
- to
-
setTo
-
headers
-
putHeadersItem
-
getHeaders
-
setHeaders
-
subject
-
getSubject
-
setSubject
-
preText
-
getPreText
-
setPreText
-
htmlBody
-
getHtmlBody
-
setHtmlBody
-
textBody
-
getTextBody
-
setTextBody
-
ippool
-
getIppool
-
setIppool
-
trackOpens
-
getTrackOpens
-
setTrackOpens
-
trackClicks
-
getTrackClicks
-
setTrackClicks
-
status
-
getStatus
-
setStatus
-
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 Message
-
fromJson
Create an instance of Message given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Message
- Throws:
IOException- if the JSON string is invalid with respect to Message
-
toJson
-