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