-
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 StringattachmentIdprivate final LongcontentLengthprivate final StringcontentTypeprivate final WebhookNewAttachmentPayload.EventNameeventNameprivate final StringmessageIdprivate final Stringnameprivate final UUIDwebhookIdprivate final StringwebhookName
-
Constructor Summary
Constructors Constructor Description WebhookNewAttachmentPayload(String attachmentId, Long contentLength, String contentType, WebhookNewAttachmentPayload.EventName eventName, String messageId, String name, UUID webhookId, String webhookName)
-
Method Summary
Modifier and Type Method Description final StringgetAttachmentId()final LonggetContentLength()final StringgetContentType()final WebhookNewAttachmentPayload.EventNamegetEventName()final StringgetMessageId()final StringgetName()final UUIDgetWebhookId()final StringgetWebhookName()-
-
Constructor Detail
-
WebhookNewAttachmentPayload
WebhookNewAttachmentPayload(String attachmentId, Long contentLength, String contentType, WebhookNewAttachmentPayload.EventName eventName, String messageId, String name, UUID webhookId, String webhookName)
- Parameters:
attachmentId- ID of attachment.contentLength- Size of attachment in bytescontentType- Content type of attachment such as 'image/png' or 'application/pdfeventName- Name of the event type webhook is being triggered for.messageId- Idempotent message ID.name- Filename of the attachment if presentwebhookId- ID of webhook entity being triggeredwebhookName- Name of the webhook being triggered
-
-
Method Detail
-
getAttachmentId
final String getAttachmentId()
-
getContentLength
final Long getContentLength()
-
getContentType
final String getContentType()
-
getEventName
final WebhookNewAttachmentPayload.EventName getEventName()
-
getMessageId
final String getMessageId()
-
getWebhookId
final UUID getWebhookId()
-
getWebhookName
final String getWebhookName()
-
-
-
-