DatabaseAccount Class
- java.
lang. Object - com.
microsoft. azure. documentdb. JsonSerializable - com.
microsoft. azure. documentdb. Resource - com.
microsoft. azure. documentdb. DatabaseAccount
- com.
- com.
- 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. |
DatabaseAccount(JSONObject jsonObject) |
Initialize a database account object from json object. |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddressesLink()
Get the addresseslink of the database |
Consistency |
getConsistencyPolicy()
Gets the Consistency |
java.lang.String |
getDatabasesLink()
Get the databases link of the database |
boolean |
getEnableMultipleWritableLocations()
Gets the enable |
long |
getMaxMediaStorageUsageInMB()
Attachment content (media) storage quota in MBs Retrieved from gateway. |
java.lang.String |
getMediaLink()
Get the medialink of the database |
long |
getMediaStorageUsageInMB()
Current attachment content (media) usage in MBs. |
java.lang.Iterable<Database |
getReadableLocations()
Gets the list of readable locations for this database account. |
Replication |
getReplicationPolicy()
Gets the Replication |
java.lang.Iterable<Database |
getWritableLocations()
Gets the list of writable locations for this database account. |
Methods inherited from JsonSerializable
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
DatabaseAccount
public DatabaseAccount(String jsonString)
Initialize a database account object from json string.
Parameters:
DatabaseAccount
public DatabaseAccount(JSONObject jsonObject)
Initialize a database account object from json object.
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:
getEnableMultipleWritableLocations
public boolean getEnableMultipleWritableLocations()
Gets the enableMulipleWritableLocations flag 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: