Google Cloud Spanner C++ Client 2.13.0
A C++ Client Library for Google Cloud Spanner
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
google::cloud::spanner::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 () &&
 

Friends

bool operator== (UpdateInstanceRequestBuilder const &a, UpdateInstanceRequestBuilder const &b) noexcept
 
bool operator!= (UpdateInstanceRequestBuilder const &a, UpdateInstanceRequestBuilder const &b) noexcept
 

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::move(instance).status();
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...
Definition: update_instance_request_builder.h:41
UpdateInstanceRequestBuilder & SetDisplayName(std::string display_name) &
Definition: update_instance_request_builder.h:91
google::spanner::admin::instance::v1::UpdateInstanceRequest & Build() &
Definition: update_instance_request_builder.h:137
Cloud Spanner Instance Admin API.
Definition: instance_admin_client.h:84
future< StatusOr< google::spanner::admin::instance::v1::Instance > > UpdateInstance(google::spanner::admin::instance::v1::Instance const &instance, google::protobuf::FieldMask const &field_mask, Options opts={})
Updates an instance, and begins allocating or releasing resources as requested.

Constructor & Destructor Documentation

◆ UpdateInstanceRequestBuilder() [1/6]

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

◆ UpdateInstanceRequestBuilder() [2/6]

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

◆ UpdateInstanceRequestBuilder() [3/6]

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

◆ UpdateInstanceRequestBuilder() [4/6]

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

◆ UpdateInstanceRequestBuilder() [5/6]

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

◆ UpdateInstanceRequestBuilder() [6/6]

google::cloud::spanner::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.

Member Function Documentation

◆ AddLabels() [1/2]

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

◆ AddLabels() [2/2]

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

◆ Build() [1/2]

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

◆ Build() [2/2]

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ SetDisplayName() [1/2]

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

◆ SetDisplayName() [2/2]

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

◆ SetLabels() [1/2]

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

◆ SetLabels() [2/2]

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

◆ SetName() [1/2]

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

◆ SetName() [2/2]

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

◆ SetNodeCount() [1/2]

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

◆ SetNodeCount() [2/2]

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

◆ SetProcessingUnits() [1/2]

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

◆ SetProcessingUnits() [2/2]

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

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( UpdateInstanceRequestBuilder const &  a,
UpdateInstanceRequestBuilder const &  b 
)
friend

◆ operator==

bool operator== ( UpdateInstanceRequestBuilder const &  a,
UpdateInstanceRequestBuilder const &  b 
)
friend