public final class ResourceLimit 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 Kubernetes 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 |
|---|
ResourceLimit() |
| Modifier and Type | Method and Description |
|---|---|
ResourceLimit |
clone() |
Long |
getMaximum()
Maximum amount of the resource in the cluster.
|
Long |
getMinimum()
Minimum amount of the resource in the cluster.
|
String |
getResourceType()
Resource name "cpu", "memory" or gpu-specific string.
|
ResourceLimit |
set(String fieldName,
Object value) |
ResourceLimit |
setMaximum(Long maximum)
Maximum amount of the resource in the cluster.
|
ResourceLimit |
setMinimum(Long minimum)
Minimum amount of the resource in the cluster.
|
ResourceLimit |
setResourceType(String resourceType)
Resource name "cpu", "memory" or gpu-specific string.
|
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 Long getMaximum()
null for nonepublic ResourceLimit setMaximum(Long maximum)
maximum - maximum or null for nonepublic Long getMinimum()
null for nonepublic ResourceLimit setMinimum(Long minimum)
minimum - minimum or null for nonepublic String getResourceType()
null for nonepublic ResourceLimit setResourceType(String resourceType)
resourceType - resourceType or null for nonepublic ResourceLimit set(String fieldName, Object value)
set in class GenericJsonpublic ResourceLimit clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.