@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class WebhookNewAttachmentPayload extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WebhookNewAttachmentPayload.CustomTypeAdapterFactory |
static class |
WebhookNewAttachmentPayload.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_ID |
static String |
SERIALIZED_NAME_CONTENT_LENGTH |
static String |
SERIALIZED_NAME_CONTENT_TYPE |
static String |
SERIALIZED_NAME_EVENT_NAME |
static String |
SERIALIZED_NAME_MESSAGE_ID |
static String |
SERIALIZED_NAME_NAME |
static String |
SERIALIZED_NAME_WEBHOOK_ID |
static String |
SERIALIZED_NAME_WEBHOOK_NAME |
Constructor and Description |
---|
WebhookNewAttachmentPayload() |
Modifier and Type | Method and Description |
---|---|
WebhookNewAttachmentPayload |
attachmentId(String attachmentId) |
WebhookNewAttachmentPayload |
contentLength(Long contentLength) |
WebhookNewAttachmentPayload |
contentType(String contentType) |
boolean |
equals(Object o) |
WebhookNewAttachmentPayload |
eventName(WebhookNewAttachmentPayload.EventNameEnum eventName) |
static WebhookNewAttachmentPayload |
fromJson(String jsonString)
Create an instance of WebhookNewAttachmentPayload given an JSON string
|
String |
getAttachmentId()
ID of attachment.
|
Long |
getContentLength()
Size of attachment in bytes
|
String |
getContentType()
Content type of attachment such as 'image/png' or 'application/pdf
|
WebhookNewAttachmentPayload.EventNameEnum |
getEventName()
Name of the event type webhook is being triggered for.
|
String |
getMessageId()
Idempotent message ID.
|
String |
getName()
Filename of the attachment if present
|
UUID |
getWebhookId()
ID of webhook entity being triggered
|
String |
getWebhookName()
Name of the webhook being triggered
|
int |
hashCode() |
WebhookNewAttachmentPayload |
messageId(String messageId) |
WebhookNewAttachmentPayload |
name(String name) |
void |
setAttachmentId(String attachmentId) |
void |
setContentLength(Long contentLength) |
void |
setContentType(String contentType) |
void |
setEventName(WebhookNewAttachmentPayload.EventNameEnum eventName) |
void |
setMessageId(String messageId) |
void |
setName(String name) |
void |
setWebhookId(UUID webhookId) |
void |
setWebhookName(String webhookName) |
String |
toJson()
Convert an instance of WebhookNewAttachmentPayload 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
|
WebhookNewAttachmentPayload |
webhookId(UUID webhookId) |
WebhookNewAttachmentPayload |
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_WEBHOOK_NAME
public static final String SERIALIZED_NAME_EVENT_NAME
public static final String SERIALIZED_NAME_ATTACHMENT_ID
public static final String SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_CONTENT_TYPE
public static final String SERIALIZED_NAME_CONTENT_LENGTH
public WebhookNewAttachmentPayload messageId(String messageId)
@Nonnull public String getMessageId()
public void setMessageId(String messageId)
public WebhookNewAttachmentPayload webhookId(UUID webhookId)
@Nonnull public UUID getWebhookId()
public void setWebhookId(UUID webhookId)
public WebhookNewAttachmentPayload webhookName(String webhookName)
@Nullable public String getWebhookName()
public void setWebhookName(String webhookName)
public WebhookNewAttachmentPayload eventName(WebhookNewAttachmentPayload.EventNameEnum eventName)
@Nonnull public WebhookNewAttachmentPayload.EventNameEnum getEventName()
public void setEventName(WebhookNewAttachmentPayload.EventNameEnum eventName)
public WebhookNewAttachmentPayload attachmentId(String attachmentId)
@Nonnull public String getAttachmentId()
public void setAttachmentId(String attachmentId)
public WebhookNewAttachmentPayload name(String name)
public void setName(String name)
public WebhookNewAttachmentPayload contentType(String contentType)
@Nonnull public String getContentType()
public void setContentType(String contentType)
public WebhookNewAttachmentPayload contentLength(Long contentLength)
@Nonnull public Long getContentLength()
public void setContentLength(Long contentLength)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to WebhookNewAttachmentPayloadpublic static WebhookNewAttachmentPayload fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to WebhookNewAttachmentPayloadpublic String toJson()
Copyright © 2023. All rights reserved.