class S3BackupConfigGenerator extends CloudBackupConfigGenerator<S3BackupConfig> {

    @Override
    public String generateBackupLocation(String location, String clusterType, String clusterName, String clusterId) {
        S3BackupConfig s3BackupConfig = generateBackupConfig(location);
        String generatedS3Location = S3_SCHEME_PREFIXES[0] + Paths.get(s3BackupConfig.getBucket(),
                resolveBackupFolder(s3BackupConfig, clusterType, clusterName, clusterId));
        LOGGER.debug("The following S3 base folder location is generated: {} (from {})",
                generatedS3Location, location);
        return generatedS3Location;
    }

}