Class InstanceConfigInfo.Builder (6.62.0)

public abstract static class InstanceConfigInfo.Builder

Builder for InstanceConfigInfo.

Inheritance

java.lang.Object > InstanceConfigInfo.Builder

Constructors

Builder()

public Builder()

Methods

addLabel(String key, String value)

public abstract InstanceConfigInfo.Builder addLabel(String key, String value)
Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
InstanceConfigInfo.Builder

addReadOnlyReplicas(List<ReplicaInfo> readOnlyReplicas)

public abstract InstanceConfigInfo.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.

Parameter
NameDescription
readOnlyReplicasList<ReplicaInfo>
Returns
TypeDescription
InstanceConfigInfo.Builder

build()

public abstract InstanceConfigInfo build()
Returns
TypeDescription
InstanceConfigInfo

putAllLabels(Map<String,String> labels)

public abstract InstanceConfigInfo.Builder putAllLabels(Map<String,String> labels)
Parameter
NameDescription
labelsMap<String,String>
Returns
TypeDescription
InstanceConfigInfo.Builder

setBaseConfig(InstanceConfigInfo baseConfig)

protected abstract InstanceConfigInfo.Builder setBaseConfig(InstanceConfigInfo baseConfig)
Parameter
NameDescription
baseConfigInstanceConfigInfo
Returns
TypeDescription
InstanceConfigInfo.Builder

setConfigType(InstanceConfigInfo.Type configType)

protected abstract InstanceConfigInfo.Builder setConfigType(InstanceConfigInfo.Type configType)
Parameter
NameDescription
configTypeInstanceConfigInfo.Type
Returns
TypeDescription
InstanceConfigInfo.Builder

setDisplayName(String displayName)

public abstract InstanceConfigInfo.Builder setDisplayName(String displayName)
Parameter
NameDescription
displayNameString
Returns
TypeDescription
InstanceConfigInfo.Builder

setEtag(String etag)

public abstract InstanceConfigInfo.Builder setEtag(String etag)
Parameter
NameDescription
etagString
Returns
TypeDescription
InstanceConfigInfo.Builder

setLeaderOptions(List<String> leaderOptions)

public abstract InstanceConfigInfo.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
NameDescription
leaderOptionsList<String>
Returns
TypeDescription
InstanceConfigInfo.Builder

setOptionalReplicas(List<ReplicaInfo> optionalReplicas)

protected abstract InstanceConfigInfo.Builder setOptionalReplicas(List<ReplicaInfo> optionalReplicas)
Parameter
NameDescription
optionalReplicasList<ReplicaInfo>
Returns
TypeDescription
InstanceConfigInfo.Builder

setReconciling(boolean reconciling)

protected abstract InstanceConfigInfo.Builder setReconciling(boolean reconciling)
Parameter
NameDescription
reconcilingboolean
Returns
TypeDescription
InstanceConfigInfo.Builder

setReplicas(List<ReplicaInfo> replicas)

protected abstract InstanceConfigInfo.Builder setReplicas(List<ReplicaInfo> replicas)
Parameter
NameDescription
replicasList<ReplicaInfo>
Returns
TypeDescription
InstanceConfigInfo.Builder

setState(InstanceConfigInfo.State state)

protected abstract InstanceConfigInfo.Builder setState(InstanceConfigInfo.State state)
Parameter
NameDescription
stateInstanceConfigInfo.State
Returns
TypeDescription
InstanceConfigInfo.Builder