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) |
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)
setNodeCount
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 © 2019 Google LLC. All rights reserved.