The returned connection object should not be used directly; instead it should be passed as an argument to the constructor ofBackupDRClient.
The optionaloptionsargument may be used to configure aspects of the returnedBackupDRConnection. Expected options are any of the types in the following option lists:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the Google Cloud Backup and Disaster Recovery (BackupDR) service, specifically version 2.23.0 of the C++ client library.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release candidate for this library is version 2.37.0-rc, with numerous older versions also available for reference, ranging back to version 2.23.0.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes details on various classes related to BackupDR, such as \u003ccode\u003eBackupDRClient\u003c/code\u003e, \u003ccode\u003eBackupDRConnection\u003c/code\u003e, and several policy classes for retries and idempotency.\u003c/p\u003e\n"],["\u003cp\u003eStructs like \u003ccode\u003eBackupDRBackoffPolicyOption\u003c/code\u003e, \u003ccode\u003eBackupDRConnectionIdempotencyPolicyOption\u003c/code\u003e, \u003ccode\u003eBackupDRPollingPolicyOption\u003c/code\u003e, and \u003ccode\u003eBackupDRRetryPolicyOption\u003c/code\u003e are described for configuring different aspects of the service using \u003ccode\u003egoogle::cloud::Options\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeBackupDRConnection\u003c/code\u003e function is used to create a \u003ccode\u003eBackupDRConnection\u003c/code\u003e object, which is then used to construct a \u003ccode\u003eBackupDRClient\u003c/code\u003e, also detailed is the function \u003ccode\u003eMakeDefaultBackupDRConnectionIdempotencyPolicy\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::backupdr_v1 (2.23.0)\n\nVersion 2.23.0keyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/backupdr/latest/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.41.0](/cpp/docs/reference/backupdr/2.41.0/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.40.0](/cpp/docs/reference/backupdr/2.40.0/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.39.0](/cpp/docs/reference/backupdr/2.39.0/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.38.0](/cpp/docs/reference/backupdr/2.38.0/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.37.0](/cpp/docs/reference/backupdr/2.37.0/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.36.0](/cpp/docs/reference/backupdr/2.36.0/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.35.0](/cpp/docs/reference/backupdr/2.35.0/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.34.0](/cpp/docs/reference/backupdr/2.34.0/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.33.0](/cpp/docs/reference/backupdr/2.33.0/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.32.0](/cpp/docs/reference/backupdr/2.32.0/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.31.0](/cpp/docs/reference/backupdr/2.31.0/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.30.0](/cpp/docs/reference/backupdr/2.30.0/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.29.0](/cpp/docs/reference/backupdr/2.29.0/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.28.0](/cpp/docs/reference/backupdr/2.28.0/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.27.0](/cpp/docs/reference/backupdr/2.27.0/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.26.0](/cpp/docs/reference/backupdr/2.26.0/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.25.1](/cpp/docs/reference/backupdr/2.25.1/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.24.0](/cpp/docs/reference/backupdr/2.24.0/namespacegoogle_1_1cloud_1_1backupdr__v1)\n- [2.23.0](/cpp/docs/reference/backupdr/2.23.0/namespacegoogle_1_1cloud_1_1backupdr__v1) \n\nClasses\n-------\n\n### [BackupDRClient](/cpp/docs/reference/backupdr/2.23.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRClient)\n\nThe BackupDR Service.\n\n### [BackupDRConnection](/cpp/docs/reference/backupdr/2.23.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection)\n\nThe [`BackupDRConnection`](/cpp/docs/reference/backupdr/2.23.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection) object for [`BackupDRClient`](/cpp/docs/reference/backupdr/2.23.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRClient).\n\n### [BackupDRConnectionIdempotencyPolicy](/cpp/docs/reference/backupdr/2.23.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnectionIdempotencyPolicy)\n\n### [BackupDRLimitedErrorCountRetryPolicy](/cpp/docs/reference/backupdr/2.23.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRLimitedErrorCountRetryPolicy)\n\nA retry policy for [`BackupDRConnection`](/cpp/docs/reference/backupdr/2.23.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection) based on counting errors.\n\n### [BackupDRLimitedTimeRetryPolicy](/cpp/docs/reference/backupdr/2.23.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRLimitedTimeRetryPolicy)\n\nA retry policy for [`BackupDRConnection`](/cpp/docs/reference/backupdr/2.23.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection) based on elapsed time.\n\n### [BackupDRRetryPolicy](/cpp/docs/reference/backupdr/2.23.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRRetryPolicy)\n\nThe retry policy for [`BackupDRConnection`](/cpp/docs/reference/backupdr/2.23.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection).\n\nStructs\n-------\n\n### [BackupDRBackoffPolicyOption](/cpp/docs/reference/backupdr/2.23.0/structgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRBackoffPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the backoff policy.\n\n### [BackupDRConnectionIdempotencyPolicyOption](/cpp/docs/reference/backupdr/2.23.0/structgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnectionIdempotencyPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure which operations are retried.\n\n### [BackupDRPollingPolicyOption](/cpp/docs/reference/backupdr/2.23.0/structgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRPollingPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the long-running operations polling policy.\n\n### [BackupDRRetryPolicyOption](/cpp/docs/reference/backupdr/2.23.0/structgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRRetryPolicyOption)\n\nUse with [`google::cloud::Options`](https://cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Options.html) to configure the retry policy.\n\nFunctions\n---------\n\n### MakeBackupDRConnection(Options)\n\nA factory function to construct an object of type [`BackupDRConnection`](/cpp/docs/reference/backupdr/2.23.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection). \nThe returned connection object should not be used directly; instead it should be passed as an argument to the constructor of [BackupDRClient](/cpp/docs/reference/backupdr/2.23.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRClient).\n\nThe optional `options` argument may be used to configure aspects of the returned [`BackupDRConnection`](/cpp/docs/reference/backupdr/2.23.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection). Expected options are any of the types in the following option lists:\n\n- [`google::cloud::CommonOptionList`](about:invalid#zCSafez)\n- [`google::cloud::GrpcOptionList`](https://cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)\n- [`google::cloud::UnifiedCredentialsOptionList`](about:invalid#zCSafez)\n- [`google::cloud::backupdr_v1::BackupDRPolicyOptionList`](about:invalid#zCSafez)\n\n| **Note:** Unexpected options will be ignored. To log unexpected options instead, set `GOOGLE_CLOUD_CPP_ENABLE_CLOG=yes` in the environment.\n\n### MakeDefaultBackupDRConnectionIdempotencyPolicy()"]]