@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class WebhookTestRequest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WebhookTestRequest.CustomTypeAdapterFactory |
static class |
WebhookTestRequest.MethodEnum
Gets or Sets method
|
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_HEADERS |
static String |
SERIALIZED_NAME_METHOD |
static String |
SERIALIZED_NAME_PAYLOAD |
static String |
SERIALIZED_NAME_URL |
Constructor and Description |
---|
WebhookTestRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static WebhookTestRequest |
fromJson(String jsonString)
Create an instance of WebhookTestRequest given an JSON string
|
Map<String,String> |
getHeaders()
Get headers
|
WebhookTestRequest.MethodEnum |
getMethod()
Get method
|
String |
getPayload()
Get payload
|
String |
getUrl()
Get url
|
int |
hashCode() |
WebhookTestRequest |
headers(Map<String,String> headers) |
WebhookTestRequest |
method(WebhookTestRequest.MethodEnum method) |
WebhookTestRequest |
payload(String payload) |
WebhookTestRequest |
putHeadersItem(String key,
String headersItem) |
void |
setHeaders(Map<String,String> headers) |
void |
setMethod(WebhookTestRequest.MethodEnum method) |
void |
setPayload(String payload) |
void |
setUrl(String url) |
String |
toJson()
Convert an instance of WebhookTestRequest to an JSON string
|
String |
toString() |
WebhookTestRequest |
url(String url) |
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_METHOD
public static final String SERIALIZED_NAME_HEADERS
public static final String SERIALIZED_NAME_PAYLOAD
public WebhookTestRequest url(String url)
public void setUrl(String url)
public WebhookTestRequest method(WebhookTestRequest.MethodEnum method)
@Nonnull public WebhookTestRequest.MethodEnum getMethod()
public void setMethod(WebhookTestRequest.MethodEnum method)
public WebhookTestRequest headers(Map<String,String> headers)
public WebhookTestRequest putHeadersItem(String key, String headersItem)
public WebhookTestRequest payload(String payload)
public void setPayload(String payload)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to WebhookTestRequestpublic static WebhookTestRequest fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to WebhookTestRequestpublic String toJson()
Copyright © 2023. All rights reserved.