Package com.onfido.model
Class DocumentPropertiesDrivingLicenceInformation
- java.lang.Object
-
- com.onfido.model.DocumentPropertiesDrivingLicenceInformation
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class DocumentPropertiesDrivingLicenceInformation extends Object
DocumentPropertiesDrivingLicenceInformation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocumentPropertiesDrivingLicenceInformation.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CATEGORYstatic StringSERIALIZED_NAME_CODESstatic StringSERIALIZED_NAME_EXPIRY_DATEstatic StringSERIALIZED_NAME_OBTAINMENT_DATE
-
Constructor Summary
Constructors Constructor Description DocumentPropertiesDrivingLicenceInformation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentPropertiesDrivingLicenceInformationcategory(String category)DocumentPropertiesDrivingLicenceInformationcodes(String codes)booleanequals(Object o)DocumentPropertiesDrivingLicenceInformationexpiryDate(LocalDate expiryDate)static DocumentPropertiesDrivingLicenceInformationfromJson(String jsonString)Create an instance of DocumentPropertiesDrivingLicenceInformation given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetCategory()Get categoryStringgetCodes()Get codesLocalDategetExpiryDate()Get expiryDateLocalDategetObtainmentDate()Get obtainmentDateinthashCode()DocumentPropertiesDrivingLicenceInformationobtainmentDate(LocalDate obtainmentDate)DocumentPropertiesDrivingLicenceInformationputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetCategory(String category)voidsetCodes(String codes)voidsetExpiryDate(LocalDate expiryDate)voidsetObtainmentDate(LocalDate obtainmentDate)StringtoJson()Convert an instance of DocumentPropertiesDrivingLicenceInformation 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_CATEGORY
public static final String SERIALIZED_NAME_CATEGORY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OBTAINMENT_DATE
public static final String SERIALIZED_NAME_OBTAINMENT_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRY_DATE
public static final String SERIALIZED_NAME_EXPIRY_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CODES
public static final String SERIALIZED_NAME_CODES
- See Also:
- Constant Field Values
-
-
Method Detail
-
category
public DocumentPropertiesDrivingLicenceInformation category(String category)
-
setCategory
public void setCategory(String category)
-
obtainmentDate
public DocumentPropertiesDrivingLicenceInformation obtainmentDate(LocalDate obtainmentDate)
-
getObtainmentDate
@Nullable public LocalDate getObtainmentDate()
Get obtainmentDate- Returns:
- obtainmentDate
-
setObtainmentDate
public void setObtainmentDate(LocalDate obtainmentDate)
-
expiryDate
public DocumentPropertiesDrivingLicenceInformation expiryDate(LocalDate expiryDate)
-
setExpiryDate
public void setExpiryDate(LocalDate expiryDate)
-
codes
public DocumentPropertiesDrivingLicenceInformation codes(String codes)
-
setCodes
public void setCodes(String codes)
-
putAdditionalProperty
public DocumentPropertiesDrivingLicenceInformation 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 DocumentPropertiesDrivingLicenceInformation 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 DocumentPropertiesDrivingLicenceInformation
-
fromJson
public static DocumentPropertiesDrivingLicenceInformation fromJson(String jsonString) throws IOException
Create an instance of DocumentPropertiesDrivingLicenceInformation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DocumentPropertiesDrivingLicenceInformation
- Throws:
IOException- if the JSON string is invalid with respect to DocumentPropertiesDrivingLicenceInformation
-
toJson
public String toJson()
Convert an instance of DocumentPropertiesDrivingLicenceInformation to an JSON string- Returns:
- JSON string
-
-