public final class Resources
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 App Engine Admin 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 |
---|
Resources() |
Modifier and Type | Method and Description |
---|---|
Resources |
clone() |
java.lang.Double |
getCpu()
Number of CPU cores needed.
|
java.lang.Double |
getDiskGb()
Disk size (GB) needed.
|
java.lang.Double |
getMemoryGb()
Memory (GB) needed.
|
java.util.List<Volume> |
getVolumes()
User specified volumes.
|
Resources |
set(java.lang.String fieldName,
java.lang.Object value) |
Resources |
setCpu(java.lang.Double cpu)
Number of CPU cores needed.
|
Resources |
setDiskGb(java.lang.Double diskGb)
Disk size (GB) needed.
|
Resources |
setMemoryGb(java.lang.Double memoryGb)
Memory (GB) needed.
|
Resources |
setVolumes(java.util.List<Volume> volumes)
User specified volumes.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Double getCpu()
null
for nonepublic Resources setCpu(java.lang.Double cpu)
cpu
- cpu or null
for nonepublic java.lang.Double getDiskGb()
null
for nonepublic Resources setDiskGb(java.lang.Double diskGb)
diskGb
- diskGb or null
for nonepublic java.lang.Double getMemoryGb()
null
for nonepublic Resources setMemoryGb(java.lang.Double memoryGb)
memoryGb
- memoryGb or null
for nonepublic java.util.List<Volume> getVolumes()
null
for nonepublic Resources setVolumes(java.util.List<Volume> volumes)
volumes
- volumes or null
for nonepublic Resources set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Resources clone()
clone
in class com.google.api.client.json.GenericJson