public final class Location extends Object
| Constructor and Description |
|---|
Location() |
| Modifier and Type | Method and Description |
|---|---|
String |
documentEndpoint()
Get the documentEndpoint property: The connection endpoint for the specific region.
|
Integer |
failoverPriority()
Get the failoverPriority property: The failover priority of the region.
|
String |
id()
Get the id property: The unique identifier of the region within the database account.
|
Boolean |
isZoneRedundant()
Get the isZoneRedundant property: Flag to indicate whether or not this region is an AvailabilityZone region.
|
String |
locationName()
Get the locationName property: The name of the region.
|
String |
provisioningState()
Get the provisioningState property: The status of the Cosmos DB account at the time the operation was called.
|
void |
validate()
Validates the instance.
|
Location |
withFailoverPriority(Integer failoverPriority)
Set the failoverPriority property: The failover priority of the region.
|
Location |
withIsZoneRedundant(Boolean isZoneRedundant)
Set the isZoneRedundant property: Flag to indicate whether or not this region is an AvailabilityZone region.
|
Location |
withLocationName(String locationName)
Set the locationName property: The name of the region.
|
public String id()
public String locationName()
public Location withLocationName(String locationName)
locationName - the locationName value to set.public String documentEndpoint()
public String provisioningState()
public Integer failoverPriority()
public Location withFailoverPriority(Integer failoverPriority)
failoverPriority - the failoverPriority value to set.public Boolean isZoneRedundant()
public Location withIsZoneRedundant(Boolean isZoneRedundant)
isZoneRedundant - the isZoneRedundant value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.