AzureReachabilityReportLocation Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. AzureReachabilityReportLocation
- com.
Implements
public final class AzureReachabilityReportLocation
implements JsonSerializable<AzureReachabilityReportLocation>
Parameters that define a geographic location.
Constructor Summary
Constructor | Description |
---|---|
AzureReachabilityReportLocation() |
Creates an instance of Azure |
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
Azure |
fromJson(JsonReader jsonReader)
Reads an instance of Azure |
String |
state()
Get the state property: The name of the state. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Azure |
withCity(String city)
Set the city property: The name of the city or town. |
Azure |
withCountry(String country)
Set the country property: The name of the country. |
Azure |
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:
country
public String country()
Get the country property: The name of the country.
Returns:
fromJson
public static AzureReachabilityReportLocation fromJson(JsonReader jsonReader)
Reads an instance of AzureReachabilityReportLocation from the JsonReader.
Parameters:
Returns:
Throws:
state
public String state()
Get the state property: The name of the state.
Returns:
toJson
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:
Returns:
withCountry
public AzureReachabilityReportLocation withCountry(String country)
Set the country property: The name of the country.
Parameters:
Returns:
withState
public AzureReachabilityReportLocation withState(String state)
Set the state property: The name of the state.
Parameters:
Returns:
Applies to
Azure SDK for Java