public BsonDocument asDocument ( ) { BsonDocument readConcern = new BsonDocument ( ) ; if ( level != null ) { readConcern . put ( "level" , new BsonString ( level . getValue ( ) ) ) ; } return readConcern ; }
Gets this read concern as a document .