Class AddressValue
java.lang.Object
com.azure.ai.documentintelligence.models.AddressValue
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AddressValue>
public final class AddressValue
extends Object
implements com.azure.json.JsonSerializable<AddressValue>
Address field value.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AddressValue
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AddressValue from the JsonReader.getCity()
Get the city property: Name of city, town, village, etc.Get the cityDistrict property: Districts or boroughs within a city, such as Brooklyn in New York City or City of Westminster in London.Get the countryRegion property: Country/region.getHouse()
Get the house property: Build name, such as World Trade Center.Get the houseNumber property: House or building number.getLevel()
Get the level property: Floor number, such as 3F.getPoBox()
Get the poBox property: Post office box number.Get the postalCode property: Postal code used for mail sorting.getRoad()
Get the road property: Street name.getState()
Get the state property: First-level administrative division.Get the stateDistrict property: Second-level administrative division used in certain locales.Get the streetAddress property: Street-level address, excluding city, state, countryRegion, and postalCode.Get the suburb property: Unofficial neighborhood name, like Chinatown.getUnit()
Get the unit property: Apartment or office number.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getHouseNumber
Get the houseNumber property: House or building number.- Returns:
- the houseNumber value.
-
getPoBox
Get the poBox property: Post office box number.- Returns:
- the poBox value.
-
getRoad
Get the road property: Street name.- Returns:
- the road value.
-
getCity
Get the city property: Name of city, town, village, etc.- Returns:
- the city value.
-
getState
Get the state property: First-level administrative division.- Returns:
- the state value.
-
getPostalCode
Get the postalCode property: Postal code used for mail sorting.- Returns:
- the postalCode value.
-
getCountryRegion
Get the countryRegion property: Country/region.- Returns:
- the countryRegion value.
-
getStreetAddress
Get the streetAddress property: Street-level address, excluding city, state, countryRegion, and postalCode.- Returns:
- the streetAddress value.
-
getUnit
Get the unit property: Apartment or office number.- Returns:
- the unit value.
-
getCityDistrict
Get the cityDistrict property: Districts or boroughs within a city, such as Brooklyn in New York City or City of Westminster in London.- Returns:
- the cityDistrict value.
-
getStateDistrict
Get the stateDistrict property: Second-level administrative division used in certain locales.- Returns:
- the stateDistrict value.
-
getSuburb
Get the suburb property: Unofficial neighborhood name, like Chinatown.- Returns:
- the suburb value.
-
getHouse
Get the house property: Build name, such as World Trade Center.- Returns:
- the house value.
-
getLevel
Get the level property: Floor number, such as 3F.- Returns:
- the level value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<AddressValue>
- Throws:
IOException
-
fromJson
Reads an instance of AddressValue from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AddressValue if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the AddressValue.
-