Package com.google.cloud.spanner
Class InstanceConfig
- java.lang.Object
-
- com.google.cloud.spanner.InstanceConfigInfo
-
- com.google.cloud.spanner.InstanceConfig
-
public class InstanceConfig extends InstanceConfigInfo
Represents a Cloud Spanner instance config.InstanceConfig
adds a layer of service related functionality overInstanceConfigInfo
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InstanceConfig.Builder
Builder ofInstanceConfig
.-
Nested classes/interfaces inherited from class com.google.cloud.spanner.InstanceConfigInfo
InstanceConfigInfo.InstanceConfigField, InstanceConfigInfo.State, InstanceConfigInfo.Type
-
-
Constructor Summary
Constructors Constructor Description InstanceConfig(InstanceConfigId id, String displayName, InstanceAdminClient client)
Deprecated.InstanceConfig(InstanceConfigId id, String displayName, List<ReplicaInfo> replicas, List<String> leaderOptions, InstanceAdminClient client)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InstanceConfig.Builder
newBuilder(InstanceAdminClient client, InstanceConfigId instanceConfigId)
static InstanceConfig.Builder
newBuilder(InstanceConfig instanceConfig)
InstanceConfig
reload()
Gets the current state of this instance config.InstanceConfig.Builder
toBuilder()
-
Methods inherited from class com.google.cloud.spanner.InstanceConfigInfo
equals, getBaseConfig, getConfigType, getDisplayName, getEtag, getId, getLabels, getLeaderOptions, getOptionalReplicas, getReconciling, getReplicas, getState, hashCode, newBuilder, newBuilder, toString
-
-
-
-
Constructor Detail
-
InstanceConfig
@Deprecated public InstanceConfig(InstanceConfigId id, String displayName, InstanceAdminClient client)
Deprecated.
-
InstanceConfig
@Deprecated public InstanceConfig(InstanceConfigId id, String displayName, List<ReplicaInfo> replicas, List<String> leaderOptions, InstanceAdminClient client)
Deprecated.
-
-
Method Detail
-
newBuilder
public static InstanceConfig.Builder newBuilder(InstanceConfig instanceConfig)
-
newBuilder
public static InstanceConfig.Builder newBuilder(InstanceAdminClient client, InstanceConfigId instanceConfigId)
-
reload
public InstanceConfig reload()
Gets the current state of this instance config.
-
toBuilder
public InstanceConfig.Builder toBuilder()
- Overrides:
toBuilder
in classInstanceConfigInfo
-
-