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 Summary
ConstructorsConstructorDescriptionCreates an instance of AvailableProvidersListCountry class. -
Method Summary
Modifier and TypeMethodDescriptionGet the countryName property: The country name.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AvailableProvidersListCountry from the JsonReader.Get the providers property: A list of Internet service providers.states()Get the states property: List of available states in the country.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCountryName(String countryName) Set the countryName property: The country name.withProviders(List<String> providers) Set the providers property: A list of Internet service providers.withStates(List<AvailableProvidersListState> states) Set the states property: List of available states in the country.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
-
AvailableProvidersListCountry
public AvailableProvidersListCountry()Creates an instance of AvailableProvidersListCountry class.
-
-
Method Details
-
countryName
Get the countryName property: The country name.- Returns:
- the countryName value.
-
withCountryName
Set the countryName property: The country name.- Parameters:
countryName- the countryName value to set.- Returns:
- the AvailableProvidersListCountry object itself.
-
providers
Get the providers property: A list of Internet service providers.- Returns:
- the providers value.
-
withProviders
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
- Specified by:
toJsonin interfacecom.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.
-