public static class Instance.Builder extends InstanceInfo.Builder
Builder of Instance
.
Methods
addLabel(String key, String value)
public Instance.Builder addLabel(String key, String value)
Name | Description |
key | String |
value | String |
Type | Description |
Instance.Builder |
build()
public Instance build()
Type | Description |
Instance |
putAllLabels(Map<String,String> labels)
public Instance.Builder putAllLabels(Map<String,String> labels)
Name | Description |
labels | Map<String,String> |
Type | Description |
Instance.Builder |
setDisplayName(String displayName)
public Instance.Builder setDisplayName(String displayName)
Name | Description |
displayName | String |
Type | Description |
Instance.Builder |
setInstanceConfigId(InstanceConfigId instanceConfigId)
public Instance.Builder setInstanceConfigId(InstanceConfigId instanceConfigId)
Name | Description |
instanceConfigId | InstanceConfigId |
Type | Description |
Instance.Builder |
setNodeCount(int nodeCount)
public Instance.Builder setNodeCount(int nodeCount)
Sets the number of nodes for the instance. Exactly one of processing units or node count must be set when creating a new instance.
Name | Description |
nodeCount | int |
Type | Description |
Instance.Builder |
setProcessingUnits(int processingUnits)
public Instance.Builder setProcessingUnits(int processingUnits)
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).
Name | Description |
processingUnits | int |
Type | Description |
Instance.Builder |
setState(InstanceInfo.State state)
public Instance.Builder setState(InstanceInfo.State state)
Name | Description |
state | InstanceInfo.State |
Type | Description |
Instance.Builder |