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