Package com.azure.maps.search.models
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MapsSearchAddressfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MapsSearchAddress from the JsonReader.Get the addressLine property: AddressLine that includes Street Name and Number.List<com.azure.maps.search.implementation.models.MapsSearchAddressAdminDistrictsItem> Get the adminDistricts property: The subdivision name in the country or region for an address.Get the countryRegion property: The countryRegion property.Get the formattedAddress property: Formatted Address property.Get the intersection property: The address of the result.Get the locality property: locality property.Get the neighborhood property: neighborhood property.Get the postalCode property: Postal Code property.setAddressLine(String addressLine) Set the addressLine property: AddressLine that includes Street Name and Number.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.setCountryRegion(MapsSearchAddressCountryRegion countryRegion) Set the countryRegion property: The countryRegion property.setFormattedAddress(String formattedAddress) Set the formattedAddress property: Formatted Address property.setIntersection(Intersection intersection) Set the intersection property: The address of the result.setLocality(String locality) Set the locality property: locality property.setNeighborhood(String neighborhood) Set the neighborhood property: neighborhood property.setPostalCode(String postalCode) Set the postalCode property: Postal Code property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MapsSearchAddress
public MapsSearchAddress()Creates an instance of MapsSearchAddress class.
-
-
Method Details
-
getAddressLine
Get the addressLine property: AddressLine that includes Street Name and Number.- Returns:
- the addressLine value.
-
setAddressLine
Set the addressLine property: AddressLine that includes Street Name and Number.- Parameters:
addressLine- the addressLine value to set.- Returns:
- the MapsSearchAddress object itself.
-
getLocality
Get the locality property: locality property.- Returns:
- the locality value.
-
setLocality
Set the locality property: locality property.- Parameters:
locality- the locality value to set.- Returns:
- the MapsSearchAddress object itself.
-
getNeighborhood
Get the neighborhood property: neighborhood property.- Returns:
- the neighborhood value.
-
setNeighborhood
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
Get the postalCode property: Postal Code property.- Returns:
- the postalCode value.
-
setPostalCode
Set the postalCode property: Postal Code property.- Parameters:
postalCode- the postalCode value to set.- Returns:
- the MapsSearchAddress object itself.
-
getCountryRegion
Get the countryRegion property: The countryRegion property.- Returns:
- the countryRegion value.
-
setCountryRegion
Set the countryRegion property: The countryRegion property.- Parameters:
countryRegion- the countryRegion value to set.- Returns:
- the MapsSearchAddress object itself.
-
getFormattedAddress
Get the formattedAddress property: Formatted Address property.- Returns:
- the formattedAddress value.
-
setFormattedAddress
Set the formattedAddress property: Formatted Address property.- Parameters:
formattedAddress- the formattedAddress value to set.- Returns:
- the MapsSearchAddress object itself.
-
getIntersection
Get the intersection property: The address of the result.- Returns:
- the intersection value.
-
setIntersection
Set the intersection property: The address of the result.- Parameters:
intersection- the intersection value to set.- Returns:
- the MapsSearchAddress object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MapsSearchAddress>- Throws:
IOException
-
fromJson
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.
-