Send feedback
Class InstanceInfo.Builder (6.52.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 6.52.1 keyboard_arrow_down
public abstract static class InstanceInfo . Builder
Builder for InstanceInfo
.
Constructors
Builder()
Methods
addLabel(String key, String value)
public abstract InstanceInfo . Builder addLabel ( String key , String value )
build()
public abstract InstanceInfo build ()
putAllLabels(Map<String,String> labels)
public abstract InstanceInfo . Builder putAllLabels ( Map<String , String> labels )
setAutoscalingConfig(AutoscalingConfig autoscalingConfig)
public InstanceInfo . Builder setAutoscalingConfig ( AutoscalingConfig autoscalingConfig )
Sets the autoscaling config for the instance, which will enable the autoscaling for this
instance. Exactly one of processing units, node count, or autoscaling config must be set when
creating a new instance.
setDisplayName(String displayName)
public abstract InstanceInfo . Builder setDisplayName ( String displayName )
Parameter Name Description displayName
String
setInstanceConfigId(InstanceConfigId configId)
public abstract InstanceInfo . Builder setInstanceConfigId ( InstanceConfigId configId )
setNodeCount(int nodeCount)
public abstract InstanceInfo . Builder setNodeCount ( int nodeCount )
Sets the number of nodes for the instance. Exactly one of processing units, node count or
autoscaling config must be set when creating a new instance.
Parameter Name Description nodeCount
int
setProcessingUnits(int processingUnits)
public InstanceInfo . Builder setProcessingUnits ( int processingUnits )
Sets the number of processing units for the instance. Exactly one of processing units, node
count, or autoscaling config 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).
Parameter Name Description processingUnits
int
setState(InstanceInfo.State state)
public abstract InstanceInfo . Builder setState ( InstanceInfo . State state )
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-10 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-10 UTC."}