Partager via


AzureReachabilityReportLocation Class

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

Implements

public final class AzureReachabilityReportLocation
implements JsonSerializable<AzureReachabilityReportLocation>

Parameters that define a geographic location.

Constructor Summary

Constructor Description
AzureReachabilityReportLocation()

Creates an instance of AzureReachabilityReportLocation class.

Method Summary

Modifier and Type Method and Description
String city()

Get the city property: The name of the city or town.

String country()

Get the country property: The name of the country.

static AzureReachabilityReportLocation fromJson(JsonReader jsonReader)

Reads an instance of AzureReachabilityReportLocation from the JsonReader.

String state()

Get the state property: The name of the state.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzureReachabilityReportLocation withCity(String city)

Set the city property: The name of the city or town.

AzureReachabilityReportLocation withCountry(String country)

Set the country property: The name of the country.

AzureReachabilityReportLocation withState(String state)

Set the state property: The name of the state.

Methods inherited from java.lang.Object

Constructor Details

AzureReachabilityReportLocation

public AzureReachabilityReportLocation()

Creates an instance of AzureReachabilityReportLocation class.

Method Details

city

public String city()

Get the city property: The name of the city or town.

Returns:

the city value.

country

public String country()

Get the country property: The name of the country.

Returns:

the country value.

fromJson

public static AzureReachabilityReportLocation fromJson(JsonReader jsonReader)

Reads an instance of AzureReachabilityReportLocation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AzureReachabilityReportLocation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

state

public String state()

Get the state property: The name of the state.

Returns:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCity

public AzureReachabilityReportLocation withCity(String city)

Set the city property: The name of the city or town.

Parameters:

city - the city value to set.

Returns:

the AzureReachabilityReportLocation object itself.

withCountry

public AzureReachabilityReportLocation withCountry(String country)

Set the country property: The name of the country.

Parameters:

country - the country value to set.

Returns:

the AzureReachabilityReportLocation object itself.

withState

public AzureReachabilityReportLocation withState(String state)

Set the state property: The name of the state.

Parameters:

state - the state value to set.

Returns:

the AzureReachabilityReportLocation object itself.

Applies to