Package com.onfido.model
Class DocumentPropertiesAddressLines
- java.lang.Object
-
- com.onfido.model.DocumentPropertiesAddressLines
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.9.0") public class DocumentPropertiesAddressLines extends Object
DocumentPropertiesAddressLines
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocumentPropertiesAddressLines.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CITYstatic StringSERIALIZED_NAME_COUNTRYstatic StringSERIALIZED_NAME_COUNTRY_CODEstatic StringSERIALIZED_NAME_POSTAL_CODEstatic StringSERIALIZED_NAME_STATEstatic StringSERIALIZED_NAME_STREET_ADDRESS
-
Constructor Summary
Constructors Constructor Description DocumentPropertiesAddressLines()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentPropertiesAddressLinescity(String city)DocumentPropertiesAddressLinescountry(String country)DocumentPropertiesAddressLinescountryCode(String countryCode)booleanequals(Object o)static DocumentPropertiesAddressLinesfromJson(String jsonString)Create an instance of DocumentPropertiesAddressLines given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetCity()Get cityStringgetCountry()Get countryStringgetCountryCode()Get countryCodeStringgetPostalCode()Get postalCodeStringgetState()Get stateStringgetStreetAddress()Get streetAddressinthashCode()DocumentPropertiesAddressLinespostalCode(String postalCode)DocumentPropertiesAddressLinesputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.voidsetCity(String city)voidsetCountry(String country)voidsetCountryCode(String countryCode)voidsetPostalCode(String postalCode)voidsetState(String state)voidsetStreetAddress(String streetAddress)DocumentPropertiesAddressLinesstate(String state)DocumentPropertiesAddressLinesstreetAddress(String streetAddress)StringtoJson()Convert an instance of DocumentPropertiesAddressLines 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_STREET_ADDRESS
public static final String SERIALIZED_NAME_STREET_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATE
public static final String SERIALIZED_NAME_STATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_POSTAL_CODE
public static final String SERIALIZED_NAME_POSTAL_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY
public static final String SERIALIZED_NAME_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CITY
public static final String SERIALIZED_NAME_CITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY_CODE
public static final String SERIALIZED_NAME_COUNTRY_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
streetAddress
public DocumentPropertiesAddressLines streetAddress(String streetAddress)
-
getStreetAddress
@Nullable public String getStreetAddress()
Get streetAddress- Returns:
- streetAddress
-
setStreetAddress
public void setStreetAddress(String streetAddress)
-
state
public DocumentPropertiesAddressLines state(String state)
-
setState
public void setState(String state)
-
postalCode
public DocumentPropertiesAddressLines postalCode(String postalCode)
-
setPostalCode
public void setPostalCode(String postalCode)
-
country
public DocumentPropertiesAddressLines country(String country)
-
setCountry
public void setCountry(String country)
-
city
public DocumentPropertiesAddressLines city(String city)
-
setCity
public void setCity(String city)
-
countryCode
public DocumentPropertiesAddressLines countryCode(String countryCode)
-
setCountryCode
public void setCountryCode(String countryCode)
-
putAdditionalProperty
public DocumentPropertiesAddressLines 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 DocumentPropertiesAddressLines 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 DocumentPropertiesAddressLines
-
fromJson
public static DocumentPropertiesAddressLines fromJson(String jsonString) throws IOException
Create an instance of DocumentPropertiesAddressLines given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DocumentPropertiesAddressLines
- Throws:
IOException- if the JSON string is invalid with respect to DocumentPropertiesAddressLines
-
toJson
public String toJson()
Convert an instance of DocumentPropertiesAddressLines to an JSON string- Returns:
- JSON string
-
-