class AzureVirtualMachineTypeProvider {

    public Set<String> getVmTypes(AzureStackView azureStackView) {
        return azureStackView.getGroups().values().stream()
                .flatMap(Collection::stream)
                .map(this::getFlavour)
                .collect(Collectors.toSet());
    }

}