public final class ReservationAffinity
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 |
|---|
ReservationAffinity() |
| Modifier and Type | Method and Description |
|---|---|
ReservationAffinity |
clone() |
java.lang.String |
getConsumeReservationType()
Specifies the type of reservation from which this instance can consume resources:
ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION.
|
java.lang.String |
getKey()
Corresponds to the label key of a reservation resource.
|
java.util.List<java.lang.String> |
getValues()
Corresponds to the label values of a reservation resource.
|
ReservationAffinity |
set(java.lang.String fieldName,
java.lang.Object value) |
ReservationAffinity |
setConsumeReservationType(java.lang.String consumeReservationType)
Specifies the type of reservation from which this instance can consume resources:
ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION.
|
ReservationAffinity |
setKey(java.lang.String key)
Corresponds to the label key of a reservation resource.
|
ReservationAffinity |
setValues(java.util.List<java.lang.String> values)
Corresponds to the label values of a reservation resource.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getConsumeReservationType()
null for nonepublic ReservationAffinity setConsumeReservationType(java.lang.String consumeReservationType)
consumeReservationType - consumeReservationType or null for nonepublic java.lang.String getKey()
null for nonepublic ReservationAffinity setKey(java.lang.String key)
key - key or null for nonepublic java.util.List<java.lang.String> getValues()
null for nonepublic ReservationAffinity setValues(java.util.List<java.lang.String> values)
values - values or null for nonepublic ReservationAffinity set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic ReservationAffinity clone()
clone in class com.google.api.client.json.GenericJson