다음을 통해 공유


AvailableProvidersListCity Class

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

Implements

public final class AvailableProvidersListCity
implements JsonSerializable<AvailableProvidersListCity>

City or town details.

Constructor Summary

Constructor Description
AvailableProvidersListCity()

Creates an instance of AvailableProvidersListCity class.

Method Summary

Modifier and Type Method and Description
String cityName()

Get the cityName property: The city or town name.

static AvailableProvidersListCity fromJson(JsonReader jsonReader)

Reads an instance of AvailableProvidersListCity from the JsonReader.

List<String> providers()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AvailableProvidersListCity withCityName(String cityName)

Set the cityName property: The city or town name.

AvailableProvidersListCity withProviders(List<String> providers)

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

Methods inherited from java.lang.Object

Constructor Details

AvailableProvidersListCity

public AvailableProvidersListCity()

Creates an instance of AvailableProvidersListCity class.

Method Details

cityName

public String cityName()

Get the cityName property: The city or town name.

Returns:

the cityName value.

fromJson

public static AvailableProvidersListCity fromJson(JsonReader jsonReader)

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.

providers

public List providers()

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

Returns:

the providers value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCityName

public AvailableProvidersListCity withCityName(String cityName)

Set the cityName property: The city or town name.

Parameters:

cityName - the cityName value to set.

Returns:

the AvailableProvidersListCity object itself.

withProviders

public AvailableProvidersListCity withProviders(List providers)

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

Parameters:

providers - the providers value to set.

Returns:

the AvailableProvidersListCity object itself.

Applies to