Class InstanceConfigInfo (6.25.0)

public class InstanceConfigInfo

Represents a Cloud Spanner instance config resource.

Inheritance

Object > InstanceConfigInfo

Constructors

InstanceConfigInfo(InstanceConfigId id, String displayName)

public InstanceConfigInfo(InstanceConfigId id, String displayName)
Parameters
NameDescription
idInstanceConfigId
displayNameString

InstanceConfigInfo(InstanceConfigId id, String displayName, List<ReplicaInfo> replicas, List<String> leaderOptions)

public InstanceConfigInfo(InstanceConfigId id, String displayName, List<ReplicaInfo> replicas, List<String> leaderOptions)
Parameters
NameDescription
idInstanceConfigId
displayNameString
replicasList<ReplicaInfo>
leaderOptionsList<String>

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getDisplayName()

public String getDisplayName()

Returns the display name of this instance config.

Returns
TypeDescription
String

getId()

public InstanceConfigId getId()

Returns the id of this instance config.

Returns
TypeDescription
InstanceConfigId

getLeaderOptions()

public List<String> getLeaderOptions()

Allowed values of the default leader schema option for databases in instances that use this instance configuration.

Returns
TypeDescription
List<String>

getReplicas()

public List<ReplicaInfo> getReplicas()

The geographic placement of nodes in this instance configuration and their replication properties.

Returns
TypeDescription
List<ReplicaInfo>

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides