public abstract class SpannerConfig
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SpannerConfig.Builder
Builder for
SpannerConfig . |
Constructor and Description |
---|
SpannerConfig() |
Modifier and Type | Method and Description |
---|---|
SpannerAccessor |
connectToSpanner() |
static SpannerConfig |
create() |
void |
populateDisplayData(DisplayData.Builder builder) |
void |
validate() |
SpannerConfig |
withDatabaseId(java.lang.String databaseId) |
SpannerConfig |
withDatabaseId(ValueProvider<java.lang.String> databaseId) |
SpannerConfig |
withInstanceId(java.lang.String instanceId) |
SpannerConfig |
withInstanceId(ValueProvider<java.lang.String> instanceId) |
SpannerConfig |
withProjectId(java.lang.String projectId) |
SpannerConfig |
withProjectId(ValueProvider<java.lang.String> projectId) |
public static SpannerConfig create()
public void validate()
public void populateDisplayData(DisplayData.Builder builder)
public SpannerConfig withProjectId(ValueProvider<java.lang.String> projectId)
public SpannerConfig withProjectId(java.lang.String projectId)
public SpannerConfig withInstanceId(ValueProvider<java.lang.String> instanceId)
public SpannerConfig withInstanceId(java.lang.String instanceId)
public SpannerConfig withDatabaseId(ValueProvider<java.lang.String> databaseId)
public SpannerConfig withDatabaseId(java.lang.String databaseId)
public SpannerAccessor connectToSpanner()