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 Details

    • MapsSearchAddressCountryRegion

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

    • getISO

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

      public String getName()
      Get the name property: name of country/region.
      Returns:
      the name value.
    • setName

      public MapsSearchAddressCountryRegion setName(String name)
      Set the name property: name of country/region.
      Parameters:
      name - the name value to set.
      Returns:
      the MapsSearchAddressCountryRegion 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<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.