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 Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of AddressValue from the JsonReader.
    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.
    Get the house property: Build name, such as World Trade Center.
    Get the houseNumber property: House or building number.
    Get the level property: Floor number, such as 3F.
    Get the poBox property: Post office box number.
    Get the postalCode property: Postal code used for mail sorting.
    Get the road property: Street name.
    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.
    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

      public String getHouseNumber()
      Get the houseNumber property: House or building number.
      Returns:
      the houseNumber value.
    • getPoBox

      public String getPoBox()
      Get the poBox property: Post office box number.
      Returns:
      the poBox value.
    • getRoad

      public String getRoad()
      Get the road property: Street name.
      Returns:
      the road value.
    • getCity

      public String getCity()
      Get the city property: Name of city, town, village, etc.
      Returns:
      the city value.
    • getState

      public String getState()
      Get the state property: First-level administrative division.
      Returns:
      the state value.
    • getPostalCode

      public String getPostalCode()
      Get the postalCode property: Postal code used for mail sorting.
      Returns:
      the postalCode value.
    • getCountryRegion

      public String getCountryRegion()
      Get the countryRegion property: Country/region.
      Returns:
      the countryRegion value.
    • getStreetAddress

      public String getStreetAddress()
      Get the streetAddress property: Street-level address, excluding city, state, countryRegion, and postalCode.
      Returns:
      the streetAddress value.
    • getUnit

      public String getUnit()
      Get the unit property: Apartment or office number.
      Returns:
      the unit value.
    • getCityDistrict

      public String 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

      public String getStateDistrict()
      Get the stateDistrict property: Second-level administrative division used in certain locales.
      Returns:
      the stateDistrict value.
    • getSuburb

      public String getSuburb()
      Get the suburb property: Unofficial neighborhood name, like Chinatown.
      Returns:
      the suburb value.
    • getHouse

      public String getHouse()
      Get the house property: Build name, such as World Trade Center.
      Returns:
      the house value.
    • getLevel

      public String getLevel()
      Get the level property: Floor number, such as 3F.
      Returns:
      the level value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AddressValue>
      Throws:
      IOException
    • fromJson

      public static AddressValue fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.