public final class ResourceCommitment 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 |
|---|
ResourceCommitment() |
| Modifier and Type | Method and Description |
|---|---|
ResourceCommitment |
clone() |
String |
getAcceleratorType()
Name of the accelerator type resource.
|
Long |
getAmount()
The amount of the resource purchased (in a type-dependent unit, such as bytes).
|
String |
getType()
Type of resource for which this commitment applies.
|
ResourceCommitment |
set(String fieldName,
Object value) |
ResourceCommitment |
setAcceleratorType(String acceleratorType)
Name of the accelerator type resource.
|
ResourceCommitment |
setAmount(Long amount)
The amount of the resource purchased (in a type-dependent unit, such as bytes).
|
ResourceCommitment |
setType(String type)
Type of resource for which this commitment applies.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getAcceleratorType()
null for nonepublic ResourceCommitment setAcceleratorType(String acceleratorType)
acceleratorType - acceleratorType or null for nonepublic Long getAmount()
null for nonepublic ResourceCommitment setAmount(Long amount)
amount - amount or null for nonepublic String getType()
null for nonepublic ResourceCommitment setType(String type)
type - type or null for nonepublic ResourceCommitment set(String fieldName, Object value)
set in class GenericJsonpublic ResourceCommitment clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.