class AdlsGen2BackupConfigGenerator extends CloudBackupConfigGenerator<AdlsGen2BackupConfig> {

    @Override
    public String generateBackupLocation(String location, String clusterType,
            String clusterName, String clusterId) {
        AdlsGen2BackupConfig adlsGen2BackupConfig = generateBackupConfig(location);
        String logFolder = resolveBackupFolder(adlsGen2BackupConfig, clusterType, clusterName, clusterId);
        String hostPart = String.format("%s.%s", adlsGen2BackupConfig.getAccount(), AZURE_DFS_DOMAIN_SUFFIX);
        String generatedLocation = String.format("%s%s", AZURE_BLOB_STORAGE_SCHEMA,
                Paths.get(hostPart, adlsGen2BackupConfig.getFileSystem(), logFolder));
        LOGGER.info("The following ADLS Gen2 base folder location is generated: {} (from {})",
                generatedLocation, location);
        return generatedLocation;
    }

}