@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class WebhookDto extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WebhookDto.CustomTypeAdapterFactory |
static class |
WebhookDto.EventNameEnum
Webhook trigger event name
|
static class |
WebhookDto.MethodEnum
HTTP method that your server endpoint must listen for
|
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_BASIC_AUTH |
static String |
SERIALIZED_NAME_CREATED_AT |
static String |
SERIALIZED_NAME_EVENT_NAME |
static String |
SERIALIZED_NAME_ID |
static String |
SERIALIZED_NAME_IGNORE_INSECURE_SSL_CERTIFICATES |
static String |
SERIALIZED_NAME_INBOX_ID |
static String |
SERIALIZED_NAME_METHOD |
static String |
SERIALIZED_NAME_NAME |
static String |
SERIALIZED_NAME_PAYLOAD_JSON_SCHEMA |
static String |
SERIALIZED_NAME_PHONE_ID |
static String |
SERIALIZED_NAME_REQUEST_BODY_TEMPLATE |
static String |
SERIALIZED_NAME_REQUEST_HEADERS |
static String |
SERIALIZED_NAME_UPDATED_AT |
static String |
SERIALIZED_NAME_URL |
static String |
SERIALIZED_NAME_USE_STATIC_IP_RANGE |
static String |
SERIALIZED_NAME_USER_ID |
Constructor and Description |
---|
WebhookDto() |
Modifier and Type | Method and Description |
---|---|
WebhookDto |
basicAuth(Boolean basicAuth) |
WebhookDto |
createdAt(OffsetDateTime createdAt) |
boolean |
equals(Object o) |
WebhookDto |
eventName(WebhookDto.EventNameEnum eventName) |
static WebhookDto |
fromJson(String jsonString)
Create an instance of WebhookDto given an JSON string
|
Boolean |
getBasicAuth()
Does webhook expect basic authentication? If true it means you created this webhook with a username and password.
|
OffsetDateTime |
getCreatedAt()
When the webhook was created
|
WebhookDto.EventNameEnum |
getEventName()
Webhook trigger event name
|
UUID |
getId()
ID of the Webhook
|
Boolean |
getIgnoreInsecureSslCertificates()
Should notifier ignore insecure SSL certificates
|
UUID |
getInboxId()
The inbox that the Webhook will be triggered by.
|
WebhookDto.MethodEnum |
getMethod()
HTTP method that your server endpoint must listen for
|
String |
getName()
Name of the webhook
|
String |
getPayloadJsonSchema()
Deprecated.
|
UUID |
getPhoneId()
The phoneNumberId that the Webhook will be triggered by.
|
String |
getRequestBodyTemplate()
Request body template for HTTP request that will be sent for the webhook.
|
WebhookHeaders |
getRequestHeaders()
Get requestHeaders
|
OffsetDateTime |
getUpdatedAt()
Get updatedAt
|
String |
getUrl()
URL of your server that the webhook will be sent to.
|
UUID |
getUserId()
User ID of the Webhook
|
Boolean |
getUseStaticIpRange()
Should notifier use static IP range when sending webhook payload
|
int |
hashCode() |
WebhookDto |
id(UUID id) |
WebhookDto |
ignoreInsecureSslCertificates(Boolean ignoreInsecureSslCertificates) |
WebhookDto |
inboxId(UUID inboxId) |
WebhookDto |
method(WebhookDto.MethodEnum method) |
WebhookDto |
name(String name) |
WebhookDto |
payloadJsonSchema(String payloadJsonSchema) |
WebhookDto |
phoneId(UUID phoneId) |
WebhookDto |
requestBodyTemplate(String requestBodyTemplate) |
WebhookDto |
requestHeaders(WebhookHeaders requestHeaders) |
void |
setBasicAuth(Boolean basicAuth) |
void |
setCreatedAt(OffsetDateTime createdAt) |
void |
setEventName(WebhookDto.EventNameEnum eventName) |
void |
setId(UUID id) |
void |
setIgnoreInsecureSslCertificates(Boolean ignoreInsecureSslCertificates) |
void |
setInboxId(UUID inboxId) |
void |
setMethod(WebhookDto.MethodEnum method) |
void |
setName(String name) |
void |
setPayloadJsonSchema(String payloadJsonSchema) |
void |
setPhoneId(UUID phoneId) |
void |
setRequestBodyTemplate(String requestBodyTemplate) |
void |
setRequestHeaders(WebhookHeaders requestHeaders) |
void |
setUpdatedAt(OffsetDateTime updatedAt) |
void |
setUrl(String url) |
void |
setUserId(UUID userId) |
void |
setUseStaticIpRange(Boolean useStaticIpRange) |
String |
toJson()
Convert an instance of WebhookDto to an JSON string
|
String |
toString() |
WebhookDto |
updatedAt(OffsetDateTime updatedAt) |
WebhookDto |
url(String url) |
WebhookDto |
userId(UUID userId) |
WebhookDto |
useStaticIpRange(Boolean useStaticIpRange) |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public static final String SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_USER_ID
public static final String SERIALIZED_NAME_BASIC_AUTH
public static final String SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_PHONE_ID
public static final String SERIALIZED_NAME_INBOX_ID
public static final String SERIALIZED_NAME_REQUEST_BODY_TEMPLATE
public static final String SERIALIZED_NAME_URL
public static final String SERIALIZED_NAME_METHOD
public static final String SERIALIZED_NAME_PAYLOAD_JSON_SCHEMA
public static final String SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_EVENT_NAME
public static final String SERIALIZED_NAME_REQUEST_HEADERS
public static final String SERIALIZED_NAME_IGNORE_INSECURE_SSL_CERTIFICATES
public static final String SERIALIZED_NAME_USE_STATIC_IP_RANGE
public WebhookDto id(UUID id)
public void setId(UUID id)
public WebhookDto userId(UUID userId)
public void setUserId(UUID userId)
public WebhookDto basicAuth(Boolean basicAuth)
@Nonnull public Boolean getBasicAuth()
public void setBasicAuth(Boolean basicAuth)
public WebhookDto name(String name)
public void setName(String name)
public WebhookDto phoneId(UUID phoneId)
@Nullable public UUID getPhoneId()
public void setPhoneId(UUID phoneId)
public WebhookDto inboxId(UUID inboxId)
@Nullable public UUID getInboxId()
public void setInboxId(UUID inboxId)
public WebhookDto requestBodyTemplate(String requestBodyTemplate)
@Nullable public String getRequestBodyTemplate()
public void setRequestBodyTemplate(String requestBodyTemplate)
public WebhookDto url(String url)
@Nonnull public String getUrl()
public void setUrl(String url)
public WebhookDto method(WebhookDto.MethodEnum method)
@Nonnull public WebhookDto.MethodEnum getMethod()
public void setMethod(WebhookDto.MethodEnum method)
public WebhookDto payloadJsonSchema(String payloadJsonSchema)
@Nonnull public String getPayloadJsonSchema()
public void setPayloadJsonSchema(String payloadJsonSchema)
public WebhookDto createdAt(OffsetDateTime createdAt)
@Nullable public OffsetDateTime getCreatedAt()
public void setCreatedAt(OffsetDateTime createdAt)
public WebhookDto updatedAt(OffsetDateTime updatedAt)
@Nonnull public OffsetDateTime getUpdatedAt()
public void setUpdatedAt(OffsetDateTime updatedAt)
public WebhookDto eventName(WebhookDto.EventNameEnum eventName)
@Nullable public WebhookDto.EventNameEnum getEventName()
public void setEventName(WebhookDto.EventNameEnum eventName)
public WebhookDto requestHeaders(WebhookHeaders requestHeaders)
@Nullable public WebhookHeaders getRequestHeaders()
public void setRequestHeaders(WebhookHeaders requestHeaders)
public WebhookDto ignoreInsecureSslCertificates(Boolean ignoreInsecureSslCertificates)
@Nullable public Boolean getIgnoreInsecureSslCertificates()
public void setIgnoreInsecureSslCertificates(Boolean ignoreInsecureSslCertificates)
public WebhookDto useStaticIpRange(Boolean useStaticIpRange)
@Nullable public Boolean getUseStaticIpRange()
public void setUseStaticIpRange(Boolean useStaticIpRange)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to WebhookDtopublic static WebhookDto fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to WebhookDtopublic String toJson()
Copyright © 2023. All rights reserved.