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
-
Method Summary
Modifier and TypeMethodDescriptionabstract InstanceInfo.Builder
abstract InstanceInfo
build()
abstract InstanceInfo.Builder
putAllLabels
(Map<String, String> labels) abstract InstanceInfo.Builder
setDisplayName
(String displayName) abstract InstanceInfo.Builder
setInstanceConfigId
(InstanceConfigId configId) abstract InstanceInfo.Builder
setNodeCount
(int nodeCount) Sets the number of nodes for the instance.setProcessingUnits
(int processingUnits) Sets the number of processing units for the instance.abstract InstanceInfo.Builder
setState
(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
-