Package com.onfido.model
Class Error1
- java.lang.Object
-
- com.onfido.model.Error1
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class Error1 extends Object
Error1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classError1.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DOCUMENT_IDstatic StringSERIALIZED_NAME_ERROR
-
Constructor Summary
Constructors Constructor Description Error1()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Error1documentId(String documentId)booleanequals(Object o)Error1error(ErrorProperties1 error)static Error1fromJson(String jsonString)Create an instance of Error1 given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetDocumentId()The unique identifier of the uploaded documentErrorProperties1getError()Get errorinthashCode()Error1putAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetDocumentId(String documentId)voidsetError(ErrorProperties1 error)StringtoJson()Convert an instance of Error1 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_DOCUMENT_ID
public static final String SERIALIZED_NAME_DOCUMENT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERROR
public static final String SERIALIZED_NAME_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDocumentId
@Nullable public String getDocumentId()
The unique identifier of the uploaded document- Returns:
- documentId
-
setDocumentId
public void setDocumentId(String documentId)
-
error
public Error1 error(ErrorProperties1 error)
-
getError
@Nullable public ErrorProperties1 getError()
Get error- Returns:
- error
-
setError
public void setError(ErrorProperties1 error)
-
putAdditionalProperty
public Error1 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 Error1 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 Error1
-
fromJson
public static Error1 fromJson(String jsonString) throws IOException
Create an instance of Error1 given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Error1
- Throws:
IOException- if the JSON string is invalid with respect to Error1
-
toJson
public String toJson()
Convert an instance of Error1 to an JSON string- Returns:
- JSON string
-
-