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 DR (Disaster Recovery) C++ client library, with the latest release candidate being version 2.37.0-rc and the current version for documentation at 2.24.0.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes links to various versions of the BackupDR service API, ranging from version 2.23.0 to the latest release candidate of 2.37.0-rc, enabling access to different version documentations.\u003c/p\u003e\n"],["\u003cp\u003eThe page details the available classes for the current documentation version, including \u003ccode\u003eBackupDRClient\u003c/code\u003e, \u003ccode\u003eBackupDRConnection\u003c/code\u003e, and several policy classes such as \u003ccode\u003eBackupDRConnectionIdempotencyPolicy\u003c/code\u003e, \u003ccode\u003eBackupDRRetryPolicy\u003c/code\u003e, and \u003ccode\u003eBackupDRLimitedErrorCountRetryPolicy\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt also outlines available structs for configuration options like \u003ccode\u003eBackupDRBackoffPolicyOption\u003c/code\u003e, \u003ccode\u003eBackupDRConnectionIdempotencyPolicyOption\u003c/code\u003e, and \u003ccode\u003eBackupDRPollingPolicyOption\u003c/code\u003e that can be utilized with Google Cloud Options.\u003c/p\u003e\n"],["\u003cp\u003eThe page outlines the usage of the \u003ccode\u003eMakeBackupDRConnection\u003c/code\u003e function, detailing how it creates a \u003ccode\u003eBackupDRConnection\u003c/code\u003e object and the various options that can configure the created connection.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::backupdr_v1 (2.24.0)\n\nVersion 2.24.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.24.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRClient)\n\nThe BackupDR Service.\n\n### [BackupDRConnection](/cpp/docs/reference/backupdr/2.24.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection)\n\nThe [`BackupDRConnection`](/cpp/docs/reference/backupdr/2.24.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection) object for [`BackupDRClient`](/cpp/docs/reference/backupdr/2.24.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRClient).\n\n### [BackupDRConnectionIdempotencyPolicy](/cpp/docs/reference/backupdr/2.24.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnectionIdempotencyPolicy)\n\n### [BackupDRLimitedErrorCountRetryPolicy](/cpp/docs/reference/backupdr/2.24.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRLimitedErrorCountRetryPolicy)\n\nA retry policy for [`BackupDRConnection`](/cpp/docs/reference/backupdr/2.24.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection) based on counting errors.\n\n### [BackupDRLimitedTimeRetryPolicy](/cpp/docs/reference/backupdr/2.24.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRLimitedTimeRetryPolicy)\n\nA retry policy for [`BackupDRConnection`](/cpp/docs/reference/backupdr/2.24.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection) based on elapsed time.\n\n### [BackupDRRetryPolicy](/cpp/docs/reference/backupdr/2.24.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRRetryPolicy)\n\nThe retry policy for [`BackupDRConnection`](/cpp/docs/reference/backupdr/2.24.0/classgoogle_1_1cloud_1_1backupdr__v1_1_1BackupDRConnection).\n\nStructs\n-------\n\n### [BackupDRBackoffPolicyOption](/cpp/docs/reference/backupdr/2.24.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.24.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.24.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.24.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.24.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.24.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.24.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()"]]