public Optional<ShapeId> asShapeId() {
        try {
            return Optional.of(ShapeId.from(getValue()));
        } catch (ShapeIdSyntaxException e) {
            return Optional.empty();
        }
    }
Gets the value of the string as a ShapeId if it is a valid Shape ID.

@return Returns the optional Shape ID.
smithy-model/src/main/java/software/amazon/smithy/model/node/StringNode.java