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.26.0, with links to documentation for other available versions.\u003c/p\u003e\n"],["\u003cp\u003eThe latest release candidate is version 2.37.0-rc, and links are provided to the API documentation for it and versions 2.26.0 through 2.36.0, and down to 2.23.0.\u003c/p\u003e\n"],["\u003cp\u003eKey C++ classes within this version include \u003ccode\u003eAppHubClient\u003c/code\u003e for managing App Hub resources and \u003ccode\u003eAppHubConnection\u003c/code\u003e, which the client uses to communicate with the API, along with several classes to manage retry policies.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeAppHubConnection\u003c/code\u003e function can be used to create an \u003ccode\u003eAppHubConnection\u003c/code\u003e object with configurable options, and the \u003ccode\u003eMakeDefaultAppHubConnectionIdempotencyPolicy\u003c/code\u003e function provides a default policy.\u003c/p\u003e\n"],["\u003cp\u003eStructs are available for different options such as \u003ccode\u003eAppHubBackoffPolicyOption\u003c/code\u003e, \u003ccode\u003eAppHubConnectionIdempotencyPolicyOption\u003c/code\u003e, \u003ccode\u003eAppHubPollingPolicyOption\u003c/code\u003e, and \u003ccode\u003eAppHubRetryPolicyOption\u003c/code\u003e, allowing for specific configurations of connection behaviors.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::apphub_v1 (2.26.0)\n\nVersion 2.26.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.26.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.26.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection)\n\nThe [`AppHubConnection`](/cpp/docs/reference/apphub/2.26.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection) object for [`AppHubClient`](/cpp/docs/reference/apphub/2.26.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubClient).\n\n### [AppHubConnectionIdempotencyPolicy](/cpp/docs/reference/apphub/2.26.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnectionIdempotencyPolicy)\n\n### [AppHubLimitedErrorCountRetryPolicy](/cpp/docs/reference/apphub/2.26.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubLimitedErrorCountRetryPolicy)\n\nA retry policy for [`AppHubConnection`](/cpp/docs/reference/apphub/2.26.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection) based on counting errors.\n\n### [AppHubLimitedTimeRetryPolicy](/cpp/docs/reference/apphub/2.26.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubLimitedTimeRetryPolicy)\n\nA retry policy for [`AppHubConnection`](/cpp/docs/reference/apphub/2.26.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection) based on elapsed time.\n\n### [AppHubRetryPolicy](/cpp/docs/reference/apphub/2.26.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubRetryPolicy)\n\nThe retry policy for [`AppHubConnection`](/cpp/docs/reference/apphub/2.26.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection).\n\nStructs\n-------\n\n### [AppHubBackoffPolicyOption](/cpp/docs/reference/apphub/2.26.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.26.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.26.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.26.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.26.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.26.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.26.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`](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::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()"]]