public class DatabaseAccount extends Resource
Constructor and Description |
---|
DatabaseAccount(String jsonString)
Initialize a database account object from json string.
|
Modifier and Type | Method and Description |
---|---|
String |
getAddressesLink()
Get the addresseslink of the databaseAccount.
|
ConsistencyPolicy |
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.
|
Iterable<DatabaseAccountLocation> |
getReadableLocations()
Gets the list of readable locations for this database account.
|
ReplicationPolicy |
getReplicationPolicy()
Gets the ReplicationPolicy settings.
|
Iterable<DatabaseAccountLocation> |
getWritableLocations()
Gets the list of writable locations for this database account.
|
getETag, getId, getResourceId, getSelfLink, getTimestamp, setId, setResourceId
get, getBoolean, getCollection, getCollection, getDouble, getHashMap, getInt, getLogger, getLong, getMapper, getObject, getObject, getObjectByPath, getString, has, remove, set, toJson, toJson, toObject, toString
public DatabaseAccount(String jsonString)
jsonString
- the json string that represents the database account.public String getDatabasesLink()
public String getMediaLink()
public String getAddressesLink()
public long getMaxMediaStorageUsageInMB()
public long getMediaStorageUsageInMB()
Retrieved from gateway. Value is returned from cached information updated periodically and is not guaranteed to be real time.
public ConsistencyPolicy getConsistencyPolicy()
public ReplicationPolicy getReplicationPolicy()
public Iterable<DatabaseAccountLocation> getWritableLocations()
public Iterable<DatabaseAccountLocation> getReadableLocations()
Copyright © 2018. All rights reserved.