Class DatabaseAccount


  • public class DatabaseAccount
    extends Resource
    Represents a database account in the Azure Cosmos DB database service.
    • Constructor Detail

      • DatabaseAccount

        public DatabaseAccount()
        Constructor.
      • DatabaseAccount

        public DatabaseAccount​(String jsonString)
        Initialize a database account object from json string.
        Parameters:
        jsonString - the json string that represents the database account.
    • Method Detail

      • writableLocations

        public Iterable<DatabaseAccountLocation> writableLocations()
        Gets the list of writable locations for this database account.
        Returns:
        the list of writable locations.
      • readableLocations

        public Iterable<DatabaseAccountLocation> readableLocations()
        Gets the list of readable locations for this database account.
        Returns:
        the list of readable locations.
      • enableMultipleWriteLocations

        public boolean enableMultipleWriteLocations()