def set_tcp_port(self, tcp_port):
        """
        Defines the TCP port number.

        :type  tcp_port: int
        :param tcp_port: The TCP port number.
        """
        if tcp_port is None:
            self.tcp_port = None
            return
        self.tcp_port = int(tcp_port)