Partager via


LocationInner Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.fluent.models.LocationInner

Implements

public final class LocationInner
implements JsonSerializable<LocationInner>

Location information.

Constructor Summary

Constructor Description
LocationInner()

Creates an instance of LocationInner class.

Method Summary

Modifier and Type Method and Description
List<AvailabilityZoneMappings> availabilityZoneMappings()

Get the availabilityZoneMappings property: The availability zone mappings for this region.

String displayName()

Get the displayName property: The display name of the location.

static LocationInner fromJson(JsonReader jsonReader)

Reads an instance of LocationInner from the JsonReader.

String id()

Get the id property: The fully qualified ID of the location.

LocationMetadata metadata()

Get the metadata property: Metadata of the location, such as lat/long, paired region, and others.

String name()

Get the name property: The location name.

String regionalDisplayName()

Get the regionalDisplayName property: The display name of the location and its region.

String subscriptionId()

Get the subscriptionId property: The subscription ID.

JsonWriter toJson(JsonWriter jsonWriter)
LocationType type()

Get the type property: The location type.

void validate()

Validates the instance.

LocationInner withAvailabilityZoneMappings(List<AvailabilityZoneMappings> availabilityZoneMappings)

Set the availabilityZoneMappings property: The availability zone mappings for this region.

LocationInner withMetadata(LocationMetadata metadata)

Set the metadata property: Metadata of the location, such as lat/long, paired region, and others.

Methods inherited from java.lang.Object

Constructor Details

LocationInner

public LocationInner()

Creates an instance of LocationInner class.

Method Details

availabilityZoneMappings

public List availabilityZoneMappings()

Get the availabilityZoneMappings property: The availability zone mappings for this region.

Returns:

the availabilityZoneMappings value.

displayName

public String displayName()

Get the displayName property: The display name of the location.

Returns:

the displayName value.

fromJson

public static LocationInner fromJson(JsonReader jsonReader)

Reads an instance of LocationInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LocationInner 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 LocationInner.

id

public String id()

Get the id property: The fully qualified ID of the location. For example, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus.

Returns:

the id value.

metadata

public LocationMetadata metadata()

Get the metadata property: Metadata of the location, such as lat/long, paired region, and others.

Returns:

the metadata value.

name

public String name()

Get the name property: The location name.

Returns:

the name value.

regionalDisplayName

public String regionalDisplayName()

Get the regionalDisplayName property: The display name of the location and its region.

Returns:

the regionalDisplayName value.

subscriptionId

public String subscriptionId()

Get the subscriptionId property: The subscription ID.

Returns:

the subscriptionId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public LocationType type()

Get the type property: The location type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAvailabilityZoneMappings

public LocationInner withAvailabilityZoneMappings(List availabilityZoneMappings)

Set the availabilityZoneMappings property: The availability zone mappings for this region.

Parameters:

availabilityZoneMappings - the availabilityZoneMappings value to set.

Returns:

the LocationInner object itself.

withMetadata

public LocationInner withMetadata(LocationMetadata metadata)

Set the metadata property: Metadata of the location, such as lat/long, paired region, and others.

Parameters:

metadata - the metadata value to set.

Returns:

the LocationInner object itself.

Applies to