Class InstanceConfigInfo.Builder (6.69.0)
Stay organized with collections
Save and categorize content based on your preferences.
public abstract static class InstanceConfigInfo.Builder
Builder for InstanceConfigInfo
.
Constructors
Builder()
Methods
addLabel(String key, String value)
public abstract InstanceConfigInfo.Builder addLabel(String key, String value)
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.
build()
public abstract InstanceConfigInfo build()
putAllLabels(Map<String,String> labels)
public abstract InstanceConfigInfo.Builder putAllLabels(Map<String,String> labels)
setBaseConfig(InstanceConfigInfo baseConfig)
protected abstract InstanceConfigInfo.Builder setBaseConfig(InstanceConfigInfo baseConfig)
setConfigType(InstanceConfigInfo.Type configType)
protected abstract InstanceConfigInfo.Builder setConfigType(InstanceConfigInfo.Type configType)
setDisplayName(String displayName)
public abstract InstanceConfigInfo.Builder setDisplayName(String displayName)
Parameter |
Name |
Description |
displayName |
String
|
setEtag(String etag)
public abstract InstanceConfigInfo.Builder setEtag(String etag)
Parameter |
Name |
Description |
etag |
String
|
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>
|
setOptionalReplicas(List<ReplicaInfo> optionalReplicas)
protected abstract InstanceConfigInfo.Builder setOptionalReplicas(List<ReplicaInfo> optionalReplicas)
setReconciling(boolean reconciling)
protected abstract InstanceConfigInfo.Builder setReconciling(boolean reconciling)
Parameter |
Name |
Description |
reconciling |
boolean
|
setReplicas(List<ReplicaInfo> replicas)
protected abstract InstanceConfigInfo.Builder setReplicas(List<ReplicaInfo> replicas)
setState(InstanceConfigInfo.State state)
protected abstract InstanceConfigInfo.Builder setState(InstanceConfigInfo.State state)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-10 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-10 UTC."}