@classmethod
def set_expiry(cls, val):
    """
        Create an instance of this class set to the ``set_expiry`` tag with
        value ``val``.

        :param datetime.datetime val:
        :rtype: LinkExpiry
        """
    return cls('set_expiry', val)
