Package com.onfido.model
Class WebhookEventPayload
- java.lang.Object
-
- com.onfido.model.WebhookEventPayload
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class WebhookEventPayload extends Object
WebhookEventPayload
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhookEventPayload.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACTIONstatic StringSERIALIZED_NAME_OBJECTstatic StringSERIALIZED_NAME_RESOURCEstatic StringSERIALIZED_NAME_RESOURCE_TYPE
-
Constructor Summary
Constructors Constructor Description WebhookEventPayload()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookEventPayload_object(WebhookEventPayloadObject _object)WebhookEventPayloadaction(WebhookEventType action)booleanequals(Object o)static WebhookEventPayloadfromJson(String jsonString)Create an instance of WebhookEventPayload given an JSON stringWebhookEventTypegetAction()The event that triggered this webhook.Map<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.WebhookEventPayloadObjectgetObject()Get _objectWebhookEventPayloadResourcegetResource()Get resourceWebhookEventResourceTypegetResourceType()Indicates the resource affected by this event.inthashCode()WebhookEventPayloadputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.WebhookEventPayloadresource(WebhookEventPayloadResource resource)WebhookEventPayloadresourceType(WebhookEventResourceType resourceType)voidsetAction(WebhookEventType action)voidsetObject(WebhookEventPayloadObject _object)voidsetResource(WebhookEventPayloadResource resource)voidsetResourceType(WebhookEventResourceType resourceType)StringtoJson()Convert an instance of WebhookEventPayload to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_RESOURCE_TYPE
public static final String SERIALIZED_NAME_RESOURCE_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACTION
public static final String SERIALIZED_NAME_ACTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OBJECT
public static final String SERIALIZED_NAME_OBJECT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESOURCE
public static final String SERIALIZED_NAME_RESOURCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
resourceType
public WebhookEventPayload resourceType(WebhookEventResourceType resourceType)
-
getResourceType
@Nonnull public WebhookEventResourceType getResourceType()
Indicates the resource affected by this event.- Returns:
- resourceType
-
setResourceType
public void setResourceType(WebhookEventResourceType resourceType)
-
action
public WebhookEventPayload action(WebhookEventType action)
-
getAction
@Nullable public WebhookEventType getAction()
The event that triggered this webhook.- Returns:
- action
-
setAction
public void setAction(WebhookEventType action)
-
_object
public WebhookEventPayload _object(WebhookEventPayloadObject _object)
-
getObject
@Nullable public WebhookEventPayloadObject getObject()
Get _object- Returns:
- _object
-
setObject
public void setObject(WebhookEventPayloadObject _object)
-
resource
public WebhookEventPayload resource(WebhookEventPayloadResource resource)
-
getResource
@Nullable public WebhookEventPayloadResource getResource()
Get resource- Returns:
- resource
-
setResource
public void setResource(WebhookEventPayloadResource resource)
-
putAdditionalProperty
public WebhookEventPayload 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 WebhookEventPayload 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 WebhookEventPayload
-
fromJson
public static WebhookEventPayload fromJson(String jsonString) throws IOException
Create an instance of WebhookEventPayload given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of WebhookEventPayload
- Throws:
IOException- if the JSON string is invalid with respect to WebhookEventPayload
-
toJson
public String toJson()
Convert an instance of WebhookEventPayload to an JSON string- Returns:
- JSON string
-
-