Class AvailableProvidersListCity

java.lang.Object
com.azure.resourcemanager.network.models.AvailableProvidersListCity
All Implemented Interfaces:
com.azure.json.JsonSerializable<AvailableProvidersListCity>

public final class AvailableProvidersListCity extends Object implements com.azure.json.JsonSerializable<AvailableProvidersListCity>
City or town details.
  • Constructor Details

    • AvailableProvidersListCity

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

    • cityName

      public String cityName()
      Get the cityName property: The city or town name.
      Returns:
      the cityName value.
    • withCityName

      public AvailableProvidersListCity withCityName(String cityName)
      Set the cityName property: The city or town name.
      Parameters:
      cityName - the cityName value to set.
      Returns:
      the AvailableProvidersListCity object itself.
    • providers

      public List<String> providers()
      Get the providers property: A list of Internet service providers.
      Returns:
      the providers value.
    • withProviders

      public AvailableProvidersListCity withProviders(List<String> providers)
      Set the providers property: A list of Internet service providers.
      Parameters:
      providers - the providers value to set.
      Returns:
      the AvailableProvidersListCity object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

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

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