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 document provides C++ reference documentation for the App Hub API, specifically for version 2.24.0.\u003c/p\u003e\n"],["\u003cp\u003eIt lists available versions, with 2.37.0-rc being the latest release candidate and 2.24.0 being the version covered on this page.\u003c/p\u003e\n"],["\u003cp\u003eKey classes for interacting with the App Hub API include \u003ccode\u003eAppHubClient\u003c/code\u003e, \u003ccode\u003eAppHubConnection\u003c/code\u003e, and various retry and policy classes, as shown in this documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe document outlines the \u003ccode\u003eMakeAppHubConnection\u003c/code\u003e factory function used to create \u003ccode\u003eAppHubConnection\u003c/code\u003e objects, accepting optional configurations for common, gRPC, credential, and App Hub policy settings.\u003c/p\u003e\n"],["\u003cp\u003eIt also describes \u003ccode\u003eMakeDefaultAppHubConnectionIdempotencyPolicy\u003c/code\u003e, a function that provides a unique pointer to an \u003ccode\u003eAppHubConnectionIdempotencyPolicy\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::apphub_v1 (2.24.0)\n\nVersion 2.24.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.24.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.24.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection)\n\nThe [`AppHubConnection`](/cpp/docs/reference/apphub/2.24.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection) object for [`AppHubClient`](/cpp/docs/reference/apphub/2.24.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubClient).\n\n### [AppHubConnectionIdempotencyPolicy](/cpp/docs/reference/apphub/2.24.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnectionIdempotencyPolicy)\n\n### [AppHubLimitedErrorCountRetryPolicy](/cpp/docs/reference/apphub/2.24.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubLimitedErrorCountRetryPolicy)\n\nA retry policy for [`AppHubConnection`](/cpp/docs/reference/apphub/2.24.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection) based on counting errors.\n\n### [AppHubLimitedTimeRetryPolicy](/cpp/docs/reference/apphub/2.24.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubLimitedTimeRetryPolicy)\n\nA retry policy for [`AppHubConnection`](/cpp/docs/reference/apphub/2.24.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection) based on elapsed time.\n\n### [AppHubRetryPolicy](/cpp/docs/reference/apphub/2.24.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubRetryPolicy)\n\nThe retry policy for [`AppHubConnection`](/cpp/docs/reference/apphub/2.24.0/classgoogle_1_1cloud_1_1apphub__v1_1_1AppHubConnection).\n\nStructs\n-------\n\n### [AppHubBackoffPolicyOption](/cpp/docs/reference/apphub/2.24.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.24.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.24.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.24.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.24.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.24.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.24.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()"]]