Class AlterDatabaseParam.Builder

    • Method Detail

      • withDatabaseName

        public AlterDatabaseParam.Builder withDatabaseName​(String databaseName)
        Set the database name. Database name cannot be empty or null.
        Parameters:
        databaseName - database name
        Returns:
        Builder
      • withReplicaNumber

        public AlterDatabaseParam.Builder withReplicaNumber​(int replicaNumber)
        Set the replica number in database level, then if load collection doesn't have replica number, it will use this replica number.
        Parameters:
        replicaNumber - replica number
        Returns:
        Builder
      • withResourceGroups

        public AlterDatabaseParam.Builder withResourceGroups​(List<String> resourceGroups)
        Set the resource groups in database level, then if load collection doesn't have resource groups, it will use this resource groups.
        Parameters:
        resourceGroups - resource group names
        Returns:
        Builder
      • withProperty

        public AlterDatabaseParam.Builder withProperty​(String key,
                                                       String value)
        Basic method to set a key-value property.
        Parameters:
        key - the key
        value - the value
        Returns:
        Builder