public static LBType getByProvider(String provider) {
        if (StringUtils.isBlank(provider)) {
            return null;
        }
        for (LBType lbType : LBType.values()) {
            List<String> lbProviders = lbType.getProviders();
            for (String lbProvider : lbProviders) {
                if (lbProvider.equalsIgnoreCase(provider)) {
                    return lbType;
                }
            }
        }
        return null;
    }
@author nagachandrai
Type of load balancer supported by hyscale.
commons/src/main/java/io/hyscale/commons/models/LBType.java