LocationMetadata Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.LocationMetadata

Implements

public final class LocationMetadata
implements JsonSerializable<LocationMetadata>

Location metadata information.

Constructor Summary

Constructor Description
LocationMetadata()

Creates an instance of LocationMetadata class.

Method Summary

Modifier and Type Method and Description
static LocationMetadata fromJson(JsonReader jsonReader)

Reads an instance of LocationMetadata from the JsonReader.

String geography()

Get the geography property: The geography of the location.

String geographyGroup()

Get the geographyGroup property: The geography group of the location.

String homeLocation()

Get the homeLocation property: The home location of an edge zone.

String latitude()

Get the latitude property: The latitude of the location.

String longitude()

Get the longitude property: The longitude of the location.

List<PairedRegion> pairedRegion()

Get the pairedRegion property: The regions paired to this region.

String physicalLocation()

Get the physicalLocation property: The physical location of the Azure location.

RegionCategory regionCategory()

Get the regionCategory property: The category of the region.

RegionType regionType()

Get the regionType property: The type of the region.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LocationMetadata withPairedRegion(List<PairedRegion> pairedRegion)

Set the pairedRegion property: The regions paired to this region.

Methods inherited from java.lang.Object

Constructor Details

LocationMetadata

public LocationMetadata()

Creates an instance of LocationMetadata class.

Method Details

fromJson

public static LocationMetadata fromJson(JsonReader jsonReader)

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.

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.

homeLocation

public String homeLocation()

Get the homeLocation property: The home location of an edge zone.

Returns:

the homeLocation value.

latitude

public String latitude()

Get the latitude property: The latitude of the location.

Returns:

the latitude value.

longitude

public String longitude()

Get the longitude property: The longitude of the location.

Returns:

the longitude value.

pairedRegion

public List pairedRegion()

Get the pairedRegion property: The regions paired to this region.

Returns:

the pairedRegion value.

physicalLocation

public String physicalLocation()

Get the physicalLocation property: The physical location of the Azure location.

Returns:

the physicalLocation value.

regionCategory

public RegionCategory regionCategory()

Get the regionCategory property: The category of the region.

Returns:

the regionCategory value.

regionType

public RegionType regionType()

Get the regionType property: The type of the region.

Returns:

the regionType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPairedRegion

public LocationMetadata withPairedRegion(List pairedRegion)

Set the pairedRegion property: The regions paired to this region.

Parameters:

pairedRegion - the pairedRegion value to set.

Returns:

the LocationMetadata object itself.

Applies to