@Override
    public Node toNode() {
        return Node.objectNodeBuilder()
                .withOptionalMember(ENDPOINT, Optional.ofNullable(endpoint).map(Node::from))
                .withOptionalMember(REGION, Optional.ofNullable(region).map(Node::from))
                .withOptionalMember(DUAL_STACK, Optional.ofNullable(dualStack).map(Node::from))
                .withOptionalMember(FIPS, Optional.ofNullable(fips).map(Node::from))
                .build();
    }
Gets the region.

@return Returns the region
smithy-aws-endpoints/src/main/java/software/amazon/smithy/rulesengine/aws/traits/PartitionEndpointSpecialCase.java