LocationProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.LocationProperties

Implements

public final class LocationProperties
implements JsonSerializable<LocationProperties>

Cosmos DB location metadata.

Constructor Summary

Constructor Description
LocationProperties()

Creates an instance of LocationProperties class.

Method Summary

Modifier and Type Method and Description
List<BackupStorageRedundancy> backupStorageRedundancies()

Get the backupStorageRedundancies property: The properties of available backup storage redundancies.

static LocationProperties fromJson(JsonReader jsonReader)

Reads an instance of LocationProperties from the JsonReader.

Boolean isResidencyRestricted()

Get the isResidencyRestricted property: Flag indicating whether the location is residency sensitive.

Boolean isSubscriptionRegionAccessAllowedForAz()

Get the isSubscriptionRegionAccessAllowedForAz property: Flag indicating whether the subscription have access in region for Availability Zones(Az).

Boolean isSubscriptionRegionAccessAllowedForRegular()

Get the isSubscriptionRegionAccessAllowedForRegular property: Flag indicating whether the subscription have access in region for Non-Availability Zones.

Status status()

Get the status property: Enum to indicate current buildout status of the region.

Boolean supportsAvailabilityZone()

Get the supportsAvailabilityZone property: Flag indicating whether the location supports availability zones or not.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

LocationProperties

public LocationProperties()

Creates an instance of LocationProperties class.

Method Details

backupStorageRedundancies

public List backupStorageRedundancies()

Get the backupStorageRedundancies property: The properties of available backup storage redundancies.

Returns:

the backupStorageRedundancies value.

fromJson

public static LocationProperties fromJson(JsonReader jsonReader)

Reads an instance of LocationProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isResidencyRestricted

public Boolean isResidencyRestricted()

Get the isResidencyRestricted property: Flag indicating whether the location is residency sensitive.

Returns:

the isResidencyRestricted value.

isSubscriptionRegionAccessAllowedForAz

public Boolean isSubscriptionRegionAccessAllowedForAz()

Get the isSubscriptionRegionAccessAllowedForAz property: Flag indicating whether the subscription have access in region for Availability Zones(Az).

Returns:

the isSubscriptionRegionAccessAllowedForAz value.

isSubscriptionRegionAccessAllowedForRegular

public Boolean isSubscriptionRegionAccessAllowedForRegular()

Get the isSubscriptionRegionAccessAllowedForRegular property: Flag indicating whether the subscription have access in region for Non-Availability Zones.

Returns:

the isSubscriptionRegionAccessAllowedForRegular value.

status

public Status status()

Get the status property: Enum to indicate current buildout status of the region.

Returns:

the status value.

supportsAvailabilityZone

public Boolean supportsAvailabilityZone()

Get the supportsAvailabilityZone property: Flag indicating whether the location supports availability zones or not.

Returns:

the supportsAvailabilityZone value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to