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 Summary
ConstructorsConstructorDescriptionCreates an instance of AvailableProvidersListCity class. -
Method Summary
Modifier and TypeMethodDescriptioncityName()Get the cityName property: The city or town name.static AvailableProvidersListCityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AvailableProvidersListCity from the JsonReader.Get the providers property: A list of Internet service providers.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCityName(String cityName) Set the cityName property: The city or town name.withProviders(List<String> providers) Set the providers property: A list of Internet service providers.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
-
AvailableProvidersListCity
public AvailableProvidersListCity()Creates an instance of AvailableProvidersListCity class.
-
-
Method Details
-
cityName
Get the cityName property: The city or town name.- Returns:
- the cityName value.
-
withCityName
Set the cityName property: The city or town name.- Parameters:
cityName- the cityName value to set.- Returns:
- the AvailableProvidersListCity 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 AvailableProvidersListCity 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<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.
-