@@ -1384,19 +1384,57 @@ public Builder withNoCompact() {
1384
1384
return this ;
1385
1385
}
1386
1386
1387
+ /**
1388
+ * Configure for Scylla Cloud Serverless cluster using configuration bundle.
1389
+ *
1390
+ * @param configurationFile configuration bundle file.
1391
+ * @return this builder.
1392
+ * @throws IOException
1393
+ * @see Builder#withScyllaCloudConnectionConfig(ScyllaCloudConnectionConfig)
1394
+ */
1387
1395
public Builder withScyllaCloudConnectionConfig (File configurationFile ) throws IOException {
1388
1396
return withScyllaCloudConnectionConfig (configurationFile .toURI ().toURL ());
1389
1397
}
1390
1398
1399
+ /**
1400
+ * Configure for Scylla Cloud Serverless cluster using URL to configuration bundle.
1401
+ *
1402
+ * @param configurationUrl URL from which configuration bundle can be read.
1403
+ * @return this builder.
1404
+ * @throws IOException
1405
+ * @see Builder#withScyllaCloudConnectionConfig(ScyllaCloudConnectionConfig)
1406
+ */
1391
1407
public Builder withScyllaCloudConnectionConfig (URL configurationUrl ) throws IOException {
1392
1408
return withScyllaCloudConnectionConfig (configurationUrl .openStream ());
1393
1409
}
1394
1410
1411
+ /**
1412
+ * Configure for Scylla Cloud Serverless cluster using InputStream of configuration bundle.
1413
+ *
1414
+ * @param inputStream input stream containing configuration bundle format data.
1415
+ * @return this builder.
1416
+ * @throws IOException
1417
+ * @see Builder#withScyllaCloudConnectionConfig(ScyllaCloudConnectionConfig)
1418
+ */
1395
1419
public Builder withScyllaCloudConnectionConfig (InputStream inputStream ) throws IOException {
1396
1420
return withScyllaCloudConnectionConfig (
1397
1421
ScyllaCloudConnectionConfig .fromInputStream (inputStream ));
1398
1422
}
1399
1423
1424
+ /**
1425
+ * Sets a collection of options for connecting to Scylla Cloud Serverless cluster.
1426
+ *
1427
+ * <p>Sets several options according to provided {@link ScyllaCloudConnectionConfig}. This
1428
+ * includes calling {@link Builder#withEndPointFactory(EndPointFactory)}, {@link
1429
+ * Builder#withSSL(SSLOptions)}, {@link Builder#withAuthProvider(AuthProvider)}, {@link
1430
+ * Builder#withoutAdvancedShardAwareness()} with parameters derived from the config.
1431
+ *
1432
+ * <p>Cannot be combined with {@link Builder#addContactPoint}. All contact points should already
1433
+ * be provided in {@link ScyllaCloudConnectionConfig}.
1434
+ *
1435
+ * @param config instantiated ScyllaCloudConnectionConfig.
1436
+ * @return this builder.
1437
+ */
1400
1438
protected Builder withScyllaCloudConnectionConfig (ScyllaCloudConnectionConfig config ) {
1401
1439
try {
1402
1440
ScyllaCloudDatacenter currentDatacenter = config .getCurrentDatacenter ();
0 commit comments