Package com.onfido.model
Class WebhookEventPayloadObject
- java.lang.Object
-
- com.onfido.model.WebhookEventPayloadObject
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class WebhookEventPayloadObject extends Object
The object affected by this event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhookEventPayloadObject.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COMPLETED_AT_ISO8601static StringSERIALIZED_NAME_HREFstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_STARTED_AT_ISO8601static StringSERIALIZED_NAME_STATUS
-
Constructor Summary
Constructors Constructor Description WebhookEventPayloadObject()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookEventPayloadObjectcompletedAtIso8601(OffsetDateTime completedAtIso8601)booleanequals(Object o)static WebhookEventPayloadObjectfromJson(String jsonString)Create an instance of WebhookEventPayloadObject given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.OffsetDateTimegetCompletedAtIso8601()The date and time when the operation was completed, if available.StringgetHref()The uri of the resource.StringgetId()The unique identifier of the resource.OffsetDateTimegetStartedAtIso8601()The date and time when the operation was started, if available.WebhookEventObjectStatusgetStatus()Get statusinthashCode()WebhookEventPayloadObjecthref(String href)WebhookEventPayloadObjectid(String id)WebhookEventPayloadObjectputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetCompletedAtIso8601(OffsetDateTime completedAtIso8601)voidsetHref(String href)voidsetId(String id)voidsetStartedAtIso8601(OffsetDateTime startedAtIso8601)voidsetStatus(WebhookEventObjectStatus status)WebhookEventPayloadObjectstartedAtIso8601(OffsetDateTime startedAtIso8601)WebhookEventPayloadObjectstatus(WebhookEventObjectStatus status)StringtoJson()Convert an instance of WebhookEventPayloadObject 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_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STARTED_AT_ISO8601
public static final String SERIALIZED_NAME_STARTED_AT_ISO8601
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COMPLETED_AT_ISO8601
public static final String SERIALIZED_NAME_COMPLETED_AT_ISO8601
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HREF
public static final String SERIALIZED_NAME_HREF
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public WebhookEventPayloadObject id(String id)
-
setId
public void setId(String id)
-
status
public WebhookEventPayloadObject status(WebhookEventObjectStatus status)
-
getStatus
@Nullable public WebhookEventObjectStatus getStatus()
Get status- Returns:
- status
-
setStatus
public void setStatus(WebhookEventObjectStatus status)
-
startedAtIso8601
public WebhookEventPayloadObject startedAtIso8601(OffsetDateTime startedAtIso8601)
-
getStartedAtIso8601
@Nullable public OffsetDateTime getStartedAtIso8601()
The date and time when the operation was started, if available.- Returns:
- startedAtIso8601
-
setStartedAtIso8601
public void setStartedAtIso8601(OffsetDateTime startedAtIso8601)
-
completedAtIso8601
public WebhookEventPayloadObject completedAtIso8601(OffsetDateTime completedAtIso8601)
-
getCompletedAtIso8601
@Nullable public OffsetDateTime getCompletedAtIso8601()
The date and time when the operation was completed, if available.- Returns:
- completedAtIso8601
-
setCompletedAtIso8601
public void setCompletedAtIso8601(OffsetDateTime completedAtIso8601)
-
href
public WebhookEventPayloadObject href(String href)
-
setHref
public void setHref(String href)
-
putAdditionalProperty
public WebhookEventPayloadObject 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 WebhookEventPayloadObject 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 WebhookEventPayloadObject
-
fromJson
public static WebhookEventPayloadObject fromJson(String jsonString) throws IOException
Create an instance of WebhookEventPayloadObject given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of WebhookEventPayloadObject
- Throws:
IOException- if the JSON string is invalid with respect to WebhookEventPayloadObject
-
toJson
public String toJson()
Convert an instance of WebhookEventPayloadObject to an JSON string- Returns:
- JSON string
-
-