Package com.onfido.model
Class Extraction
- java.lang.Object
-
- com.onfido.model.Extraction
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class Extraction extends Object
Extraction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExtraction.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DOCUMENT_CLASSIFICATIONstatic StringSERIALIZED_NAME_DOCUMENT_IDstatic StringSERIALIZED_NAME_EXTRACTED_DATA
-
Constructor Summary
Constructors Constructor Description Extraction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtractiondocumentClassification(ExtractionDocumentClassification documentClassification)ExtractiondocumentId(UUID documentId)booleanequals(Object o)ExtractionextractedData(ExtractionExtractedData extractedData)static ExtractionfromJson(String jsonString)Create an instance of Extraction given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.ExtractionDocumentClassificationgetDocumentClassification()Get documentClassificationUUIDgetDocumentId()The unique identifier of the uploaded document.ExtractionExtractedDatagetExtractedData()Get extractedDatainthashCode()ExtractionputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetDocumentClassification(ExtractionDocumentClassification documentClassification)voidsetDocumentId(UUID documentId)voidsetExtractedData(ExtractionExtractedData extractedData)StringtoJson()Convert an instance of Extraction 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_DOCUMENT_CLASSIFICATION
public static final String SERIALIZED_NAME_DOCUMENT_CLASSIFICATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXTRACTED_DATA
public static final String SERIALIZED_NAME_EXTRACTED_DATA
- See Also:
- Constant Field Values
-
-
Method Detail
-
documentId
public Extraction documentId(UUID documentId)
-
getDocumentId
@Nullable public UUID getDocumentId()
The unique identifier of the uploaded document.- Returns:
- documentId
-
setDocumentId
public void setDocumentId(UUID documentId)
-
documentClassification
public Extraction documentClassification(ExtractionDocumentClassification documentClassification)
-
getDocumentClassification
@Nullable public ExtractionDocumentClassification getDocumentClassification()
Get documentClassification- Returns:
- documentClassification
-
setDocumentClassification
public void setDocumentClassification(ExtractionDocumentClassification documentClassification)
-
extractedData
public Extraction extractedData(ExtractionExtractedData extractedData)
-
getExtractedData
@Nullable public ExtractionExtractedData getExtractedData()
Get extractedData- Returns:
- extractedData
-
setExtractedData
public void setExtractedData(ExtractionExtractedData extractedData)
-
putAdditionalProperty
public Extraction 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 Extraction 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 Extraction
-
fromJson
public static Extraction fromJson(String jsonString) throws IOException
Create an instance of Extraction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Extraction
- Throws:
IOException- if the JSON string is invalid with respect to Extraction
-
toJson
public String toJson()
Convert an instance of Extraction to an JSON string- Returns:
- JSON string
-
-