Package com.google.cloud.spanner
Class InstanceInfo.Builder
java.lang.Object
com.google.cloud.spanner.InstanceInfo.Builder
- Direct Known Subclasses:
Instance.Builder
- Enclosing class:
- InstanceInfo
Builder for
InstanceInfo.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract InstanceInfo.Builderabstract InstanceInfobuild()abstract InstanceInfo.BuilderputAllLabels(Map<String, String> labels) abstract InstanceInfo.BuildersetDisplayName(String displayName) abstract InstanceInfo.BuildersetInstanceConfigId(InstanceConfigId configId) abstract InstanceInfo.BuildersetNodeCount(int nodeCount) Sets the number of nodes for the instance.setProcessingUnits(int processingUnits) Sets the number of processing units for the instance.abstract InstanceInfo.BuildersetState(InstanceInfo.State state)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setInstanceConfigId
-
setDisplayName
-
setNodeCount
Sets the number of nodes for the instance. Exactly one of processing units or node count must be set when creating a new instance. -
setProcessingUnits
Sets the number of processing units for the instance. Exactly one of processing units or node count must be set when creating a new instance. Processing units must be between 1 and 999 (inclusive) when creating a new instance with node count = 0. Processing units from 1000 and up must always be a multiple of 1000 (that is equal to an integer number of nodes). -
setState
-
addLabel
-
putAllLabels
-
build
-