Class AvailableProvidersListState
java.lang.Object
com.azure.resourcemanager.network.models.AvailableProvidersListState
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AvailableProvidersListState>
public final class AvailableProvidersListState
extends Object
implements com.azure.json.JsonSerializable<AvailableProvidersListState>
State details.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AvailableProvidersListState class. -
Method Summary
Modifier and TypeMethodDescriptioncities()Get the cities property: List of available cities or towns in the state.static AvailableProvidersListStatefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AvailableProvidersListState from the JsonReader.Get the providers property: A list of Internet service providers.Get the stateName property: The state name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCities(List<AvailableProvidersListCity> cities) Set the cities property: List of available cities or towns in the state.withProviders(List<String> providers) Set the providers property: A list of Internet service providers.withStateName(String stateName) Set the stateName property: The state name.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
-
AvailableProvidersListState
public AvailableProvidersListState()Creates an instance of AvailableProvidersListState class.
-
-
Method Details
-
stateName
Get the stateName property: The state name.- Returns:
- the stateName value.
-
withStateName
Set the stateName property: The state name.- Parameters:
stateName- the stateName value to set.- Returns:
- the AvailableProvidersListState 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 AvailableProvidersListState object itself.
-
cities
Get the cities property: List of available cities or towns in the state.- Returns:
- the cities value.
-
withCities
Set the cities property: List of available cities or towns in the state.- Parameters:
cities- the cities value to set.- Returns:
- the AvailableProvidersListState 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<AvailableProvidersListState>- Throws:
IOException
-
fromJson
public static AvailableProvidersListState fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AvailableProvidersListState from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AvailableProvidersListState 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 AvailableProvidersListState.
-