AvailableProvidersListState Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.AvailableProvidersListState

Implements

public final class AvailableProvidersListState
implements JsonSerializable<AvailableProvidersListState>

State details.

Constructor Summary

Constructor Description
AvailableProvidersListState()

Creates an instance of AvailableProvidersListState class.

Method Summary

Modifier and Type Method and Description
List<AvailableProvidersListCity> cities()

Get the cities property: List of available cities or towns in the state.

static AvailableProvidersListState fromJson(JsonReader jsonReader)

Reads an instance of AvailableProvidersListState from the JsonReader.

List<String> providers()

Get the providers property: A list of Internet service providers.

String stateName()

Get the stateName property: The state name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AvailableProvidersListState withCities(List<AvailableProvidersListCity> cities)

Set the cities property: List of available cities or towns in the state.

AvailableProvidersListState withProviders(List<String> providers)

Set the providers property: A list of Internet service providers.

AvailableProvidersListState withStateName(String stateName)

Set the stateName property: The state name.

Methods inherited from java.lang.Object

Constructor Details

AvailableProvidersListState

public AvailableProvidersListState()

Creates an instance of AvailableProvidersListState class.

Method Details

cities

public List cities()

Get the cities property: List of available cities or towns in the state.

Returns:

the cities value.

fromJson

public static AvailableProvidersListState fromJson(JsonReader jsonReader)

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.

providers

public List providers()

Get the providers property: A list of Internet service providers.

Returns:

the providers value.

stateName

public String stateName()

Get the stateName property: The state name.

Returns:

the stateName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCities

public AvailableProvidersListState withCities(List cities)

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.

withProviders

public AvailableProvidersListState withProviders(List providers)

Set the providers property: A list of Internet service providers.

Parameters:

providers - the providers value to set.

Returns:

the AvailableProvidersListState object itself.

withStateName

public AvailableProvidersListState withStateName(String stateName)

Set the stateName property: The state name.

Parameters:

stateName - the stateName value to set.

Returns:

the AvailableProvidersListState object itself.

Applies to