private static LoadBalancer.State stateFromString(String state) {
        return switch (state) {
            case "active" -> LoadBalancer.State.active;
            case "inactive" -> LoadBalancer.State.inactive;
            case "reserved" -> LoadBalancer.State.reserved;
            case "removable" -> LoadBalancer.State.removable;
            default -> throw new IllegalArgumentException("No serialization defined for state string '" + state + "'");
        };
    }
Serializer for load balancers.

@author mpolden
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/persistence/LoadBalancerSerializer.java