@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class WebhookEmailReadPayload extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WebhookEmailReadPayload.CustomTypeAdapterFactory |
static class |
WebhookEmailReadPayload.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_CREATED_AT |
static String |
SERIALIZED_NAME_EMAIL_ID |
static String |
SERIALIZED_NAME_EMAIL_IS_READ |
static String |
SERIALIZED_NAME_EVENT_NAME |
static String |
SERIALIZED_NAME_INBOX_ID |
static String |
SERIALIZED_NAME_MESSAGE_ID |
static String |
SERIALIZED_NAME_WEBHOOK_ID |
static String |
SERIALIZED_NAME_WEBHOOK_NAME |
Constructor and Description |
---|
WebhookEmailReadPayload() |
Modifier and Type | Method and Description |
---|---|
WebhookEmailReadPayload |
createdAt(OffsetDateTime createdAt) |
WebhookEmailReadPayload |
emailId(UUID emailId) |
WebhookEmailReadPayload |
emailIsRead(Boolean emailIsRead) |
boolean |
equals(Object o) |
WebhookEmailReadPayload |
eventName(WebhookEmailReadPayload.EventNameEnum eventName) |
static WebhookEmailReadPayload |
fromJson(String jsonString)
Create an instance of WebhookEmailReadPayload given an JSON string
|
OffsetDateTime |
getCreatedAt()
Date time of event creation
|
UUID |
getEmailId()
ID of the email that was received.
|
Boolean |
getEmailIsRead()
Is the email read
|
WebhookEmailReadPayload.EventNameEnum |
getEventName()
Name of the event type webhook is being triggered for.
|
UUID |
getInboxId()
Id of the inbox
|
String |
getMessageId()
Idempotent message ID.
|
UUID |
getWebhookId()
ID of webhook entity being triggered
|
String |
getWebhookName()
Name of the webhook being triggered
|
int |
hashCode() |
WebhookEmailReadPayload |
inboxId(UUID inboxId) |
WebhookEmailReadPayload |
messageId(String messageId) |
void |
setCreatedAt(OffsetDateTime createdAt) |
void |
setEmailId(UUID emailId) |
void |
setEmailIsRead(Boolean emailIsRead) |
void |
setEventName(WebhookEmailReadPayload.EventNameEnum eventName) |
void |
setInboxId(UUID inboxId) |
void |
setMessageId(String messageId) |
void |
setWebhookId(UUID webhookId) |
void |
setWebhookName(String webhookName) |
String |
toJson()
Convert an instance of WebhookEmailReadPayload 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
|
WebhookEmailReadPayload |
webhookId(UUID webhookId) |
WebhookEmailReadPayload |
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_EMAIL_ID
public static final String SERIALIZED_NAME_INBOX_ID
public static final String SERIALIZED_NAME_EMAIL_IS_READ
public static final String SERIALIZED_NAME_CREATED_AT
public WebhookEmailReadPayload messageId(String messageId)
@Nonnull public String getMessageId()
public void setMessageId(String messageId)
public WebhookEmailReadPayload webhookId(UUID webhookId)
@Nonnull public UUID getWebhookId()
public void setWebhookId(UUID webhookId)
public WebhookEmailReadPayload eventName(WebhookEmailReadPayload.EventNameEnum eventName)
@Nonnull public WebhookEmailReadPayload.EventNameEnum getEventName()
public void setEventName(WebhookEmailReadPayload.EventNameEnum eventName)
public WebhookEmailReadPayload webhookName(String webhookName)
@Nullable public String getWebhookName()
public void setWebhookName(String webhookName)
public WebhookEmailReadPayload emailId(UUID emailId)
@Nonnull public UUID getEmailId()
public void setEmailId(UUID emailId)
public WebhookEmailReadPayload inboxId(UUID inboxId)
public void setInboxId(UUID inboxId)
public WebhookEmailReadPayload emailIsRead(Boolean emailIsRead)
public void setEmailIsRead(Boolean emailIsRead)
public WebhookEmailReadPayload createdAt(OffsetDateTime createdAt)
@Nonnull public OffsetDateTime getCreatedAt()
public void setCreatedAt(OffsetDateTime createdAt)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to WebhookEmailReadPayloadpublic static WebhookEmailReadPayload fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to WebhookEmailReadPayloadpublic String toJson()
Copyright © 2023. All rights reserved.