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."],[[["This webpage details the `UpdateInstanceRequestBuilder` class in the Google Cloud Spanner C++ library, with version 2.37.0-rc as the latest version."],["`UpdateInstanceRequestBuilder` is designed to construct and configure `google::spanner::admin::instance::v1::UpdateInstanceRequest` for use with the `InstanceAdminClient::UpdateInstance()` function, which enables modification of existing Spanner instances."],["The class provides various constructors to initialize the builder, including options to set the instance name directly or use an `Instance` object."],["It features multiple functions to modify the instance's properties, such as `SetName`, `SetDisplayName`, `SetNodeCount`, `SetProcessingUnits`, and `SetLabels`."],["There are also `Build` functions to create the final `UpdateInstanceRequest`, along with an example implementation to help users understand how to update a spanner instance."]]],[]]