39#include <system_error>
44#ifndef COUCHBASE_CXX_CLIENT_DOXYGEN
62 : username_{ std::move(username) }
63 , password_{ std::move(password) }
75 : username_{ std::move(authenticator.username_) }
76 , password_{ std::move(authenticator.password_) }
78 if (authenticator.ldap_compatible_) {
79 sasl_mechanisms_ = { {
"PLAIN" } };
91 : certificate_path_{ std::move(authenticator.certificate_path_) }
92 , key_path_{ std::move(authenticator.key_path_) }
228 return transactions_;
241 return application_telemetry_;
254 if (strategy ==
nullptr) {
255 throw std::invalid_argument(
"retry strategy cannot be null");
257 default_retry_strategy_ = std::move(strategy);
264 throw std::invalid_argument(
"crypto manager cannot be null");
298 compression_.build(),
306 transactions_.build(),
307 default_retry_strategy_,
308 application_telemetry_.build(),
314 std::string username_{};
315 std::string password_{};
316 std::string certificate_path_{};
317 std::string key_path_{};
318 std::optional<std::vector<std::string>> sasl_mechanisms_{};
329 std::shared_ptr<retry_strategy> default_retry_strategy_{
nullptr };
331 std::shared_ptr<crypto::manager> crypto_manager_{};
334#ifndef COUCHBASE_CXX_CLIENT_DOXYGEN
Definition application_telemetry_options.hxx:27
Definition behavior_options.hxx:25
Definition certificate_authenticator.hxx:25
auto behavior() -> behavior_options &
Returns misc options that affects cluster behavior.
Definition cluster_options.hxx:213
cluster_options(password_authenticator authenticator)
Definition cluster_options.hxx:74
cluster_options(certificate_authenticator authenticator)
Definition cluster_options.hxx:90
cluster_options(std::string username, std::string password)
Definition cluster_options.hxx:61
auto application_telemetry() -> application_telemetry_options &
Returns the Application Telemetry options.
Definition cluster_options.hxx:239
auto tracing() -> tracing_options &
Returns tracing options.
Definition cluster_options.hxx:200
auto build() const -> built
Definition cluster_options.hxx:290
auto default_retry_strategy(std::shared_ptr< retry_strategy > strategy) -> cluster_options &
Override default retry strategy.
Definition cluster_options.hxx:252
auto security() -> security_options &
Returns security options (including TLS)
Definition cluster_options.hxx:161
void apply_profile(const std::string &profile_name)
Apply settings profile by name.
Definition cluster_options.hxx:109
auto network() -> network_options &
Returns network options.
Definition cluster_options.hxx:174
auto dns() -> dns_options &
Returns options for DNS-SRV bootstrap.
Definition cluster_options.hxx:148
auto compression() -> compression_options &
Returns compression options.
Definition cluster_options.hxx:122
auto crypto_manager(std::shared_ptr< crypto::manager > crypto_manager) -> cluster_options &
Definition cluster_options.hxx:261
auto timeouts() -> timeout_options &
Returns various timeout options.
Definition cluster_options.hxx:135
auto transactions() -> transactions::transactions_config &
Returns the transactions options which effect the transactions behavior.
Definition cluster_options.hxx:226
auto metrics() -> metrics_options &
Returns metrics and observability options.
Definition cluster_options.hxx:187
The cluster is the main entry point when connecting to a Couchbase cluster.
Definition cluster.hxx:60
Definition compression_options.hxx:25
static void apply_profile(const std::string &name, couchbase::cluster_options &options)
Apply a profile to an instance of cluster_options.
Definition dns_options.hxx:28
Definition metrics_options.hxx:29
Definition network_options.hxx:30
Definition password_authenticator.hxx:25
Definition security_options.hxx:28
Definition timeout_options.hxx:26
Definition tracing_options.hxx:29
Configuration parameters for transactions.
Definition transactions_config.hxx:43
Definition internal.hxx:27
Represents a single item from the result of scan()
Definition allow_querying_search_index_options.hxx:28
std::function< void(error, cluster)> cluster_connect_handler
The signature for the handler of the connect()
Definition cluster_options.hxx:344
Definition application_telemetry_options.hxx:102
Definition behavior_options.hxx:76
Definition cluster_options.hxx:270
std::string password
Definition cluster_options.hxx:272
metrics_options::built metrics
Definition cluster_options.hxx:281
network_options::built network
Definition cluster_options.hxx:280
compression_options::built compression
Definition cluster_options.hxx:276
std::shared_ptr< retry_strategy > default_retry_strategy
Definition cluster_options.hxx:285
security_options::built security
Definition cluster_options.hxx:279
std::string username
Definition cluster_options.hxx:271
timeout_options::built timeouts
Definition cluster_options.hxx:277
transactions::transactions_config::built transactions
Definition cluster_options.hxx:284
std::optional< std::vector< std::string > > allowed_sasl_mechanisms
Definition cluster_options.hxx:275
std::string certificate_path
Definition cluster_options.hxx:273
std::string key_path
Definition cluster_options.hxx:274
tracing_options::built tracing
Definition cluster_options.hxx:282
std::shared_ptr< crypto::manager > crypto_manager
Definition cluster_options.hxx:287
behavior_options::built behavior
Definition cluster_options.hxx:283
dns_options::built dns
Definition cluster_options.hxx:278
application_telemetry_options::built application_telemetry
Definition cluster_options.hxx:286
Definition compression_options.hxx:45
Definition dns_options.hxx:45
Definition metrics_options.hxx:51
Definition network_options.hxx:117
Definition security_options.hxx:54
Definition timeout_options.hxx:119
Definition tracing_options.hxx:127