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() |
abstract ValueProvider<java.lang.String> |
getDatabaseId() |
abstract ValueProvider<java.lang.String> |
getHost() |
abstract ValueProvider<java.lang.String> |
getInstanceId() |
abstract ValueProvider<java.lang.String> |
getProjectId() |
void |
populateDisplayData(DisplayData.Builder builder) |
void |
validate() |
SpannerConfig |
withDatabaseId(java.lang.String databaseId) |
SpannerConfig |
withDatabaseId(ValueProvider<java.lang.String> databaseId) |
SpannerConfig |
withHost(ValueProvider<java.lang.String> host) |
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) |
@Nullable public abstract ValueProvider<java.lang.String> getProjectId()
@Nullable public abstract ValueProvider<java.lang.String> getInstanceId()
@Nullable public abstract ValueProvider<java.lang.String> getDatabaseId()
@Nullable public abstract ValueProvider<java.lang.String> getHost()
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 SpannerConfig withHost(ValueProvider<java.lang.String> host)
public SpannerAccessor connectToSpanner()