Google Cloud Bigtable C++ Client  1.32.1
A C++ Client Library for Google Cloud Bigtable
Public Member Functions | List of all members
google::cloud::bigtable::v1::InstanceConfig Class Reference

Specify the initial configuration for a new instance. More...

#include <google/cloud/bigtable/instance_config.h>

Public Member Functions

 InstanceConfig (std::string instance_id, std::string display_name, std::map< std::string, ClusterConfig > clusters)
 

Convenient shorthands for the instance types.

using InstanceType = ::google::bigtable::admin::v2::Instance::Type
 
constexpr static InstanceType TYPE_UNSPECIFIED
 
constexpr static InstanceType PRODUCTION
 
constexpr static InstanceType DEVELOPMENT
 
InstanceConfigset_type (InstanceType type)
 
InstanceConfiginsert_label (std::string const &key, std::string const &value)
 
InstanceConfigemplace_label (std::string const &key, std::string value)
 
google::bigtable::admin::v2::CreateInstanceRequest const & as_proto () const &
 
google::bigtable::admin::v2::CreateInstanceRequest && as_proto () &&
 

Detailed Description

Specify the initial configuration for a new instance.

Definition at line 30 of file instance_config.h.

Member Typedef Documentation

◆ InstanceType

using google::cloud::bigtable::v1::InstanceConfig::InstanceType = ::google::bigtable::admin::v2::Instance::Type

Definition at line 42 of file instance_config.h.

Constructor & Destructor Documentation

◆ InstanceConfig()

google::cloud::bigtable::v1::InstanceConfig::InstanceConfig ( std::string  instance_id,
std::string  display_name,
std::map< std::string, ClusterConfig clusters 
)
inline

Definition at line 32 of file instance_config.h.

Member Function Documentation

◆ as_proto() [1/2]

google::bigtable::admin::v2::CreateInstanceRequest&& google::cloud::bigtable::v1::InstanceConfig::as_proto ( ) &&
inline

Definition at line 76 of file instance_config.h.

◆ as_proto() [2/2]

google::bigtable::admin::v2::CreateInstanceRequest const& google::cloud::bigtable::v1::InstanceConfig::as_proto ( ) const &
inline

Definition at line 71 of file instance_config.h.

◆ emplace_label()

InstanceConfig& google::cloud::bigtable::v1::InstanceConfig::emplace_label ( std::string const &  key,
std::string  value 
)
inline

Definition at line 65 of file instance_config.h.

◆ insert_label()

InstanceConfig& google::cloud::bigtable::v1::InstanceConfig::insert_label ( std::string const &  key,
std::string const &  value 
)
inline

Definition at line 59 of file instance_config.h.

◆ set_type()

InstanceConfig& google::cloud::bigtable::v1::InstanceConfig::set_type ( InstanceType  type)
inline

Definition at line 54 of file instance_config.h.

Member Data Documentation

◆ DEVELOPMENT

constexpr InstanceConfig::InstanceType google::cloud::bigtable::v1::InstanceConfig::DEVELOPMENT
staticconstexpr
Initial value:
=
google::bigtable::admin::v2::Instance::DEVELOPMENT

Definition at line 50 of file instance_config.h.

◆ PRODUCTION

constexpr InstanceConfig::InstanceType google::cloud::bigtable::v1::InstanceConfig::PRODUCTION
staticconstexpr
Initial value:
=
google::bigtable::admin::v2::Instance::PRODUCTION

Definition at line 47 of file instance_config.h.

◆ TYPE_UNSPECIFIED

constexpr InstanceConfig::InstanceType google::cloud::bigtable::v1::InstanceConfig::TYPE_UNSPECIFIED
staticconstexpr
Initial value:
=
google::bigtable::admin::v2::Instance::TYPE_UNSPECIFIED

Definition at line 44 of file instance_config.h.