def METHOD_NAME(self) -> str:
    """
    Builds URI of format mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]]
    """
    config = MongoDBSchema(**self.configuration.secrets or {})
    user_pass: str = ""
    default_auth_db: str = ""
    if config.username and config.password:
        user_pass = f"{config.username}:{config.password}@"
        if config.defaultauthdb:
            default_auth_db = f"/{config.defaultauthdb}"
    port: str = f":{config.port}" if config.port else ""
    url = f"mongodb://{user_pass}{config.host}{port}{default_auth_db}"
    return url