public final class FixedOrPercent extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description | 
|---|
| FixedOrPercent() | 
| Modifier and Type | Method and Description | 
|---|---|
| FixedOrPercent | clone() | 
| Integer | getCalculated()[Output Only] Absolute value of VM instances calculated based on the specific mode. | 
| Integer | getFixed()Specifies a fixed number of VM instances. | 
| Integer | getPercent()Specifies a percentage of instances between 0 to 100%, inclusive. | 
| FixedOrPercent | set(String fieldName,
   Object value) | 
| FixedOrPercent | setCalculated(Integer calculated)[Output Only] Absolute value of VM instances calculated based on the specific mode. | 
| FixedOrPercent | setFixed(Integer fixed)Specifies a fixed number of VM instances. | 
| FixedOrPercent | setPercent(Integer percent)Specifies a percentage of instances between 0 to 100%, inclusive. | 
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Integer getCalculated()
null for nonepublic FixedOrPercent setCalculated(Integer calculated)
calculated - calculated or null for nonepublic Integer getFixed()
null for nonepublic FixedOrPercent setFixed(Integer fixed)
fixed - fixed or null for nonepublic Integer getPercent()
null for nonepublic FixedOrPercent setPercent(Integer percent)
percent - percent or null for nonepublic FixedOrPercent set(String fieldName, Object value)
set in class GenericJsonpublic FixedOrPercent clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.