public static EndpointPatternType fromNode(Node node) {
        StringNode value = node.expectStringNode();
        for (EndpointPatternType type : EndpointPatternType.values()) {
            if (type.name.equals(value.getValue())) {
                return type;
            }
        }
        throw new RuntimeException(String.format(
                "Unable to find EndpointPatternType enum with value [%s]",
                value.getValue()));
    }
Gets the name of a partitional service pattern type.

@return Returns a partitional service pattern type name.
smithy-aws-endpoints/src/main/java/software/amazon/smithy/rulesengine/aws/traits/EndpointPatternType.java