DatabaseAccount Class
- java.
lang. Object - JsonSerializable
- Resource
- com.
microsoft. azure. cosmosdb. DatabaseAccount
- com.
public class DatabaseAccount extends Resource
Represents a database account in the Azure Cosmos DB database service.
Constructor Summary
Constructor | Description |
---|---|
DatabaseAccount(String jsonString) |
Initialize a database account object from json string. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getAddressesLink()
Get the addresseslink of the databaseAccount. |
Consistency |
getConsistencyPolicy()
Gets the ConsistencyPolicy settings. |
String |
getDatabasesLink()
Get the databases link of the databaseAccount. |
long |
getMaxMediaStorageUsageInMB()
Attachment content (media) storage quota in MBs Retrieved from gateway. |
String |
getMediaLink()
Get the medialink of the databaseAccount. |
long |
getMediaStorageUsageInMB()
Current attachment content (media) usage in MBs. Retrieved from gateway. Value is returned from cached information updated periodically and is not guaranteed to be real time. |
Iterable<Database |
getReadableLocations()
Gets the list of readable locations for this database account. |
Replication |
getReplicationPolicy()
Gets the ReplicationPolicy settings. |
Iterable<Database |
getWritableLocations()
Gets the list of writable locations for this database account. |
Inherited Members
Constructor Details
DatabaseAccount
public DatabaseAccount(String jsonString)
Initialize a database account object from json string.
Parameters:
Method Details
getAddressesLink
public String getAddressesLink()
Get the addresseslink of the databaseAccount.
Returns:
getConsistencyPolicy
public ConsistencyPolicy getConsistencyPolicy()
Gets the ConsistencyPolicy settings.
Returns:
getDatabasesLink
public String getDatabasesLink()
Get the databases link of the databaseAccount.
Returns:
getMaxMediaStorageUsageInMB
public long getMaxMediaStorageUsageInMB()
Attachment content (media) storage quota in MBs Retrieved from gateway.
Returns:
getMediaLink
public String getMediaLink()
Get the medialink of the databaseAccount.
Returns:
getMediaStorageUsageInMB
public long getMediaStorageUsageInMB()
Current attachment content (media) usage in MBs.
Retrieved from gateway. Value is returned from cached information updated periodically and is not guaranteed to be real time.
Returns:
getReadableLocations
public Iterable
Gets the list of readable locations for this database account.
Returns:
getReplicationPolicy
public ReplicationPolicy getReplicationPolicy()
Gets the ReplicationPolicy settings.
Returns:
getWritableLocations
public Iterable
Gets the list of writable locations for this database account.
Returns:
Applies to
Azure SDK for Java