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 page provides documentation for the Google Cloud Backup and Disaster Recovery (BackupDR) service C++ client library.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release candidate version is 2.37.0-rc, and previous versions dating back to 2.23.0 are also documented here.\u003c/p\u003e\n"],["\u003cp\u003eKey classes include \u003ccode\u003eBackupDRClient\u003c/code\u003e for interacting with the service and \u003ccode\u003eBackupDRConnection\u003c/code\u003e for managing the connection.\u003c/p\u003e\n"],["\u003cp\u003eSeveral policies are provided for connection management such as \u003ccode\u003eBackupDRRetryPolicy\u003c/code\u003e and \u003ccode\u003eBackupDRConnectionIdempotencyPolicy\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe page also offers the \u003ccode\u003eMakeBackupDRConnection\u003c/code\u003e factory function, which is used to create a \u003ccode\u003eBackupDRConnection\u003c/code\u003e object, and the \u003ccode\u003eMakeDefaultBackupDRConnectionIdempotencyPolicy\u003c/code\u003e function to create a connection idempotency policy.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::backupdr_v1 (2.42.0-rc)\n\nVersion latestkeyboard_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/latest/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRClient)\n\nThe BackupDR Service.\n\n### [BackupDRConnection](/cpp/docs/reference/backupdr/latest/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection)\n\nThe [`BackupDRConnection`](/cpp/docs/reference/backupdr/latest/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection) object for [`BackupDRClient`](/cpp/docs/reference/backupdr/latest/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRClient).\n\n### [BackupDRConnectionIdempotencyPolicy](/cpp/docs/reference/backupdr/latest/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnectionIdempotencyPolicy)\n\n### [BackupDRLimitedErrorCountRetryPolicy](/cpp/docs/reference/backupdr/latest/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRLimitedErrorCountRetryPolicy)\n\nA retry policy for [`BackupDRConnection`](/cpp/docs/reference/backupdr/latest/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection) based on counting errors.\n\n### [BackupDRLimitedTimeRetryPolicy](/cpp/docs/reference/backupdr/latest/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRLimitedTimeRetryPolicy)\n\nA retry policy for [`BackupDRConnection`](/cpp/docs/reference/backupdr/latest/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection) based on elapsed time.\n\n### [BackupDRRetryPolicy](/cpp/docs/reference/backupdr/latest/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRRetryPolicy)\n\nThe retry policy for [`BackupDRConnection`](/cpp/docs/reference/backupdr/latest/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection).\n\nStructs\n-------\n\n### [BackupDRBackoffPolicyOption](/cpp/docs/reference/backupdr/latest/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/latest/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/latest/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/latest/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/latest/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/latest/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/latest/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`](https://cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)\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()"]]