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 document outlines the `UpdateInstanceRequestBuilder` class, which is used to construct `google::spanner::admin::instance::v1::UpdateInstanceRequest` objects for updating Spanner instances."],["`UpdateInstanceRequestBuilder` can be constructed using various parameters, including an `Instance` object, an instance name string, or directly with a `google::spanner::admin::instance::v1::Instance` object."],["The class offers a range of functions to set or modify instance attributes like name, display name, node count, processing units, and labels."],["The `Build()` function finalizes the construction and returns the `google::spanner::admin::instance::v1::UpdateInstanceRequest` object, either as a reference or a rvalue reference."],["The latest version available in the documentation is 2.37.0-rc and the documentation covers versions starting at 2.11.0."]]],[]]