-
public final class WebhookNewAttachmentPayloadNEW_ATTACHMENT webhook payload. Sent to your webhook url endpoint via HTTP POST when an email is received by the inbox that your webhook is attached to that contains an attachment. You can use the attachmentId to download the attachment.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumWebhookNewAttachmentPayload.EventNameName of the event type webhook is being triggered for. Values: eMAILRECEIVED,nEWEMAIL,nEWCONTACT,nEWATTACHMENT,eMAILOPENED,eMAILREAD
-
Field Summary
Fields Modifier and Type Field Description private final StringmessageIdprivate final UUIDwebhookIdprivate final WebhookNewAttachmentPayload.EventNameeventNameprivate final StringattachmentIdprivate final Stringnameprivate final StringcontentTypeprivate final LongcontentLengthprivate final StringwebhookName
-
Constructor Summary
Constructors Constructor Description WebhookNewAttachmentPayload(String messageId, UUID webhookId, WebhookNewAttachmentPayload.EventName eventName, String attachmentId, String name, String contentType, Long contentLength, String webhookName)
-
Method Summary
Modifier and Type Method Description final StringgetMessageId()final UUIDgetWebhookId()final WebhookNewAttachmentPayload.EventNamegetEventName()final StringgetAttachmentId()final StringgetName()final StringgetContentType()final LonggetContentLength()final StringgetWebhookName()-
-
Constructor Detail
-
WebhookNewAttachmentPayload
WebhookNewAttachmentPayload(String messageId, UUID webhookId, WebhookNewAttachmentPayload.EventName eventName, String attachmentId, String name, String contentType, Long contentLength, String webhookName)
- Parameters:
messageId- Idempotent message ID.webhookId- ID of webhook entity being triggeredeventName- Name of the event type webhook is being triggered for.attachmentId- ID of attachment.name- Filename of the attachment if presentcontentType- Content type of attachment such as 'image/png' or 'application/pdfcontentLength- Size of attachment in byteswebhookName- Name of the webhook being triggered
-
-
Method Detail
-
getMessageId
final String getMessageId()
-
getWebhookId
final UUID getWebhookId()
-
getEventName
final WebhookNewAttachmentPayload.EventName getEventName()
-
getAttachmentId
final String getAttachmentId()
-
getContentType
final String getContentType()
-
getContentLength
final Long getContentLength()
-
getWebhookName
final String getWebhookName()
-
-
-
-