Package com.onfido.model
Class DocumentPropertiesDocumentClassification
- java.lang.Object
-
- com.onfido.model.DocumentPropertiesDocumentClassification
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class DocumentPropertiesDocumentClassification extends Object
DocumentPropertiesDocumentClassification
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocumentPropertiesDocumentClassification.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DOCUMENT_TYPEstatic StringSERIALIZED_NAME_ISSUING_COUNTRYstatic StringSERIALIZED_NAME_ISSUING_STATE
-
Constructor Summary
Constructors Constructor Description DocumentPropertiesDocumentClassification()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentPropertiesDocumentClassificationdocumentType(String documentType)booleanequals(Object o)static DocumentPropertiesDocumentClassificationfromJson(String jsonString)Create an instance of DocumentPropertiesDocumentClassification given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetDocumentType()Get documentTypeStringgetIssuingCountry()Get issuingCountryStringgetIssuingState()Get issuingStateinthashCode()DocumentPropertiesDocumentClassificationissuingCountry(String issuingCountry)DocumentPropertiesDocumentClassificationissuingState(String issuingState)DocumentPropertiesDocumentClassificationputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetDocumentType(String documentType)voidsetIssuingCountry(String issuingCountry)voidsetIssuingState(String issuingState)StringtoJson()Convert an instance of DocumentPropertiesDocumentClassification 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_ISSUING_COUNTRY
public static final String SERIALIZED_NAME_ISSUING_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DOCUMENT_TYPE
public static final String SERIALIZED_NAME_DOCUMENT_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ISSUING_STATE
public static final String SERIALIZED_NAME_ISSUING_STATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
issuingCountry
public DocumentPropertiesDocumentClassification issuingCountry(String issuingCountry)
-
getIssuingCountry
@Nullable public String getIssuingCountry()
Get issuingCountry- Returns:
- issuingCountry
-
setIssuingCountry
public void setIssuingCountry(String issuingCountry)
-
documentType
public DocumentPropertiesDocumentClassification documentType(String documentType)
-
setDocumentType
public void setDocumentType(String documentType)
-
issuingState
public DocumentPropertiesDocumentClassification issuingState(String issuingState)
-
setIssuingState
public void setIssuingState(String issuingState)
-
putAdditionalProperty
public DocumentPropertiesDocumentClassification 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 DocumentPropertiesDocumentClassification 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 DocumentPropertiesDocumentClassification
-
fromJson
public static DocumentPropertiesDocumentClassification fromJson(String jsonString) throws IOException
Create an instance of DocumentPropertiesDocumentClassification given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DocumentPropertiesDocumentClassification
- Throws:
IOException- if the JSON string is invalid with respect to DocumentPropertiesDocumentClassification
-
toJson
public String toJson()
Convert an instance of DocumentPropertiesDocumentClassification to an JSON string- Returns:
- JSON string
-
-