A factory function to construct an object of typeAppHubConnection.
The returned connection object should not be used directly; instead it should be passed as an argument to the constructor ofAppHubClient.
The optionaloptionsargument may be used to configure aspects of the returnedAppHubConnection. 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 App Hub API, specifically for C++ version 2.23.0.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release candidate version is 2.37.0-rc, and multiple previous versions from 2.36.0 down to 2.23.0 are available.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation details various classes like \u003ccode\u003eAppHubClient\u003c/code\u003e, \u003ccode\u003eAppHubConnection\u003c/code\u003e, and several policy classes related to retry and connection behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation also defines structs to configure options for backoff, idempotency, polling, and retry policies within the App Hub API.\u003c/p\u003e\n"],["\u003cp\u003eA factory function, \u003ccode\u003eMakeAppHubConnection(Options)\u003c/code\u003e, is provided to construct \u003ccode\u003eAppHubConnection\u003c/code\u003e objects, which are required for the \u003ccode\u003eAppHubClient\u003c/code\u003e, with customizable options for connection behavior, and a function \u003ccode\u003eMakeDefaultAppHubConnectionIdempotencyPolicy()\u003c/code\u003e is also available.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::apphub_v1 (2.23.0)\n\nVersion 2.23.0keyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/apphub/latest/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.41.0](/cpp/docs/reference/apphub/2.41.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.40.0](/cpp/docs/reference/apphub/2.40.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.39.0](/cpp/docs/reference/apphub/2.39.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.38.0](/cpp/docs/reference/apphub/2.38.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.37.0](/cpp/docs/reference/apphub/2.37.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.36.0](/cpp/docs/reference/apphub/2.36.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.35.0](/cpp/docs/reference/apphub/2.35.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.34.0](/cpp/docs/reference/apphub/2.34.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.33.0](/cpp/docs/reference/apphub/2.33.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.32.0](/cpp/docs/reference/apphub/2.32.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.31.0](/cpp/docs/reference/apphub/2.31.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.30.0](/cpp/docs/reference/apphub/2.30.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.29.0](/cpp/docs/reference/apphub/2.29.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.28.0](/cpp/docs/reference/apphub/2.28.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.27.0](/cpp/docs/reference/apphub/2.27.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.26.0](/cpp/docs/reference/apphub/2.26.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.25.1](/cpp/docs/reference/apphub/2.25.1/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.24.0](/cpp/docs/reference/apphub/2.24.0/namespacegoogle_1_1cloud_1_1apphub__v1)\n- [2.23.0](/cpp/docs/reference/apphub/2.23.0/namespacegoogle_1_1cloud_1_1apphub__v1) \n\nClasses\n-------\n\n### [AppHubClient](/cpp/docs/reference/apphub/2.23.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubClient)\n\nThe App Hub API allows you to manage App Hub resources.\n\n### [AppHubConnection](/cpp/docs/reference/apphub/2.23.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection)\n\nThe [`AppHubConnection`](/cpp/docs/reference/apphub/2.23.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection) object for [`AppHubClient`](/cpp/docs/reference/apphub/2.23.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubClient).\n\n### [AppHubConnectionIdempotencyPolicy](/cpp/docs/reference/apphub/2.23.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnectionIdempotencyPolicy)\n\n### [AppHubLimitedErrorCountRetryPolicy](/cpp/docs/reference/apphub/2.23.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubLimitedErrorCountRetryPolicy)\n\nA retry policy for [`AppHubConnection`](/cpp/docs/reference/apphub/2.23.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection) based on counting errors.\n\n### [AppHubLimitedTimeRetryPolicy](/cpp/docs/reference/apphub/2.23.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubLimitedTimeRetryPolicy)\n\nA retry policy for [`AppHubConnection`](/cpp/docs/reference/apphub/2.23.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection) based on elapsed time.\n\n### [AppHubRetryPolicy](/cpp/docs/reference/apphub/2.23.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubRetryPolicy)\n\nThe retry policy for [`AppHubConnection`](/cpp/docs/reference/apphub/2.23.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection).\n\nStructs\n-------\n\n### [AppHubBackoffPolicyOption](/cpp/docs/reference/apphub/2.23.0/structgoogle_1_1cloud_1_1apphub__v1_1_1AppHubBackoffPolicyOption)\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### [AppHubConnectionIdempotencyPolicyOption](/cpp/docs/reference/apphub/2.23.0/structgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnectionIdempotencyPolicyOption)\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### [AppHubPollingPolicyOption](/cpp/docs/reference/apphub/2.23.0/structgoogle_1_1cloud_1_1apphub__v1_1_1AppHubPollingPolicyOption)\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### [AppHubRetryPolicyOption](/cpp/docs/reference/apphub/2.23.0/structgoogle_1_1cloud_1_1apphub__v1_1_1AppHubRetryPolicyOption)\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### MakeAppHubConnection(Options)\n\nA factory function to construct an object of type [`AppHubConnection`](/cpp/docs/reference/apphub/2.23.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection). \nThe returned connection object should not be used directly; instead it should be passed as an argument to the constructor of [AppHubClient](/cpp/docs/reference/apphub/2.23.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubClient).\n\nThe optional `options` argument may be used to configure aspects of the returned [`AppHubConnection`](/cpp/docs/reference/apphub/2.23.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection). 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::apphub_v1::AppHubPolicyOptionList`](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### MakeDefaultAppHubConnectionIdempotencyPolicy()"]]