public final class ResourceCommitment
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 Compute 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 |
---|
ResourceCommitment() |
Modifier and Type | Method and Description |
---|---|
ResourceCommitment |
clone() |
java.lang.String |
getAcceleratorType()
Name of the accelerator type resource.
|
java.lang.Long |
getAmount()
The amount of the resource purchased (in a type-dependent unit, such as bytes).
|
java.lang.String |
getType()
Type of resource for which this commitment applies.
|
ResourceCommitment |
set(java.lang.String fieldName,
java.lang.Object value) |
ResourceCommitment |
setAcceleratorType(java.lang.String acceleratorType)
Name of the accelerator type resource.
|
ResourceCommitment |
setAmount(java.lang.Long amount)
The amount of the resource purchased (in a type-dependent unit, such as bytes).
|
ResourceCommitment |
setType(java.lang.String type)
Type of resource for which this commitment applies.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getAcceleratorType()
null
for nonepublic ResourceCommitment setAcceleratorType(java.lang.String acceleratorType)
acceleratorType
- acceleratorType or null
for nonepublic java.lang.Long getAmount()
null
for nonepublic ResourceCommitment setAmount(java.lang.Long amount)
amount
- amount or null
for nonepublic java.lang.String getType()
null
for nonepublic ResourceCommitment setType(java.lang.String type)
type
- type or null
for nonepublic ResourceCommitment set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public ResourceCommitment clone()
clone
in class com.google.api.client.json.GenericJson