def token(self, token):
        """Sets the token of this Session.

        An opaque session identifier  # noqa: E501

        :param token: The token of this Session.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and token is None:  # noqa: E501
            raise ValueError("Invalid value for `token`, must not be `None`")  # noqa: E501

        self._token = token