@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class CreateWebhookOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CreateWebhookOptions.CustomTypeAdapterFactory |
static class |
CreateWebhookOptions.EventNameEnum
Optional webhook event name.
|
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_BASIC_AUTH |
static String |
SERIALIZED_NAME_EVENT_NAME |
static String |
SERIALIZED_NAME_IGNORE_INSECURE_SSL_CERTIFICATES |
static String |
SERIALIZED_NAME_INCLUDE_HEADERS |
static String |
SERIALIZED_NAME_NAME |
static String |
SERIALIZED_NAME_REQUEST_BODY_TEMPLATE |
static String |
SERIALIZED_NAME_URL |
static String |
SERIALIZED_NAME_USE_STATIC_IP_RANGE |
Constructor and Description |
---|
CreateWebhookOptions() |
Modifier and Type | Method and Description |
---|---|
CreateWebhookOptions |
basicAuth(BasicAuthOptions basicAuth) |
boolean |
equals(Object o) |
CreateWebhookOptions |
eventName(CreateWebhookOptions.EventNameEnum eventName) |
static CreateWebhookOptions |
fromJson(String jsonString)
Create an instance of CreateWebhookOptions given an JSON string
|
BasicAuthOptions |
getBasicAuth()
Get basicAuth
|
CreateWebhookOptions.EventNameEnum |
getEventName()
Optional webhook event name.
|
Boolean |
getIgnoreInsecureSslCertificates()
Ignore insecure SSL certificates when sending request.
|
WebhookHeaders |
getIncludeHeaders()
Get includeHeaders
|
String |
getName()
Optional name for the webhook
|
String |
getRequestBodyTemplate()
Template for the JSON body of the webhook request that will be sent to your server.
|
String |
getUrl()
Public URL on your server that MailSlurp can post WebhookNotification payload to when an email is received or an event is trigger.
|
Boolean |
getUseStaticIpRange()
Use static IP range when calling webhook endpoint
|
int |
hashCode() |
CreateWebhookOptions |
ignoreInsecureSslCertificates(Boolean ignoreInsecureSslCertificates) |
CreateWebhookOptions |
includeHeaders(WebhookHeaders includeHeaders) |
CreateWebhookOptions |
name(String name) |
CreateWebhookOptions |
requestBodyTemplate(String requestBodyTemplate) |
void |
setBasicAuth(BasicAuthOptions basicAuth) |
void |
setEventName(CreateWebhookOptions.EventNameEnum eventName) |
void |
setIgnoreInsecureSslCertificates(Boolean ignoreInsecureSslCertificates) |
void |
setIncludeHeaders(WebhookHeaders includeHeaders) |
void |
setName(String name) |
void |
setRequestBodyTemplate(String requestBodyTemplate) |
void |
setUrl(String url) |
void |
setUseStaticIpRange(Boolean useStaticIpRange) |
String |
toJson()
Convert an instance of CreateWebhookOptions to an JSON string
|
String |
toString() |
CreateWebhookOptions |
url(String url) |
CreateWebhookOptions |
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_URL
public static final String SERIALIZED_NAME_BASIC_AUTH
public static final String SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_EVENT_NAME
public static final String SERIALIZED_NAME_INCLUDE_HEADERS
public static final String SERIALIZED_NAME_REQUEST_BODY_TEMPLATE
public static final String SERIALIZED_NAME_USE_STATIC_IP_RANGE
public static final String SERIALIZED_NAME_IGNORE_INSECURE_SSL_CERTIFICATES
public CreateWebhookOptions url(String url)
@Nonnull public String getUrl()
public void setUrl(String url)
public CreateWebhookOptions basicAuth(BasicAuthOptions basicAuth)
@Nullable public BasicAuthOptions getBasicAuth()
public void setBasicAuth(BasicAuthOptions basicAuth)
public CreateWebhookOptions name(String name)
public void setName(String name)
public CreateWebhookOptions eventName(CreateWebhookOptions.EventNameEnum eventName)
@Nullable public CreateWebhookOptions.EventNameEnum getEventName()
public void setEventName(CreateWebhookOptions.EventNameEnum eventName)
public CreateWebhookOptions includeHeaders(WebhookHeaders includeHeaders)
@Nullable public WebhookHeaders getIncludeHeaders()
public void setIncludeHeaders(WebhookHeaders includeHeaders)
public CreateWebhookOptions requestBodyTemplate(String requestBodyTemplate)
@Nullable public String getRequestBodyTemplate()
public void setRequestBodyTemplate(String requestBodyTemplate)
public CreateWebhookOptions useStaticIpRange(Boolean useStaticIpRange)
@Nullable public Boolean getUseStaticIpRange()
public void setUseStaticIpRange(Boolean useStaticIpRange)
public CreateWebhookOptions ignoreInsecureSslCertificates(Boolean ignoreInsecureSslCertificates)
@Nullable public Boolean getIgnoreInsecureSslCertificates()
public void setIgnoreInsecureSslCertificates(Boolean ignoreInsecureSslCertificates)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to CreateWebhookOptionspublic static CreateWebhookOptions fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to CreateWebhookOptionspublic String toJson()
Copyright © 2023. All rights reserved.