Google Cloud Spanner C++ Client  1.32.1
A C++ Client Library for Google Cloud Spanner
Public Member Functions | List of all members
google::cloud::spanner::v1::UpdateInstanceRequestBuilder Class Reference

UpdateInstanceRequestBuilder is a builder class for google::spanner::admin::instance::v1::UpdateInstanceRequest More...

#include <google/cloud/spanner/update_instance_request_builder.h>

Public Member Functions

 UpdateInstanceRequestBuilder ()=default
 Constructs a UpdateInstanceRequestBuilder. More...
 
 UpdateInstanceRequestBuilder (UpdateInstanceRequestBuilder const &)=default
 
 UpdateInstanceRequestBuilder (UpdateInstanceRequestBuilder &&)=default
 
UpdateInstanceRequestBuilderoperator= (UpdateInstanceRequestBuilder const &)=default
 
UpdateInstanceRequestBuilderoperator= (UpdateInstanceRequestBuilder &&)=default
 
 UpdateInstanceRequestBuilder (std::string instance_name)
 
 UpdateInstanceRequestBuilder (Instance const &in)
 
 UpdateInstanceRequestBuilder (google::spanner::admin::instance::v1::Instance in)
 Constructs UpdateInstanceRequestBuilder with google::spanner::admin::instance::v1::Instance. More...
 
UpdateInstanceRequestBuilderSetName (std::string name) &
 
UpdateInstanceRequestBuilder && SetName (std::string name) &&
 
UpdateInstanceRequestBuilderSetDisplayName (std::string display_name) &
 
UpdateInstanceRequestBuilder && SetDisplayName (std::string display_name) &&
 
UpdateInstanceRequestBuilderSetNodeCount (int node_count) &
 
UpdateInstanceRequestBuilder && SetNodeCount (int node_count) &&
 
UpdateInstanceRequestBuilderSetProcessingUnits (int processing_units) &
 
UpdateInstanceRequestBuilder && SetProcessingUnits (int processing_units) &&
 
UpdateInstanceRequestBuilderAddLabels (std::map< std::string, std::string > const &labels) &
 
UpdateInstanceRequestBuilder && AddLabels (std::map< std::string, std::string > const &labels) &&
 
UpdateInstanceRequestBuilderSetLabels (std::map< std::string, std::string > const &labels) &
 
UpdateInstanceRequestBuilder && SetLabels (std::map< std::string, std::string > const &labels) &&
 
google::spanner::admin::instance::v1::UpdateInstanceRequest & Build () &
 
google::spanner::admin::instance::v1::UpdateInstanceRequest && Build () &&
 

Detailed Description

UpdateInstanceRequestBuilder is a builder class for google::spanner::admin::instance::v1::UpdateInstanceRequest

This is useful when calling google::cloud::spanner::InstanceAdminClient::UpdateInstance() function.

Example
std::string const& project_id,
std::string const& instance_id,
std::string const& new_display_name) {
google::cloud::spanner::Instance in(project_id, instance_id);
auto f = client.UpdateInstance(
.SetDisplayName(new_display_name)
.Build());
auto instance = f.get();
if (!instance) throw std::runtime_error(instance.status().message());
std::cout << "Updated instance [" << in << "]\n";
}
This class identifies a Cloud Spanner Instance.
Definition: instance.h:42
UpdateInstanceRequestBuilder is a builder class for google::spanner::admin::instance::v1::UpdateInsta...
google::spanner::admin::instance::v1::UpdateInstanceRequest & Build() &
UpdateInstanceRequestBuilder & SetDisplayName(std::string display_name) &
future< StatusOr< google::spanner::admin::instance::v1::Instance > > UpdateInstance(google::spanner::admin::instance::v1::Instance const &instance, google::protobuf::FieldMask const &field_mask)
Updates an instance, and begins allocating or releasing resources as requested.

Definition at line 40 of file update_instance_request_builder.h.

Constructor & Destructor Documentation

◆ UpdateInstanceRequestBuilder() [1/6]

google::cloud::spanner::v1::UpdateInstanceRequestBuilder::UpdateInstanceRequestBuilder ( )
default

◆ UpdateInstanceRequestBuilder() [2/6]

google::cloud::spanner::v1::UpdateInstanceRequestBuilder::UpdateInstanceRequestBuilder ( UpdateInstanceRequestBuilder const &  )
default

◆ UpdateInstanceRequestBuilder() [3/6]

google::cloud::spanner::v1::UpdateInstanceRequestBuilder::UpdateInstanceRequestBuilder ( UpdateInstanceRequestBuilder &&  )
default

◆ UpdateInstanceRequestBuilder() [4/6]

google::cloud::spanner::v1::UpdateInstanceRequestBuilder::UpdateInstanceRequestBuilder ( std::string  instance_name)
inlineexplicit

Definition at line 55 of file update_instance_request_builder.h.

◆ UpdateInstanceRequestBuilder() [5/6]

google::cloud::spanner::v1::UpdateInstanceRequestBuilder::UpdateInstanceRequestBuilder ( Instance const &  in)
inlineexplicit

Definition at line 58 of file update_instance_request_builder.h.

◆ UpdateInstanceRequestBuilder() [6/6]

google::cloud::spanner::v1::UpdateInstanceRequestBuilder::UpdateInstanceRequestBuilder ( google::spanner::admin::instance::v1::Instance  in)
inlineexplicit

Constructs UpdateInstanceRequestBuilder with google::spanner::admin::instance::v1::Instance.

It's particularly useful if you want to add some labels to existing instances.

Definition at line 67 of file update_instance_request_builder.h.

Member Function Documentation

◆ AddLabels() [1/2]

UpdateInstanceRequestBuilder& google::cloud::spanner::v1::UpdateInstanceRequestBuilder::AddLabels ( std::map< std::string, std::string > const &  labels) &
inline

Definition at line 104 of file update_instance_request_builder.h.

◆ AddLabels() [2/2]

UpdateInstanceRequestBuilder&& google::cloud::spanner::v1::UpdateInstanceRequestBuilder::AddLabels ( std::map< std::string, std::string > const &  labels) &&
inline

Definition at line 109 of file update_instance_request_builder.h.

◆ Build() [1/2]

google::spanner::admin::instance::v1::UpdateInstanceRequest& google::cloud::spanner::v1::UpdateInstanceRequestBuilder::Build ( ) &
inline

Definition at line 126 of file update_instance_request_builder.h.

◆ Build() [2/2]

google::spanner::admin::instance::v1::UpdateInstanceRequest&& google::cloud::spanner::v1::UpdateInstanceRequestBuilder::Build ( ) &&
inline

Definition at line 129 of file update_instance_request_builder.h.

◆ operator=() [1/2]

UpdateInstanceRequestBuilder& google::cloud::spanner::v1::UpdateInstanceRequestBuilder::operator= ( UpdateInstanceRequestBuilder &&  )
default

◆ operator=() [2/2]

UpdateInstanceRequestBuilder& google::cloud::spanner::v1::UpdateInstanceRequestBuilder::operator= ( UpdateInstanceRequestBuilder const &  )
default

◆ SetDisplayName() [1/2]

UpdateInstanceRequestBuilder& google::cloud::spanner::v1::UpdateInstanceRequestBuilder::SetDisplayName ( std::string  display_name) &
inline

Definition at line 80 of file update_instance_request_builder.h.

◆ SetDisplayName() [2/2]

UpdateInstanceRequestBuilder&& google::cloud::spanner::v1::UpdateInstanceRequestBuilder::SetDisplayName ( std::string  display_name) &&
inline

Definition at line 84 of file update_instance_request_builder.h.

◆ SetLabels() [1/2]

UpdateInstanceRequestBuilder& google::cloud::spanner::v1::UpdateInstanceRequestBuilder::SetLabels ( std::map< std::string, std::string > const &  labels) &
inline

Definition at line 114 of file update_instance_request_builder.h.

◆ SetLabels() [2/2]

UpdateInstanceRequestBuilder&& google::cloud::spanner::v1::UpdateInstanceRequestBuilder::SetLabels ( std::map< std::string, std::string > const &  labels) &&
inline

Definition at line 120 of file update_instance_request_builder.h.

◆ SetName() [1/2]

UpdateInstanceRequestBuilder& google::cloud::spanner::v1::UpdateInstanceRequestBuilder::SetName ( std::string  name) &
inline

Definition at line 72 of file update_instance_request_builder.h.

◆ SetName() [2/2]

UpdateInstanceRequestBuilder&& google::cloud::spanner::v1::UpdateInstanceRequestBuilder::SetName ( std::string  name) &&
inline

Definition at line 76 of file update_instance_request_builder.h.

◆ SetNodeCount() [1/2]

UpdateInstanceRequestBuilder& google::cloud::spanner::v1::UpdateInstanceRequestBuilder::SetNodeCount ( int  node_count) &
inline

Definition at line 88 of file update_instance_request_builder.h.

◆ SetNodeCount() [2/2]

UpdateInstanceRequestBuilder&& google::cloud::spanner::v1::UpdateInstanceRequestBuilder::SetNodeCount ( int  node_count) &&
inline

Definition at line 92 of file update_instance_request_builder.h.

◆ SetProcessingUnits() [1/2]

UpdateInstanceRequestBuilder& google::cloud::spanner::v1::UpdateInstanceRequestBuilder::SetProcessingUnits ( int  processing_units) &
inline

Definition at line 96 of file update_instance_request_builder.h.

◆ SetProcessingUnits() [2/2]

UpdateInstanceRequestBuilder&& google::cloud::spanner::v1::UpdateInstanceRequestBuilder::SetProcessingUnits ( int  processing_units) &&
inline

Definition at line 100 of file update_instance_request_builder.h.