public FlavorsConfig.Flavor.Builder addFlavor(String flavorName,
                                                  double cpu,
                                                  double mem,
                                                  double disk,
                                                  double bandwidth,
                                                  boolean fastDisk,
                                                  boolean remoteStorage,
                                                  Flavor.Type type,
                                                  Architecture architecture,
                                                  int gpuCount,
                                                  double gpuMemory) {
        FlavorsConfig.Flavor.Builder flavor = new FlavorsConfig.Flavor.Builder();
        flavor.name(flavorName);
        flavor.minDiskAvailableGb(disk);
        flavor.minCpuCores(cpu);
        flavor.minMainMemoryAvailableGb(mem);
        flavor.bandwidth(1000 * bandwidth);
        flavor.environment(type.name());
        flavor.fastDisk(fastDisk);
        flavor.remoteStorage(remoteStorage);
        flavor.architecture(architecture.name());
        flavor.gpuCount(gpuCount);
        flavor.gpuMemoryGb(gpuMemory);
        builder.flavor(flavor);
        return flavor;
    }
Simplifies creation of a node-repository config containing flavors.
This is needed because the config builder API is inconvenient.

Note: Flavors added will have fast disk and remote storage unless explicitly specified.

@author bratseth
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/FlavorConfigBuilder.java