DseClusterBuilderWithCloudSecureConnectionBundle Method |
Configures a DseCluster using the Cloud Secure Connection Bundle. Using this method will configure this builder with specific contact points, SSL options, credentials and load balancing policy. When needed, you can specify custom settings by calling other builder methods.
In case you need to specify a different set of credentials from the one in the bundle, here is an example:
DseCluster.Builder() .WithCloudSecureConnectionBundle("/path/to/bundle.zip") .WithCredentials("username", "password") .Build();
Build will throw InvalidOperationException when an error occurs that is not related to connectivity and NoHostAvailableException when an error occurs while trying to obtain the cluster metadata from the remote endpoint.
Namespace: Dse
public DseClusterBuilder WithCloudSecureConnectionBundle( string bundlePath )