@Override
    protected Node createNode() {
        ObjectNode.Builder partitionEndpointSpecialCasesNodeBuilder = ObjectNode.objectNodeBuilder();
        for (Map.Entry<String, List<PartitionEndpointSpecialCase>> entry : partitionEndpointSpecialCases.entrySet()) {
            List<Node> nodes = new ArrayList<>();
            for (PartitionEndpointSpecialCase partitionEndpointSpecialCase : entry.getValue()) {
                nodes.add(partitionEndpointSpecialCase.toNode());
            }
            partitionEndpointSpecialCasesNodeBuilder.withMember(entry.getKey(), Node.fromNodes(nodes));
        }

        return ObjectNode.objectNodeBuilder()
                .sourceLocation(getSourceLocation())
                .withMember(PARTITION_ENDPOINT_SPECIAL_CASES, partitionEndpointSpecialCasesNodeBuilder.build())
                .withMember(ENDPOINT_PATTERN_TYPE, endpointPatternType.getName())
                .build();
    }
Gets the endpoint pattern type defined in the trait.

@return Returns a {@link EndpointPatternType}
smithy-aws-endpoints/src/main/java/software/amazon/smithy/rulesengine/aws/traits/StandardPartitionalEndpointsTrait.java