Returns the type of Resource that this ResourceRef can point to.
Returns a new ResourceRef object that's a copy of this one. Note that what gets cloned here is just the ResourceRef object (i.e. the indirection to a Resource). The underlying Resource, if any, isn't duplicated/cloned.
Makes this ResourceRef a copy of the provided one.
Returns true if this ResourceRef points to a Resource, false if it wasn't set to point to anything.
Returns the Resource pointed to by this ResourceRef or null if it wasn't set.
Sets this ResourceRef to point to the provided Resource. If it is set to null, this ResourceRef is cleared and won't point to anything.
Returns the id of the Resource this ResourceRef points to. If this ResourceRef not set to anything, the id is the empty string.