Class LocationMetadata
java.lang.Object
com.azure.resourcemanager.resources.models.LocationMetadata
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LocationMetadata>
public final class LocationMetadata
extends Object
implements com.azure.json.JsonSerializable<LocationMetadata>
Location metadata information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocationMetadatafromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LocationMetadata from the JsonReader.Get the geography property: The geography of the location.Get the geographyGroup property: The geography group of the location.Get the homeLocation property: The home location of an edge zone.latitude()Get the latitude property: The latitude of the location.Get the longitude property: The longitude of the location.Get the pairedRegion property: The regions paired to this region.Get the physicalLocation property: The physical location of the Azure location.Get the regionCategory property: The category of the region.Get the regionType property: The type of the region.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPairedRegion(List<PairedRegion> pairedRegion) Set the pairedRegion property: The regions paired to this region.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
-
LocationMetadata
public LocationMetadata()Creates an instance of LocationMetadata class.
-
-
Method Details
-
regionType
Get the regionType property: The type of the region.- Returns:
- the regionType value.
-
regionCategory
Get the regionCategory property: The category of the region.- Returns:
- the regionCategory value.
-
geography
Get the geography property: The geography of the location.- Returns:
- the geography value.
-
geographyGroup
Get the geographyGroup property: The geography group of the location.- Returns:
- the geographyGroup value.
-
longitude
Get the longitude property: The longitude of the location.- Returns:
- the longitude value.
-
latitude
Get the latitude property: The latitude of the location.- Returns:
- the latitude value.
-
physicalLocation
Get the physicalLocation property: The physical location of the Azure location.- Returns:
- the physicalLocation value.
-
pairedRegion
Get the pairedRegion property: The regions paired to this region.- Returns:
- the pairedRegion value.
-
withPairedRegion
Set the pairedRegion property: The regions paired to this region.- Parameters:
pairedRegion- the pairedRegion value to set.- Returns:
- the LocationMetadata object itself.
-
homeLocation
Get the homeLocation property: The home location of an edge zone.- Returns:
- the homeLocation value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LocationMetadata>- Throws:
IOException
-
fromJson
Reads an instance of LocationMetadata from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LocationMetadata 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 LocationMetadata.
-