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\u003eThe latest release candidate version for the BackupDR C++ library is 2.37.0-rc, with numerous previous versions also available, including the current version, 2.33.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBackupDRClient\u003c/code\u003e class provides the primary interface for interacting with the BackupDR service.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBackupDRConnection\u003c/code\u003e and its associated policy classes (\u003ccode\u003eBackupDRConnectionIdempotencyPolicy\u003c/code\u003e, \u003ccode\u003eBackupDRRetryPolicy\u003c/code\u003e, etc.) are available for managing connections and retries.\u003c/p\u003e\n"],["\u003cp\u003eSeveral structs are provided to configure behavior using \u003ccode\u003egoogle::cloud::Options\u003c/code\u003e, such as \u003ccode\u003eBackupDRBackoffPolicyOption\u003c/code\u003e, \u003ccode\u003eBackupDRConnectionIdempotencyPolicyOption\u003c/code\u003e, and \u003ccode\u003eBackupDRRetryPolicyOption\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeBackupDRConnection\u003c/code\u003e function facilitates the creation of a \u003ccode\u003eBackupDRConnection\u003c/code\u003e object, which can be customized with various options.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::backupdr_v1 (2.33.0)\n\nVersion 2.33.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.33.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRClient)\n\nThe BackupDR Service.\n\n### [BackupDRConnection](/cpp/docs/reference/backupdr/2.33.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection)\n\nThe [`BackupDRConnection`](/cpp/docs/reference/backupdr/2.33.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection) object for [`BackupDRClient`](/cpp/docs/reference/backupdr/2.33.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRClient).\n\n### [BackupDRConnectionIdempotencyPolicy](/cpp/docs/reference/backupdr/2.33.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnectionIdempotencyPolicy)\n\n### [BackupDRLimitedErrorCountRetryPolicy](/cpp/docs/reference/backupdr/2.33.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRLimitedErrorCountRetryPolicy)\n\nA retry policy for [`BackupDRConnection`](/cpp/docs/reference/backupdr/2.33.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection) based on counting errors.\n\n### [BackupDRLimitedTimeRetryPolicy](/cpp/docs/reference/backupdr/2.33.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRLimitedTimeRetryPolicy)\n\nA retry policy for [`BackupDRConnection`](/cpp/docs/reference/backupdr/2.33.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection) based on elapsed time.\n\n### [BackupDRRetryPolicy](/cpp/docs/reference/backupdr/2.33.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRRetryPolicy)\n\nThe retry policy for [`BackupDRConnection`](/cpp/docs/reference/backupdr/2.33.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection).\n\nStructs\n-------\n\n### [BackupDRBackoffPolicyOption](/cpp/docs/reference/backupdr/2.33.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.33.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.33.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.33.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.33.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.33.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.33.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`](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`](https://cloud.google.com/cpp/docs/reference/common/latest/namespacegoogle_1_1cloud.html)\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()"]]