Package com.azure.maps.search.models
Class MapsSearchAddressCountryRegion
java.lang.Object
com.azure.maps.search.models.MapsSearchAddressCountryRegion
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MapsSearchAddressCountryRegion>
public final class MapsSearchAddressCountryRegion
extends Object
implements com.azure.json.JsonSerializable<MapsSearchAddressCountryRegion>
The MapsSearchAddressCountryRegion model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MapsSearchAddressCountryRegion class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MapsSearchAddressCountryRegion from the JsonReader.getISO()Get the iSO property: ISO of country/region.getName()Get the name property: name of country/region.Set the iSO property: ISO of country/region.Set the name property: name of country/region.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
-
MapsSearchAddressCountryRegion
public MapsSearchAddressCountryRegion()Creates an instance of MapsSearchAddressCountryRegion class.
-
-
Method Details
-
getISO
Get the iSO property: ISO of country/region.- Returns:
- the iSO value.
-
setISO
Set the iSO property: ISO of country/region.- Parameters:
iSO- the iSO value to set.- Returns:
- the MapsSearchAddressCountryRegion object itself.
-
getName
Get the name property: name of country/region.- Returns:
- the name value.
-
setName
Set the name property: name of country/region.- Parameters:
name- the name value to set.- Returns:
- the MapsSearchAddressCountryRegion object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MapsSearchAddressCountryRegion>- Throws:
IOException
-
fromJson
public static MapsSearchAddressCountryRegion fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MapsSearchAddressCountryRegion from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MapsSearchAddressCountryRegion 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 MapsSearchAddressCountryRegion.
-