Use this method to retrieve the name of the batch.
String value = batchInfo.getName();
Note: This method is a static method.