def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, dict[str, Any]], user_principal_name: Optional[str] = None) -> None:
        """
        Instantiates a new AssignedUsersWithUserPrincipalNameRequestBuilder 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 user_principal_name: Alternate key of user
        Returns: None
        """
        if isinstance(path_parameters, dict):
            path_parameters['userPrincipalName'] = user_principal_name
        super().__init__(request_adapter, "{+baseurl}/deviceManagement/virtualEndpoint/provisioningPolicies/{cloudPcProvisioningPolicy%2Did}/assignments/{cloudPcProvisioningPolicyAssignment%2Did}/assignedUsers(userPrincipalName='{userPrincipalName}'){?%24expand,%24select}", path_parameters)

        Instantiates a new AssignedUsersWithUserPrincipalNameRequestBuilder 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 user_principal_name: Alternate key of user
        Returns: None
        
msgraph/generated/device_management/virtual_endpoint/provisioning_policies/item/assignments/item/assigned_users_with_user_principal_name/assigned_users_with_user_principal_name_request_builder.py