def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]], role: Optional[str] = None) -> None:
        """
        Instantiates a new GetByUserRoleWithRoleRequestBuilder and sets the default values.
        param path_parameters: The raw url or the url-template parameters for the request.
        param request_adapter: The request adapter to use to execute the requests.
        param role: Usage: role='{role}'
        Returns: None
        """
        if isinstance(path_parameters, dict):
            path_parameters['role'] = role
        super().__init__(request_adapter, "{+baseurl}/solutions/virtualEvents/webinars/getByUserRole(role='{role}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", path_parameters)

        Instantiates a new GetByUserRoleWithRoleRequestBuilder and sets the default values.
        param path_parameters: The raw url or the url-template parameters for the request.
        param request_adapter: The request adapter to use to execute the requests.
        param role: Usage: role='{role}'
        Returns: None
        
msgraph/generated/solutions/virtual_events/webinars/get_by_user_role_with_role/get_by_user_role_with_role_request_builder.py