Class AzureReachabilityReportLocation
java.lang.Object
com.azure.resourcemanager.network.models.AzureReachabilityReportLocation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureReachabilityReportLocation>
public final class AzureReachabilityReportLocation
extends Object
implements com.azure.json.JsonSerializable<AzureReachabilityReportLocation>
Parameters that define a geographic location.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AzureReachabilityReportLocation class. -
Method Summary
Modifier and TypeMethodDescriptioncity()Get the city property: The name of the city or town.country()Get the country property: The name of the country.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureReachabilityReportLocation from the JsonReader.state()Get the state property: The name of the state.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the city property: The name of the city or town.withCountry(String country) Set the country property: The name of the country.Set the state property: The name of the state.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AzureReachabilityReportLocation
public AzureReachabilityReportLocation()Creates an instance of AzureReachabilityReportLocation class.
-
-
Method Details
-
country
Get the country property: The name of the country.- Returns:
- the country value.
-
withCountry
Set the country property: The name of the country.- Parameters:
country- the country value to set.- Returns:
- the AzureReachabilityReportLocation object itself.
-
state
Get the state property: The name of the state.- Returns:
- the state value.
-
withState
Set the state property: The name of the state.- Parameters:
state- the state value to set.- Returns:
- the AzureReachabilityReportLocation object itself.
-
city
Get the city property: The name of the city or town.- Returns:
- the city value.
-
withCity
Set the city property: The name of the city or town.- Parameters:
city- the city value to set.- Returns:
- the AzureReachabilityReportLocation object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AzureReachabilityReportLocation>- Throws:
IOException
-
fromJson
public static AzureReachabilityReportLocation fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AzureReachabilityReportLocation.
-