Send feedback
Class InstanceConfigInfo (6.74.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 6.74.0 keyboard_arrow_down
public class InstanceConfigInfo
Represents a Cloud Spanner instance config resource.
Inheritance
Object >
InstanceConfigInfo
Static Methods
newBuilder(InstanceConfigId id)
public static InstanceConfigInfo . Builder newBuilder ( InstanceConfigId id )
newBuilder(InstanceConfigId id, InstanceConfigInfo baseConfig)
public static InstanceConfigInfo . Builder newBuilder ( InstanceConfigId id , InstanceConfigInfo baseConfig )
Constructors
InstanceConfigInfo(InstanceConfigId id, String displayName) (deprecated)
public InstanceConfigInfo ( InstanceConfigId id , String displayName )
InstanceConfigInfo(InstanceConfigId id, String displayName, List<ReplicaInfo> replicas, List<String> leaderOptions) (deprecated)
public InstanceConfigInfo ( InstanceConfigId id , String displayName , List<ReplicaInfo> replicas , List<String> leaderOptions )
Methods
equals(Object o)
public boolean equals ( Object o )
Parameter
Name
Description
o
Object
Overrides
getBaseConfig()
public InstanceConfigInfo getBaseConfig ()
Base configuration, e.g. projects/<project_name>/instanceConfigs/nam3
, based on which
this configuration is created. Only set for user managed configurations. The base config must
refer to a configuration of type GOOGLE_MANAGED.
getConfigType()
public InstanceConfigInfo . Type getConfigType ()
Config type, indicates whether this instance config is a Google or User Managed Configuration.
getDisplayName()
public String getDisplayName ()
Returns the display name of this instance config.
Returns
Type
Description
String
getEtag()
etag, which is used for optimistic concurrency control as a way to help prevent simultaneous
updates of an instance config from overwriting each other.
Returns
Type
Description
String
getId()
public InstanceConfigId getId ()
Returns the id of this instance config.
getLabels()
public Map<String , String > getLabels ()
Cloud Labels, which can be used to filter collections of resources. They can be used to control
how resource metrics are aggregated.
getLeaderOptions()
public List<String> getLeaderOptions ()
Allowed values of the default leader schema option for databases in instances that use this
instance configuration.
getOptionalReplicas()
public List<ReplicaInfo> getOptionalReplicas ()
The available optional replicas to choose from for user managed configurations. Populated for
Google managed configurations.
getReconciling()
public boolean getReconciling ()
If true, the instance config is being created or updated. If false, there are no ongoing
operations for the instance config.
getReplicas()
public List<ReplicaInfo> getReplicas ()
The geographic placement of nodes in this instance configuration and their replication
properties.
getState()
public InstanceConfigInfo . State getState ()
The current instance config state.
hashCode()
Returns
Type
Description
int
Overrides
toBuilder()
public InstanceConfigInfo . Builder toBuilder ()
toString()
Returns
Type
Description
String
Overrides
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-12-05 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-12-05 UTC."],[],[]]