public RestoreRequest createRestoreRequest(String backupRootDir, String backupId, boolean check,
    TableName[] fromTables, TableName[] toTables, boolean isOverwrite) {
    RestoreRequest.Builder builder = new RestoreRequest.Builder();
    return builder.withBackupRootDir(backupRootDir).withBackupId(backupId).withCheck(check)
      .withFromTables(fromTables).withToTables(toTables).withOvewrite(isOverwrite).build();
  }
Get restore request.
@param backupRootDir directory where backup is located
@param backupId      backup ID
@param check         check the backup
@param fromTables    table names to restore from
@param toTables      new table names to restore to
@param isOverwrite   overwrite the table(s)
@return an instance of RestoreRequest
hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestBackupRestore.java