def by_host_port_id(self,host_port_id: str) -> HostPortItemRequestBuilder:
        """
        Provides operations to manage the hostPorts property of the microsoft.graph.security.threatIntelligence entity.
        param host_port_id: The unique identifier of hostPort
        Returns: HostPortItemRequestBuilder
        """
        if host_port_id is None:
            raise TypeError("host_port_id cannot be null.")
        from .item.host_port_item_request_builder import HostPortItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["hostPort%2Did"] = host_port_id
        return HostPortItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the hostPorts property of the microsoft.graph.security.threatIntelligence entity.
        param host_port_id: The unique identifier of hostPort
        Returns: HostPortItemRequestBuilder
        
msgraph/generated/security/threat_intelligence/host_ports/host_ports_request_builder.py