Class AvailableProvidersListCountry

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

public final class AvailableProvidersListCountry extends Object implements com.azure.json.JsonSerializable<AvailableProvidersListCountry>
Country details.
  • Constructor Details

    • AvailableProvidersListCountry

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

    • countryName

      public String countryName()
      Get the countryName property: The country name.
      Returns:
      the countryName value.
    • withCountryName

      public AvailableProvidersListCountry withCountryName(String countryName)
      Set the countryName property: The country name.
      Parameters:
      countryName - the countryName value to set.
      Returns:
      the AvailableProvidersListCountry object itself.
    • providers

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

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

      Get the states property: List of available states in the country.
      Returns:
      the states value.
    • withStates

      Set the states property: List of available states in the country.
      Parameters:
      states - the states value to set.
      Returns:
      the AvailableProvidersListCountry 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<AvailableProvidersListCountry>
      Throws:
      IOException
    • fromJson

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