Package com.google.cloud.spanner
Class InstanceConfigInfo
java.lang.Object
com.google.cloud.spanner.InstanceConfigInfo
- Direct Known Subclasses:
InstanceConfig
Represents a Cloud Spanner instance config resource.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder forInstanceConfigInfo
.static enum
Represent an updatable field in Cloud Spanner InstanceConfig.static enum
Type of the Instance config.static enum
Type of the Instance config. -
Constructor Summary
ConstructorDescriptionInstanceConfigInfo
(InstanceConfigId id, String displayName) Deprecated.InstanceConfigInfo
(InstanceConfigId id, String displayName, List<ReplicaInfo> replicas, List<String> leaderOptions) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Base configuration, e.g.Config type, indicates whether this instance config is a Google or User Managed Configuration.Returns the display name of this instance config.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.getId()
Returns the id of this instance config.Cloud Labels, which can be used to filter collections of resources.Allowed values of the default leader schema option for databases in instances that use this instance configuration.The available optional replicas to choose from for user managed configurations.boolean
If true, the instance config is being created or updated.The geographic placement of nodes in this instance configuration and their replication properties.getState()
The current instance config state.int
hashCode()
static InstanceConfigInfo.Builder
static InstanceConfigInfo.Builder
newBuilder
(InstanceConfigId id, InstanceConfigInfo baseConfig) toString()
-
Constructor Details
-
InstanceConfigInfo
Deprecated. -
InstanceConfigInfo
@Deprecated public InstanceConfigInfo(InstanceConfigId id, String displayName, List<ReplicaInfo> replicas, List<String> leaderOptions) Deprecated.
-
-
Method Details
-
getId
Returns the id of this instance config. -
getDisplayName
Returns the display name of this instance config. -
getReplicas
The geographic placement of nodes in this instance configuration and their replication properties. -
getLeaderOptions
Allowed values of the default leader schema option for databases in instances that use this instance configuration. -
getOptionalReplicas
The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations. -
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
Config type, indicates whether this instance config is a Google or User Managed Configuration. -
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. -
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. -
getState
The current instance config state. -
getLabels
Cloud Labels, which can be used to filter collections of resources. They can be used to control how resource metrics are aggregated. -
newBuilder
-
newBuilder
public static InstanceConfigInfo.Builder newBuilder(InstanceConfigId id, InstanceConfigInfo baseConfig) -
equals
-
hashCode
public int hashCode() -
toBuilder
-
toString
-