[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-22 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eUpdateInstanceRequestBuilder\u003c/code\u003e class is used to construct \u003ccode\u003egoogle::spanner::admin::instance::v1::UpdateInstanceRequest\u003c/code\u003e objects for updating Cloud Spanner instances.\u003c/p\u003e\n"],["\u003cp\u003eThis builder class offers various constructors for creating instances, including those that accept an \u003ccode\u003eInstance\u003c/code\u003e object, a raw \u003ccode\u003estd::string\u003c/code\u003e name, and a \u003ccode\u003egoogle::spanner::admin::instance::v1::Instance\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eIt provides setter functions, like \u003ccode\u003eSetName\u003c/code\u003e, \u003ccode\u003eSetDisplayName\u003c/code\u003e, \u003ccode\u003eSetNodeCount\u003c/code\u003e, \u003ccode\u003eSetProcessingUnits\u003c/code\u003e, and \u003ccode\u003eSetLabels\u003c/code\u003e, allowing for comprehensive configuration of the update request.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAddLabels\u003c/code\u003e and \u003ccode\u003eSetLabels\u003c/code\u003e allow modification of labels for instances.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBuild()\u003c/code\u003e function finalizes the configuration and returns the \u003ccode\u003egoogle::spanner::admin::instance::v1::UpdateInstanceRequest\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class UpdateInstanceRequestBuilder (2.11.0)\n\nVersion 2.11.0keyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/spanner/latest/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.41.0](/cpp/docs/reference/spanner/2.41.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.40.0](/cpp/docs/reference/spanner/2.40.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.39.0](/cpp/docs/reference/spanner/2.39.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.38.0](/cpp/docs/reference/spanner/2.38.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.37.0](/cpp/docs/reference/spanner/2.37.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.36.0](/cpp/docs/reference/spanner/2.36.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.35.0](/cpp/docs/reference/spanner/2.35.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.34.0](/cpp/docs/reference/spanner/2.34.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.33.0](/cpp/docs/reference/spanner/2.33.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.32.0](/cpp/docs/reference/spanner/2.32.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.31.0](/cpp/docs/reference/spanner/2.31.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.30.0](/cpp/docs/reference/spanner/2.30.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.29.0](/cpp/docs/reference/spanner/2.29.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.28.0](/cpp/docs/reference/spanner/2.28.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.27.0](/cpp/docs/reference/spanner/2.27.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.26.0](/cpp/docs/reference/spanner/2.26.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.25.1](/cpp/docs/reference/spanner/2.25.1/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.24.0](/cpp/docs/reference/spanner/2.24.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.23.0](/cpp/docs/reference/spanner/2.23.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.22.1](/cpp/docs/reference/spanner/2.22.1/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.21.0](/cpp/docs/reference/spanner/2.21.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.20.0](/cpp/docs/reference/spanner/2.20.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.19.0](/cpp/docs/reference/spanner/2.19.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.18.0](/cpp/docs/reference/spanner/2.18.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.17.0](/cpp/docs/reference/spanner/2.17.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.16.0](/cpp/docs/reference/spanner/2.16.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.15.1](/cpp/docs/reference/spanner/2.15.1/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.14.0](/cpp/docs/reference/spanner/2.14.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.13.0](/cpp/docs/reference/spanner/2.13.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.12.0](/cpp/docs/reference/spanner/2.12.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder)\n- [2.11.0](/cpp/docs/reference/spanner/2.11.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder) \n[UpdateInstanceRequestBuilder](/cpp/docs/reference/spanner/2.11.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder) is a builder class for `google::spanner::admin::instance::v1::UpdateInstanceRequest` \nThis is useful when calling [`google::cloud::spanner::InstanceAdminClient::UpdateInstance()`](/cpp/docs/reference/spanner/2.11.0/classgoogle_1_1cloud_1_1spanner_1_1InstanceAdminClient#classgoogle_1_1cloud_1_1spanner_1_1InstanceAdminClient_1aec75e39fe8761bd29f394c91a71ba5b5) function.\n\n###### Example\n\n void UpdateInstance(google::cloud::spanner_admin::InstanceAdminClient client,\n std::string const& project_id,\n std::string const& instance_id,\n std::string const& new_display_name) {\n google::cloud::spanner::Instance in(project_id, instance_id);\n\n auto f = client.UpdateInstance(\n google::cloud::spanner::UpdateInstanceRequestBuilder(in)\n .SetDisplayName(new_display_name)\n .Build());\n auto instance = f.get();\n if (!instance) throw std::move(instance).status();\n std::cout \u003c\u003c \"Updated instance [\" \u003c\u003c in \u003c\u003c \"]\\n\";\n }\n\nConstructors\n------------\n\n### UpdateInstanceRequestBuilder()\n\nConstructs a [`UpdateInstanceRequestBuilder`](/cpp/docs/reference/spanner/2.11.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder).\n\n### UpdateInstanceRequestBuilder(UpdateInstanceRequestBuilder const \\&)\n\n### UpdateInstanceRequestBuilder(UpdateInstanceRequestBuilder \\&\\&)\n\n### UpdateInstanceRequestBuilder(std::string)\n\n### UpdateInstanceRequestBuilder(Instance const \\&)\n\n### UpdateInstanceRequestBuilder(google::spanner::admin::instance::v1::Instance)\n\nConstructs [`UpdateInstanceRequestBuilder`](/cpp/docs/reference/spanner/2.11.0/classgoogle_1_1cloud_1_1spanner_1_1UpdateInstanceRequestBuilder) with google::spanner::admin::instance::v1::Instance. \nIt's particularly useful if you want to add some labels to existing instances.\n\nOperators\n---------\n\n### operator=(UpdateInstanceRequestBuilder const \\&)\n\n### operator=(UpdateInstanceRequestBuilder \\&\\&)\n\nFunctions\n---------\n\n### SetName(std::string) \\&\n\n### SetName(std::string) \\&\\&\n\n### SetDisplayName(std::string) \\&\n\n### SetDisplayName(std::string) \\&\\&\n\n### SetNodeCount(int) \\&\n\n### SetNodeCount(int) \\&\\&\n\n### SetProcessingUnits(int) \\&\n\n### SetProcessingUnits(int) \\&\\&\n\n### AddLabels(std::map\\\u003c std::string, std::string \\\u003e const \\&) \\&\n\n### AddLabels(std::map\\\u003c std::string, std::string \\\u003e const \\&) \\&\\&\n\n### SetLabels(std::map\\\u003c std::string, std::string \\\u003e const \\&) \\&\n\n### SetLabels(std::map\\\u003c std::string, std::string \\\u003e const \\&) \\&\\&\n\n### Build() \\&\n\n### Build() \\&\\&"]]