public abstract static class InstanceInfo.Builder extends Object
InstanceInfo
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract InstanceInfo.Builder |
addLabel(String key,
String value) |
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.
|
InstanceInfo.Builder |
setProcessingUnits(int processingUnits)
Sets the number of processing units for the instance.
|
abstract InstanceInfo.Builder |
setState(InstanceInfo.State state) |
public abstract InstanceInfo.Builder setInstanceConfigId(InstanceConfigId configId)
public abstract InstanceInfo.Builder setDisplayName(String displayName)
public abstract InstanceInfo.Builder setNodeCount(int nodeCount)
public InstanceInfo.Builder setProcessingUnits(int processingUnits)
public abstract InstanceInfo.Builder setState(InstanceInfo.State state)
public abstract InstanceInfo.Builder addLabel(String key, String value)
public abstract InstanceInfo.Builder putAllLabels(Map<String,String> labels)
public abstract InstanceInfo build()
Copyright © 2022 Google LLC. All rights reserved.