Package com.onfido.model
Class ApplicantResponse
- java.lang.Object
-
- com.onfido.model.ApplicantResponse
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class ApplicantResponse extends Object
ApplicantResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplicantResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ADDRESSstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_DELETE_ATstatic StringSERIALIZED_NAME_FIRST_NAMEstatic StringSERIALIZED_NAME_HREFstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LAST_NAMEstatic StringSERIALIZED_NAME_LOCATIONstatic StringSERIALIZED_NAME_SANDBOX
-
Constructor Summary
Constructors Constructor Description ApplicantResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicantResponseaddress(Address address)ApplicantResponsecreatedAt(OffsetDateTime createdAt)ApplicantResponsedeleteAt(OffsetDateTime deleteAt)booleanequals(Object o)ApplicantResponsefirstName(String firstName)static ApplicantResponsefromJson(String jsonString)Create an instance of ApplicantResponse given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.AddressgetAddress()Get addressOffsetDateTimegetCreatedAt()The date and time when this applicant was created.OffsetDateTimegetDeleteAt()The date and time when this applicant is scheduled to be deleted.StringgetFirstName()The applicant's first nameStringgetHref()The uri of this resource.UUIDgetId()The unique identifier for the applicant.StringgetLastName()The applicant's surnameLocationgetLocation()Get locationBooleangetSandbox()Get sandboxinthashCode()ApplicantResponsehref(String href)ApplicantResponseid(UUID id)ApplicantResponselastName(String lastName)ApplicantResponselocation(Location location)ApplicantResponseputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.ApplicantResponsesandbox(Boolean sandbox)voidsetAddress(Address address)voidsetCreatedAt(OffsetDateTime createdAt)voidsetDeleteAt(OffsetDateTime deleteAt)voidsetFirstName(String firstName)voidsetHref(String href)voidsetId(UUID id)voidsetLastName(String lastName)voidsetLocation(Location location)voidsetSandbox(Boolean sandbox)StringtoJson()Convert an instance of ApplicantResponse 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_FIRST_NAME
public static final String SERIALIZED_NAME_FIRST_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LAST_NAME
public static final String SERIALIZED_NAME_LAST_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DELETE_AT
public static final String SERIALIZED_NAME_DELETE_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HREF
public static final String SERIALIZED_NAME_HREF
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SANDBOX
public static final String SERIALIZED_NAME_SANDBOX
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ADDRESS
public static final String SERIALIZED_NAME_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LOCATION
public static final String SERIALIZED_NAME_LOCATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
firstName
public ApplicantResponse firstName(String firstName)
-
setFirstName
public void setFirstName(String firstName)
-
lastName
public ApplicantResponse lastName(String lastName)
-
setLastName
public void setLastName(String lastName)
-
id
public ApplicantResponse id(UUID id)
-
setId
public void setId(UUID id)
-
createdAt
public ApplicantResponse createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
The date and time when this applicant was created.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
deleteAt
public ApplicantResponse deleteAt(OffsetDateTime deleteAt)
-
getDeleteAt
@Nullable public OffsetDateTime getDeleteAt()
The date and time when this applicant is scheduled to be deleted.- Returns:
- deleteAt
-
setDeleteAt
public void setDeleteAt(OffsetDateTime deleteAt)
-
href
public ApplicantResponse href(String href)
-
setHref
public void setHref(String href)
-
sandbox
public ApplicantResponse sandbox(Boolean sandbox)
-
setSandbox
public void setSandbox(Boolean sandbox)
-
address
public ApplicantResponse address(Address address)
-
setAddress
public void setAddress(Address address)
-
location
public ApplicantResponse location(Location location)
-
setLocation
public void setLocation(Location location)
-
putAdditionalProperty
public ApplicantResponse 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 ApplicantResponse 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 ApplicantResponse
-
fromJson
public static ApplicantResponse fromJson(String jsonString) throws IOException
Create an instance of ApplicantResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ApplicantResponse
- Throws:
IOException- if the JSON string is invalid with respect to ApplicantResponse
-
toJson
public String toJson()
Convert an instance of ApplicantResponse to an JSON string- Returns:
- JSON string
-
-