Package com.onfido.model
Class WebhookResponse
- java.lang.Object
-
- com.onfido.model.WebhookResponse
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class WebhookResponse extends Object
WebhookResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhookResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_HREFstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_TOKENstatic StringSERIALIZED_NAME_URL
-
Constructor Summary
Constructors Constructor Description WebhookResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static WebhookResponsefromJson(String jsonString)Create an instance of WebhookResponse given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetHref()The API endpoint to retrieve the webhook.UUIDgetId()The unique identifier of the webhook.StringgetToken()Webhook secret token used to sign the webhook's payload.StringgetUrl()The url that will listen to notifications (must be https).inthashCode()WebhookResponsehref(String href)WebhookResponseid(UUID id)WebhookResponseputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetHref(String href)voidsetId(UUID id)voidsetToken(String token)voidsetUrl(String url)StringtoJson()Convert an instance of WebhookResponse to an JSON stringWebhookResponsetoken(String token)StringtoString()WebhookResponseurl(String url)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_URL
public static final String SERIALIZED_NAME_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOKEN
public static final String SERIALIZED_NAME_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HREF
public static final String SERIALIZED_NAME_HREF
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public WebhookResponse id(UUID id)
-
setId
public void setId(UUID id)
-
url
public WebhookResponse url(String url)
-
getUrl
@Nullable public String getUrl()
The url that will listen to notifications (must be https).- Returns:
- url
-
setUrl
public void setUrl(String url)
-
token
public WebhookResponse token(String token)
-
getToken
@Nullable public String getToken()
Webhook secret token used to sign the webhook's payload.- Returns:
- token
-
setToken
public void setToken(String token)
-
href
public WebhookResponse href(String href)
-
setHref
public void setHref(String href)
-
putAdditionalProperty
public WebhookResponse putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the WebhookResponse instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to WebhookResponse
-
fromJson
public static WebhookResponse fromJson(String jsonString) throws IOException
Create an instance of WebhookResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of WebhookResponse
- Throws:
IOException- if the JSON string is invalid with respect to WebhookResponse
-
toJson
public String toJson()
Convert an instance of WebhookResponse to an JSON string- Returns:
- JSON string
-
-