AvailableProvidersListCountry Class

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

Implements

public final class AvailableProvidersListCountry
implements JsonSerializable<AvailableProvidersListCountry>

Country details.

Constructor Summary

Constructor Description
AvailableProvidersListCountry()

Creates an instance of AvailableProvidersListCountry class.

Method Summary

Modifier and Type Method and Description
String countryName()

Get the countryName property: The country name.

static AvailableProvidersListCountry fromJson(JsonReader jsonReader)

Reads an instance of AvailableProvidersListCountry from the JsonReader.

List<String> providers()

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

List<AvailableProvidersListState> states()

Get the states property: List of available states in the country.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AvailableProvidersListCountry withCountryName(String countryName)

Set the countryName property: The country name.

AvailableProvidersListCountry withProviders(List<String> providers)

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

AvailableProvidersListCountry withStates(List<AvailableProvidersListState> states)

Set the states property: List of available states in the country.

Methods inherited from java.lang.Object

Constructor Details

AvailableProvidersListCountry

public AvailableProvidersListCountry()

Creates an instance of AvailableProvidersListCountry class.

Method Details

countryName

public String countryName()

Get the countryName property: The country name.

Returns:

the countryName value.

fromJson

public static AvailableProvidersListCountry fromJson(JsonReader jsonReader)

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.

providers

public List providers()

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

Returns:

the providers value.

states

public List states()

Get the states property: List of available states in the country.

Returns:

the states value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCountryName

public AvailableProvidersListCountry withCountryName(String countryName)

Set the countryName property: The country name.

Parameters:

countryName - the countryName value to set.

Returns:

the AvailableProvidersListCountry object itself.

withProviders

public AvailableProvidersListCountry withProviders(List providers)

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

Parameters:

providers - the providers value to set.

Returns:

the AvailableProvidersListCountry object itself.

withStates

public AvailableProvidersListCountry withStates(List states)

Set the states property: List of available states in the country.

Parameters:

states - the states value to set.

Returns:

the AvailableProvidersListCountry object itself.

Applies to