public static class InstanceConfig.Builder extends InstanceConfigInfo.BuilderImpl
Builder of InstanceConfig
.
Inherited Members
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.addLabel(java.lang.String,java.lang.String)
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.addReadOnlyReplicas(java.util.List<com.google.cloud.spanner.ReplicaInfo>)
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.build()
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.putAllLabels(java.util.Map<java.lang.String,java.lang.String>)
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setBaseConfig(com.google.cloud.spanner.InstanceConfigInfo)
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setConfigType(com.google.cloud.spanner.InstanceConfigInfo.Type)
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setDisplayName(java.lang.String)
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setEtag(java.lang.String)
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setLeaderOptions(java.util.List<java.lang.String>)
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setOptionalReplicas(java.util.List<com.google.cloud.spanner.ReplicaInfo>)
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setReconciling(boolean)
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setReplicas(java.util.List<com.google.cloud.spanner.ReplicaInfo>)
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setState(com.google.cloud.spanner.InstanceConfigInfo.State)
Methods
addLabel(String key, String value)
public InstanceConfig.Builder addLabel(String key, String value)
Overrides
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.addLabel(java.lang.String,java.lang.String)
addReadOnlyReplicas(List<ReplicaInfo> readOnlyReplicas)
public InstanceConfig.Builder addReadOnlyReplicas(List<ReplicaInfo> readOnlyReplicas)
Adds the read only replicas to the set of replicas for a custom instance config. Called with
one or more of the optional replicas of the base config.
Overrides
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.addReadOnlyReplicas(java.util.List<com.google.cloud.spanner.ReplicaInfo>)
build()
public InstanceConfig build()
Overrides
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.build()
putAllLabels(Map<String,String> labels)
public InstanceConfig.Builder putAllLabels(Map<String,String> labels)
Overrides
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.putAllLabels(java.util.Map<java.lang.String,java.lang.String>)
setBaseConfig(InstanceConfigInfo baseConfig)
protected InstanceConfig.Builder setBaseConfig(InstanceConfigInfo baseConfig)
Overrides
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setBaseConfig(com.google.cloud.spanner.InstanceConfigInfo)
setConfigType(InstanceConfigInfo.Type configType)
protected InstanceConfig.Builder setConfigType(InstanceConfigInfo.Type configType)
Overrides
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setConfigType(com.google.cloud.spanner.InstanceConfigInfo.Type)
setDisplayName(String displayName)
public InstanceConfig.Builder setDisplayName(String displayName)
Parameter |
Name |
Description |
displayName |
String
|
Overrides
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setDisplayName(java.lang.String)
setEtag(String etag)
public InstanceConfig.Builder setEtag(String etag)
Parameter |
Name |
Description |
etag |
String
|
Overrides
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setEtag(java.lang.String)
setLeaderOptions(List<String> leaderOptions)
public InstanceConfig.Builder setLeaderOptions(List<String> leaderOptions)
Sets the allowed values of the "default_leader" schema option for databases in instances that
use this instance configuration.
Parameter |
Name |
Description |
leaderOptions |
List<String>
|
Overrides
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setLeaderOptions(java.util.List<java.lang.String>)
setOptionalReplicas(List<ReplicaInfo> optionalReplicas)
protected InstanceConfig.Builder setOptionalReplicas(List<ReplicaInfo> optionalReplicas)
Overrides
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setOptionalReplicas(java.util.List<com.google.cloud.spanner.ReplicaInfo>)
setReconciling(boolean reconciling)
protected InstanceConfig.Builder setReconciling(boolean reconciling)
Parameter |
Name |
Description |
reconciling |
boolean
|
Overrides
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setReconciling(boolean)
setReplicas(List<ReplicaInfo> replicas)
protected InstanceConfig.Builder setReplicas(List<ReplicaInfo> replicas)
Overrides
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setReplicas(java.util.List<com.google.cloud.spanner.ReplicaInfo>)
setState(InstanceConfigInfo.State state)
protected InstanceConfig.Builder setState(InstanceConfigInfo.State state)
Overrides
com.google.cloud.spanner.InstanceConfigInfo.BuilderImpl.setState(com.google.cloud.spanner.InstanceConfigInfo.State)