Class Location
java.lang.Object
com.microsoft.azure.management.cosmosdb.Location
A region in which the Azure Cosmos DB database account is deployed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the connection endpoint for the specific region.Get the failover priority of the region.id()
Get the unique identifier of the region within the database account.Get flag to indicate whether or not this region is an AvailabilityZone region.Get the name of the region.Get the provisioningState value.withFailoverPriority
(Integer failoverPriority) Set the failover priority of the region.withIsZoneRedundant
(Boolean isZoneRedundant) Set flag to indicate whether or not this region is an AvailabilityZone region.withLocationName
(String locationName) Set the name of the region.withProvisioningState
(String provisioningState) Set the provisioningState value.
-
Constructor Details
-
Location
public Location()
-
-
Method Details
-
id
Get the unique identifier of the region within the database account. Example: <accountName>-<locationName>.- Returns:
- the id value
-
locationName
Get the name of the region.- Returns:
- the locationName value
-
withLocationName
Set the name of the region.- Parameters:
locationName
- the locationName value to set- Returns:
- the Location object itself.
-
documentEndpoint
Get the connection endpoint for the specific region. Example: https://<accountName>-<locationName>.documents.azure.com:443/.- Returns:
- the documentEndpoint value
-
provisioningState
Get the provisioningState value.- Returns:
- the provisioningState value
-
withProvisioningState
Set the provisioningState value.- Parameters:
provisioningState
- the provisioningState value to set- Returns:
- the Location object itself.
-
failoverPriority
Get the failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.- Returns:
- the failoverPriority value
-
withFailoverPriority
Set the failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.- Parameters:
failoverPriority
- the failoverPriority value to set- Returns:
- the Location object itself.
-
isZoneRedundant
Get flag to indicate whether or not this region is an AvailabilityZone region.- Returns:
- the isZoneRedundant value
-
withIsZoneRedundant
Set flag to indicate whether or not this region is an AvailabilityZone region.- Parameters:
isZoneRedundant
- the isZoneRedundant value to set- Returns:
- the Location object itself.
-