def by_domain_id(self,domain_id: str) -> DomainItemRequestBuilder:
        """
        Provides operations to manage the collection of domain entities.
        param domain_id: The unique identifier of domain
        Returns: DomainItemRequestBuilder
        """
        if domain_id is None:
            raise TypeError("domain_id cannot be null.")
        from .item.domain_item_request_builder import DomainItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["domain%2Did"] = domain_id
        return DomainItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the collection of domain entities.
        param domain_id: The unique identifier of domain
        Returns: DomainItemRequestBuilder
        
msgraph/generated/domains/domains_request_builder.py