Class MapsSearchAddress

java.lang.Object
com.azure.maps.search.models.MapsSearchAddress
All Implemented Interfaces:
com.azure.json.JsonSerializable<MapsSearchAddress>

public final class MapsSearchAddress extends Object implements com.azure.json.JsonSerializable<MapsSearchAddress>
The address of the result.
  • Constructor Details

    • MapsSearchAddress

      public MapsSearchAddress()
      Creates an instance of MapsSearchAddress class.
  • Method Details

    • getAddressLine

      public String getAddressLine()
      Get the addressLine property: AddressLine that includes Street Name and Number.
      Returns:
      the addressLine value.
    • setAddressLine

      public MapsSearchAddress setAddressLine(String addressLine)
      Set the addressLine property: AddressLine that includes Street Name and Number.
      Parameters:
      addressLine - the addressLine value to set.
      Returns:
      the MapsSearchAddress object itself.
    • getLocality

      public String getLocality()
      Get the locality property: locality property.
      Returns:
      the locality value.
    • setLocality

      public MapsSearchAddress setLocality(String locality)
      Set the locality property: locality property.
      Parameters:
      locality - the locality value to set.
      Returns:
      the MapsSearchAddress object itself.
    • getNeighborhood

      public String getNeighborhood()
      Get the neighborhood property: neighborhood property.
      Returns:
      the neighborhood value.
    • setNeighborhood

      public MapsSearchAddress setNeighborhood(String neighborhood)
      Set the neighborhood property: neighborhood property.
      Parameters:
      neighborhood - the neighborhood value to set.
      Returns:
      the MapsSearchAddress object itself.
    • getAdminDistricts

      public List<com.azure.maps.search.implementation.models.MapsSearchAddressAdminDistrictsItem> getAdminDistricts()
      Get the adminDistricts property: The subdivision name in the country or region for an address. This element is typically treated as the first order administrative subdivision, but in some cases it also contains the second, third, or fourth order subdivision in a country, dependency, or region.
      Returns:
      the adminDistricts value.
    • setAdminDistricts

      public MapsSearchAddress setAdminDistricts(List<com.azure.maps.search.implementation.models.MapsSearchAddressAdminDistrictsItem> adminDistricts)
      Set the adminDistricts property: The subdivision name in the country or region for an address. This element is typically treated as the first order administrative subdivision, but in some cases it also contains the second, third, or fourth order subdivision in a country, dependency, or region.
      Parameters:
      adminDistricts - the adminDistricts value to set.
      Returns:
      the MapsSearchAddress object itself.
    • getPostalCode

      public String getPostalCode()
      Get the postalCode property: Postal Code property.
      Returns:
      the postalCode value.
    • setPostalCode

      public MapsSearchAddress setPostalCode(String postalCode)
      Set the postalCode property: Postal Code property.
      Parameters:
      postalCode - the postalCode value to set.
      Returns:
      the MapsSearchAddress object itself.
    • getCountryRegion

      public MapsSearchAddressCountryRegion getCountryRegion()
      Get the countryRegion property: The countryRegion property.
      Returns:
      the countryRegion value.
    • setCountryRegion

      public MapsSearchAddress setCountryRegion(MapsSearchAddressCountryRegion countryRegion)
      Set the countryRegion property: The countryRegion property.
      Parameters:
      countryRegion - the countryRegion value to set.
      Returns:
      the MapsSearchAddress object itself.
    • getFormattedAddress

      public String getFormattedAddress()
      Get the formattedAddress property: Formatted Address property.
      Returns:
      the formattedAddress value.
    • setFormattedAddress

      public MapsSearchAddress setFormattedAddress(String formattedAddress)
      Set the formattedAddress property: Formatted Address property.
      Parameters:
      formattedAddress - the formattedAddress value to set.
      Returns:
      the MapsSearchAddress object itself.
    • getIntersection

      public Intersection getIntersection()
      Get the intersection property: The address of the result.
      Returns:
      the intersection value.
    • setIntersection

      public MapsSearchAddress setIntersection(Intersection intersection)
      Set the intersection property: The address of the result.
      Parameters:
      intersection - the intersection value to set.
      Returns:
      the MapsSearchAddress object itself.
    • toJson

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

      public static MapsSearchAddress fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of MapsSearchAddress from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of MapsSearchAddress 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 MapsSearchAddress.