public final class ResourceLimit
extends com.google.api.client.json.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
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
ResourceLimit() |
Modifier and Type | Method and Description |
---|---|
ResourceLimit |
clone() |
java.lang.Long |
getMaximum()
Maximum amount of the resource in the cluster.
|
java.lang.Long |
getMinimum()
Minimum amount of the resource in the cluster.
|
java.lang.String |
getResourceType()
Resource name "cpu", "memory" or gpu-specific string.
|
ResourceLimit |
set(java.lang.String fieldName,
java.lang.Object value) |
ResourceLimit |
setMaximum(java.lang.Long maximum)
Maximum amount of the resource in the cluster.
|
ResourceLimit |
setMinimum(java.lang.Long minimum)
Minimum amount of the resource in the cluster.
|
ResourceLimit |
setResourceType(java.lang.String resourceType)
Resource name "cpu", "memory" or gpu-specific string.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Long getMaximum()
null
for nonepublic ResourceLimit setMaximum(java.lang.Long maximum)
maximum
- maximum or null
for nonepublic java.lang.Long getMinimum()
null
for nonepublic ResourceLimit setMinimum(java.lang.Long minimum)
minimum
- minimum or null
for nonepublic java.lang.String getResourceType()
null
for nonepublic ResourceLimit setResourceType(java.lang.String resourceType)
resourceType
- resourceType or null
for nonepublic ResourceLimit set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public ResourceLimit clone()
clone
in class com.google.api.client.json.GenericJson