@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class WebhookNewEmailPayload extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WebhookNewEmailPayload.CustomTypeAdapterFactory |
static class |
WebhookNewEmailPayload.EventNameEnum
Name of the event type webhook is being triggered for.
|
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_ATTACHMENT_META_DATAS |
static String |
SERIALIZED_NAME_BCC |
static String |
SERIALIZED_NAME_CC |
static String |
SERIALIZED_NAME_CREATED_AT |
static String |
SERIALIZED_NAME_DOMAIN_ID |
static String |
SERIALIZED_NAME_EMAIL_ID |
static String |
SERIALIZED_NAME_EVENT_NAME |
static String |
SERIALIZED_NAME_FROM |
static String |
SERIALIZED_NAME_INBOX_ID |
static String |
SERIALIZED_NAME_MESSAGE_ID |
static String |
SERIALIZED_NAME_SUBJECT |
static String |
SERIALIZED_NAME_TO |
static String |
SERIALIZED_NAME_WEBHOOK_ID |
static String |
SERIALIZED_NAME_WEBHOOK_NAME |
Constructor and Description |
---|
WebhookNewEmailPayload() |
Modifier and Type | Method and Description |
---|---|
WebhookNewEmailPayload |
addAttachmentMetaDatasItem(AttachmentMetaData attachmentMetaDatasItem) |
WebhookNewEmailPayload |
addBccItem(String bccItem) |
WebhookNewEmailPayload |
addCcItem(String ccItem) |
WebhookNewEmailPayload |
addToItem(String toItem) |
WebhookNewEmailPayload |
attachmentMetaDatas(List<AttachmentMetaData> attachmentMetaDatas) |
WebhookNewEmailPayload |
bcc(List<String> bcc) |
WebhookNewEmailPayload |
cc(List<String> cc) |
WebhookNewEmailPayload |
createdAt(OffsetDateTime createdAt) |
WebhookNewEmailPayload |
domainId(UUID domainId) |
WebhookNewEmailPayload |
emailId(UUID emailId) |
boolean |
equals(Object o) |
WebhookNewEmailPayload |
eventName(WebhookNewEmailPayload.EventNameEnum eventName) |
WebhookNewEmailPayload |
from(String from) |
static WebhookNewEmailPayload |
fromJson(String jsonString)
Create an instance of WebhookNewEmailPayload given an JSON string
|
List<AttachmentMetaData> |
getAttachmentMetaDatas()
List of attachment meta data objects if attachments present
|
List<String> |
getBcc()
List of `BCC` recipients email addresses that the email was addressed to.
|
List<String> |
getCc()
List of `CC` recipients email addresses that the email was addressed to.
|
OffsetDateTime |
getCreatedAt()
Date time of event creation
|
UUID |
getDomainId()
Id of the domain that received an email
|
UUID |
getEmailId()
ID of the email that was received.
|
WebhookNewEmailPayload.EventNameEnum |
getEventName()
Name of the event type webhook is being triggered for.
|
String |
getFrom()
Who the email was sent from.
|
UUID |
getInboxId()
Id of the inbox
|
String |
getMessageId()
Idempotent message ID.
|
String |
getSubject()
The subject line of the email message as specified by SMTP subject header
|
List<String> |
getTo()
List of `To` recipient email addresses that the email was addressed to.
|
UUID |
getWebhookId()
ID of webhook entity being triggered
|
String |
getWebhookName()
Name of the webhook being triggered
|
int |
hashCode() |
WebhookNewEmailPayload |
inboxId(UUID inboxId) |
WebhookNewEmailPayload |
messageId(String messageId) |
void |
setAttachmentMetaDatas(List<AttachmentMetaData> attachmentMetaDatas) |
void |
setBcc(List<String> bcc) |
void |
setCc(List<String> cc) |
void |
setCreatedAt(OffsetDateTime createdAt) |
void |
setDomainId(UUID domainId) |
void |
setEmailId(UUID emailId) |
void |
setEventName(WebhookNewEmailPayload.EventNameEnum eventName) |
void |
setFrom(String from) |
void |
setInboxId(UUID inboxId) |
void |
setMessageId(String messageId) |
void |
setSubject(String subject) |
void |
setTo(List<String> to) |
void |
setWebhookId(UUID webhookId) |
void |
setWebhookName(String webhookName) |
WebhookNewEmailPayload |
subject(String subject) |
WebhookNewEmailPayload |
to(List<String> to) |
String |
toJson()
Convert an instance of WebhookNewEmailPayload to an JSON string
|
String |
toString() |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
WebhookNewEmailPayload |
webhookId(UUID webhookId) |
WebhookNewEmailPayload |
webhookName(String webhookName) |
public static final String SERIALIZED_NAME_MESSAGE_ID
public static final String SERIALIZED_NAME_WEBHOOK_ID
public static final String SERIALIZED_NAME_EVENT_NAME
public static final String SERIALIZED_NAME_WEBHOOK_NAME
public static final String SERIALIZED_NAME_INBOX_ID
public static final String SERIALIZED_NAME_DOMAIN_ID
public static final String SERIALIZED_NAME_EMAIL_ID
public static final String SERIALIZED_NAME_CREATED_AT
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_ATTACHMENT_META_DATAS
public WebhookNewEmailPayload messageId(String messageId)
@Nonnull public String getMessageId()
public void setMessageId(String messageId)
public WebhookNewEmailPayload webhookId(UUID webhookId)
@Nonnull public UUID getWebhookId()
public void setWebhookId(UUID webhookId)
public WebhookNewEmailPayload eventName(WebhookNewEmailPayload.EventNameEnum eventName)
@Nonnull public WebhookNewEmailPayload.EventNameEnum getEventName()
public void setEventName(WebhookNewEmailPayload.EventNameEnum eventName)
public WebhookNewEmailPayload webhookName(String webhookName)
@Nullable public String getWebhookName()
public void setWebhookName(String webhookName)
public WebhookNewEmailPayload inboxId(UUID inboxId)
public void setInboxId(UUID inboxId)
public WebhookNewEmailPayload domainId(UUID domainId)
@Nullable public UUID getDomainId()
public void setDomainId(UUID domainId)
public WebhookNewEmailPayload emailId(UUID emailId)
@Nonnull public UUID getEmailId()
public void setEmailId(UUID emailId)
public WebhookNewEmailPayload createdAt(OffsetDateTime createdAt)
@Nonnull public OffsetDateTime getCreatedAt()
public void setCreatedAt(OffsetDateTime createdAt)
public WebhookNewEmailPayload to(List<String> to)
public WebhookNewEmailPayload addToItem(String toItem)
@Nonnull public List<String> getTo()
public WebhookNewEmailPayload from(String from)
@Nonnull public String getFrom()
public void setFrom(String from)
public WebhookNewEmailPayload cc(List<String> cc)
public WebhookNewEmailPayload addCcItem(String ccItem)
@Nonnull public List<String> getCc()
public WebhookNewEmailPayload bcc(List<String> bcc)
public WebhookNewEmailPayload addBccItem(String bccItem)
@Nonnull public List<String> getBcc()
public WebhookNewEmailPayload subject(String subject)
@Nullable public String getSubject()
public void setSubject(String subject)
public WebhookNewEmailPayload attachmentMetaDatas(List<AttachmentMetaData> attachmentMetaDatas)
public WebhookNewEmailPayload addAttachmentMetaDatasItem(AttachmentMetaData attachmentMetaDatasItem)
@Nonnull public List<AttachmentMetaData> getAttachmentMetaDatas()
public void setAttachmentMetaDatas(List<AttachmentMetaData> attachmentMetaDatas)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to WebhookNewEmailPayloadpublic static WebhookNewEmailPayload fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to WebhookNewEmailPayloadpublic String toJson()
Copyright © 2023. All rights reserved.