Class LocationProperties
java.lang.Object
com.azure.resourcemanager.cosmos.models.LocationProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LocationProperties>
public final class LocationProperties
extends Object
implements com.azure.json.JsonSerializable<LocationProperties>
Cosmos DB location metadata.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the backupStorageRedundancies property: The properties of available backup storage redundancies.static LocationProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of LocationProperties from the JsonReader.Get the isResidencyRestricted property: Flag indicating whether the location is residency sensitive.Get the isSubscriptionRegionAccessAllowedForAz property: Flag indicating whether the subscription have access in region for Availability Zones(Az).Get the isSubscriptionRegionAccessAllowedForRegular property: Flag indicating whether the subscription have access in region for Non-Availability Zones.status()
Get the status property: Enum to indicate current buildout status of the region.Get the supportsAvailabilityZone property: Flag indicating whether the location supports availability zones or not.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LocationProperties
public LocationProperties()Creates an instance of LocationProperties class.
-
-
Method Details
-
supportsAvailabilityZone
Get the supportsAvailabilityZone property: Flag indicating whether the location supports availability zones or not.- Returns:
- the supportsAvailabilityZone value.
-
isResidencyRestricted
Get the isResidencyRestricted property: Flag indicating whether the location is residency sensitive.- Returns:
- the isResidencyRestricted value.
-
backupStorageRedundancies
Get the backupStorageRedundancies property: The properties of available backup storage redundancies.- Returns:
- the backupStorageRedundancies value.
-
isSubscriptionRegionAccessAllowedForRegular
Get the isSubscriptionRegionAccessAllowedForRegular property: Flag indicating whether the subscription have access in region for Non-Availability Zones.- Returns:
- the isSubscriptionRegionAccessAllowedForRegular value.
-
isSubscriptionRegionAccessAllowedForAz
Get the isSubscriptionRegionAccessAllowedForAz property: Flag indicating whether the subscription have access in region for Availability Zones(Az).- Returns:
- the isSubscriptionRegionAccessAllowedForAz value.
-
status
Get the status property: Enum to indicate current buildout status of the region.- Returns:
- the status value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<LocationProperties>
- Throws:
IOException
-
fromJson
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.
-