public ShapeId getResource() {
            return resource;
        }
Get the referenced shape.

@return Returns the referenced shape.
smithy-model/src/main/java/software/amazon/smithy/model/traits/ReferencesTrait.java