@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class AbstractWebhookPayload extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractWebhookPayload.CustomTypeAdapterFactory |
static class |
AbstractWebhookPayload.EventNameEnum
Gets or Sets eventName
|
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_EVENT_NAME |
static String |
SERIALIZED_NAME_MESSAGE_ID |
static String |
SERIALIZED_NAME_WEBHOOK_ID |
static String |
SERIALIZED_NAME_WEBHOOK_NAME |
Constructor and Description |
---|
AbstractWebhookPayload() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
AbstractWebhookPayload |
eventName(AbstractWebhookPayload.EventNameEnum eventName) |
static AbstractWebhookPayload |
fromJson(String jsonString)
Create an instance of AbstractWebhookPayload given an JSON string
|
AbstractWebhookPayload.EventNameEnum |
getEventName()
Get eventName
|
String |
getMessageId()
Get messageId
|
UUID |
getWebhookId()
Get webhookId
|
String |
getWebhookName()
Get webhookName
|
int |
hashCode() |
AbstractWebhookPayload |
messageId(String messageId) |
void |
setEventName(AbstractWebhookPayload.EventNameEnum eventName) |
void |
setMessageId(String messageId) |
void |
setWebhookId(UUID webhookId) |
void |
setWebhookName(String webhookName) |
String |
toJson()
Convert an instance of AbstractWebhookPayload 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
|
AbstractWebhookPayload |
webhookId(UUID webhookId) |
AbstractWebhookPayload |
webhookName(String webhookName) |
public static final String SERIALIZED_NAME_EVENT_NAME
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 AbstractWebhookPayload eventName(AbstractWebhookPayload.EventNameEnum eventName)
@Nonnull public AbstractWebhookPayload.EventNameEnum getEventName()
public void setEventName(AbstractWebhookPayload.EventNameEnum eventName)
public AbstractWebhookPayload messageId(String messageId)
public void setMessageId(String messageId)
public AbstractWebhookPayload webhookId(UUID webhookId)
public void setWebhookId(UUID webhookId)
public AbstractWebhookPayload webhookName(String webhookName)
public void setWebhookName(String webhookName)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to AbstractWebhookPayloadpublic static AbstractWebhookPayload fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to AbstractWebhookPayloadpublic String toJson()
Copyright © 2023. All rights reserved.