def by_alert_id(self,alert_id: str) -> AlertItemRequestBuilder:
        """
        Provides operations to manage the alerts property of the microsoft.graph.security.incident entity.
        param alert_id: The unique identifier of alert
        Returns: AlertItemRequestBuilder
        """
        if alert_id is None:
            raise TypeError("alert_id cannot be null.")
        from .item.alert_item_request_builder import AlertItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["alert%2Did"] = alert_id
        return AlertItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the alerts property of the microsoft.graph.security.incident entity.
        param alert_id: The unique identifier of alert
        Returns: AlertItemRequestBuilder
        
msgraph/generated/security/incidents/item/alerts/alerts_request_builder.py