Send feedback
Class InstanceConfigInfo.Builder (6.56.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 6.56.0 keyboard_arrow_down
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.
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 )
Send feedback
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-11-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[]]