Resource::setProp

Modifies any of the properties of a Resource Object.

resource.setProp( name, value )

To modify any of the extendedProps, use setExtendedProp.