public static final class BigtableResourceManager.Builder
extends java.lang.Object
BigtableResourceManager
.Modifier and Type | Method and Description |
---|---|
BigtableResourceManager |
build() |
BigtableResourceManager.Builder |
maybeUseStaticInstance()
Looks at the system properties if there's an instance id, and reuses it if configured.
|
BigtableResourceManager.Builder |
setCredentialsProvider(com.google.api.gax.core.CredentialsProvider credentialsProvider)
Set the GCP credentials provider to connect to the project defined in the builder.
|
BigtableResourceManager.Builder |
setInstanceId(java.lang.String instanceId)
Set the instance ID of a static Bigtable instance for this Resource Manager to manage.
|
BigtableResourceManager.Builder |
useStaticInstance()
Configures the resource manager to use a static GCP resource instead of creating a new
instance of the resource.
|
public BigtableResourceManager.Builder setCredentialsProvider(com.google.api.gax.core.CredentialsProvider credentialsProvider)
credentialsProvider
- The GCP CredentialsProvider.public BigtableResourceManager.Builder setInstanceId(java.lang.String instanceId)
public BigtableResourceManager.Builder useStaticInstance()
public BigtableResourceManager.Builder maybeUseStaticInstance()
public BigtableResourceManager build() throws java.io.IOException
java.io.IOException