Class AvailableProvidersListParameters
java.lang.Object
com.azure.resourcemanager.network.models.AvailableProvidersListParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AvailableProvidersListParameters>
public final class AvailableProvidersListParameters
extends Object
implements com.azure.json.JsonSerializable<AvailableProvidersListParameters>
Constraints that determine the list of available Internet service providers.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AvailableProvidersListParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the azureLocations property: A list of Azure regions.city()Get the city property: The city or town for available providers list.country()Get the country property: The country for available providers list.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AvailableProvidersListParameters from the JsonReader.state()Get the state property: The state for available providers list.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAzureLocations(List<String> azureLocations) Set the azureLocations property: A list of Azure regions.Set the city property: The city or town for available providers list.withCountry(String country) Set the country property: The country for available providers list.Set the state property: The state for available providers list.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
-
AvailableProvidersListParameters
public AvailableProvidersListParameters()Creates an instance of AvailableProvidersListParameters class.
-
-
Method Details
-
azureLocations
Get the azureLocations property: A list of Azure regions.- Returns:
- the azureLocations value.
-
withAzureLocations
Set the azureLocations property: A list of Azure regions.- Parameters:
azureLocations- the azureLocations value to set.- Returns:
- the AvailableProvidersListParameters object itself.
-
country
Get the country property: The country for available providers list.- Returns:
- the country value.
-
withCountry
Set the country property: The country for available providers list.- Parameters:
country- the country value to set.- Returns:
- the AvailableProvidersListParameters object itself.
-
state
Get the state property: The state for available providers list.- Returns:
- the state value.
-
withState
Set the state property: The state for available providers list.- Parameters:
state- the state value to set.- Returns:
- the AvailableProvidersListParameters object itself.
-
city
Get the city property: The city or town for available providers list.- Returns:
- the city value.
-
withCity
Set the city property: The city or town for available providers list.- Parameters:
city- the city value to set.- Returns:
- the AvailableProvidersListParameters 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<AvailableProvidersListParameters>- Throws:
IOException
-
fromJson
public static AvailableProvidersListParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AvailableProvidersListParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AvailableProvidersListParameters 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 AvailableProvidersListParameters.
-