Class InstanceConfigInfo.Builder (6.80.1)

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
Name Description
key String
value String
Returns
Type Description
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
Name Description
readOnlyReplicas List<ReplicaInfo>
Returns
Type Description
InstanceConfigInfo.Builder

build()

public abstract InstanceConfigInfo build()
Returns
Type Description
InstanceConfigInfo

putAllLabels(Map<String,String> labels)

public abstract InstanceConfigInfo.Builder putAllLabels(Map<String,String> labels)
Parameter
Name Description
labels Map<String,String>
Returns
Type Description
InstanceConfigInfo.Builder

setBaseConfig(InstanceConfigInfo baseConfig)

protected abstract InstanceConfigInfo.Builder setBaseConfig(InstanceConfigInfo baseConfig)
Parameter
Name Description
baseConfig InstanceConfigInfo
Returns
Type Description
InstanceConfigInfo.Builder

setConfigType(InstanceConfigInfo.Type configType)

protected abstract InstanceConfigInfo.Builder setConfigType(InstanceConfigInfo.Type configType)
Parameter
Name Description
configType InstanceConfigInfo.Type
Returns
Type Description
InstanceConfigInfo.Builder

setDisplayName(String displayName)

public abstract InstanceConfigInfo.Builder setDisplayName(String displayName)
Parameter
Name Description
displayName String
Returns
Type Description
InstanceConfigInfo.Builder

setEtag(String etag)

public abstract InstanceConfigInfo.Builder setEtag(String etag)
Parameter
Name Description
etag String
Returns
Type Description
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
Name Description
leaderOptions List<String>
Returns
Type Description
InstanceConfigInfo.Builder

setOptionalReplicas(List<ReplicaInfo> optionalReplicas)

protected abstract InstanceConfigInfo.Builder setOptionalReplicas(List<ReplicaInfo> optionalReplicas)
Parameter
Name Description
optionalReplicas List<ReplicaInfo>
Returns
Type Description
InstanceConfigInfo.Builder

setReconciling(boolean reconciling)

protected abstract InstanceConfigInfo.Builder setReconciling(boolean reconciling)
Parameter
Name Description
reconciling boolean
Returns
Type Description
InstanceConfigInfo.Builder

setReplicas(List<ReplicaInfo> replicas)

protected abstract InstanceConfigInfo.Builder setReplicas(List<ReplicaInfo> replicas)
Parameter
Name Description
replicas List<ReplicaInfo>
Returns
Type Description
InstanceConfigInfo.Builder

setState(InstanceConfigInfo.State state)

protected abstract InstanceConfigInfo.Builder setState(InstanceConfigInfo.State state)
Parameter
Name Description
state InstanceConfigInfo.State
Returns
Type Description
InstanceConfigInfo.Builder