def get_by_user_role_with_role(self,role: str) -> GetByUserRoleWithRoleRequestBuilder:
        """
        Provides operations to call the getByUserRole method.
        param role: Usage: role='{role}'
        Returns: GetByUserRoleWithRoleRequestBuilder
        """
        if role is None:
            raise TypeError("role cannot be null.")
        from .get_by_user_role_with_role.get_by_user_role_with_role_request_builder import GetByUserRoleWithRoleRequestBuilder

        return GetByUserRoleWithRoleRequestBuilder(self.request_adapter, self.path_parameters, role)

        Provides operations to call the getByUserRole method.
        param role: Usage: role='{role}'
        Returns: GetByUserRoleWithRoleRequestBuilder
        
msgraph/generated/solutions/virtual_events/webinars/webinars_request_builder.py