auto f = client.UpdateInstance( google::cloud::spanner::UpdateInstanceRequestBuilder(in) .SetDisplayName(new_display_name) .Build()); auto instance = f.get(); if(!instance)throw std::move(instance).status(); std::cout <<"Updated instance ["<< in <<"]\n"; }
[[["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-03-21 UTC."],[[["The `UpdateInstanceRequestBuilder` class is used to construct requests for updating Spanner instances."],["It supports various constructors, including one that accepts an existing `Instance` object or the `google::spanner::admin::instance::v1::Instance` type."],["It includes functions to set properties such as `name`, `display_name`, `node_count`, `processing_units`, and `labels` for the instance being updated."],["The `Build()` functions are used to generate the `google::spanner::admin::instance::v1::UpdateInstanceRequest` used in the `UpdateInstance()` call."],["The page contains documentation for `UpdateInstanceRequestBuilder` for versions of 2.11.0 up to 2.37.0-rc."]]],[]]