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

        :param LegacyDeviceSessionLogInfo val:
        :rtype: LinkedDeviceLogInfo
        """
    return cls('legacy_device_session', val)
