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 Details

    • LocationMetadata

      public LocationMetadata()
      Creates an instance of LocationMetadata class.
  • Method Details

    • regionType

      public RegionType regionType()
      Get the regionType property: The type of the region.
      Returns:
      the regionType value.
    • regionCategory

      public RegionCategory regionCategory()
      Get the regionCategory property: The category of the region.
      Returns:
      the regionCategory value.
    • geography

      public String geography()
      Get the geography property: The geography of the location.
      Returns:
      the geography value.
    • geographyGroup

      public String geographyGroup()
      Get the geographyGroup property: The geography group of the location.
      Returns:
      the geographyGroup value.
    • longitude

      public String longitude()
      Get the longitude property: The longitude of the location.
      Returns:
      the longitude value.
    • latitude

      public String latitude()
      Get the latitude property: The latitude of the location.
      Returns:
      the latitude value.
    • physicalLocation

      public String physicalLocation()
      Get the physicalLocation property: The physical location of the Azure location.
      Returns:
      the physicalLocation value.
    • pairedRegion

      public List<PairedRegion> pairedRegion()
      Get the pairedRegion property: The regions paired to this region.
      Returns:
      the pairedRegion value.
    • withPairedRegion

      public LocationMetadata withPairedRegion(List<PairedRegion> pairedRegion)
      Set the pairedRegion property: The regions paired to this region.
      Parameters:
      pairedRegion - the pairedRegion value to set.
      Returns:
      the LocationMetadata object itself.
    • homeLocation

      public String 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<LocationMetadata>
      Throws:
      IOException
    • fromJson

      public static LocationMetadata fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.