private static String asString(ApplicationClusterEndpoint.Scope scope) {
        return switch (scope) {
            case global -> "global";
            case application -> "application";
            case zone -> "zone";
        };
    }
Contains all methods for de-/serializing ContainerEndpoints to/from JSON.
Also supports de-/serializing lists of these values.

@author ogronnesby
configserver/src/main/java/com/yahoo/vespa/config/server/tenant/ContainerEndpointSerializer.java