public final class Reservation 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 | 
|---|
Reservation()  | 
| Modifier and Type | Method and Description | 
|---|---|
Reservation | 
clone()  | 
String | 
getCommitment()
[Output Only] Full or partial URL to a parent commitment. 
 | 
String | 
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format. 
 | 
String | 
getDescription()
An optional description of this resource. 
 | 
BigInteger | 
getId()
[Output Only] The unique identifier for the resource. 
 | 
String | 
getKind()
[Output Only] Type of the resource. 
 | 
String | 
getName()
The name of the resource, provided by the client when initially creating the resource. 
 | 
String | 
getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource. 
 | 
String | 
getSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id. 
 | 
AllocationSpecificSKUReservation | 
getSpecificReservation()
Reservation for instances with specific machine shapes. 
 | 
Boolean | 
getSpecificReservationRequired()
Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. 
 | 
String | 
getStatus()
[Output Only] The status of the reservation. 
 | 
String | 
getZone()
Zone in which the reservation resides. 
 | 
Reservation | 
set(String fieldName,
   Object value)  | 
Reservation | 
setCommitment(String commitment)
[Output Only] Full or partial URL to a parent commitment. 
 | 
Reservation | 
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format. 
 | 
Reservation | 
setDescription(String description)
An optional description of this resource. 
 | 
Reservation | 
setId(BigInteger id)
[Output Only] The unique identifier for the resource. 
 | 
Reservation | 
setKind(String kind)
[Output Only] Type of the resource. 
 | 
Reservation | 
setName(String name)
The name of the resource, provided by the client when initially creating the resource. 
 | 
Reservation | 
setSelfLink(String selfLink)
[Output Only] Server-defined fully-qualified URL for this resource. 
 | 
Reservation | 
setSelfLinkWithId(String selfLinkWithId)
[Output Only] Server-defined URL for this resource with the resource id. 
 | 
Reservation | 
setSpecificReservation(AllocationSpecificSKUReservation specificReservation)
Reservation for instances with specific machine shapes. 
 | 
Reservation | 
setSpecificReservationRequired(Boolean specificReservationRequired)
Indicates whether the reservation can be consumed by VMs with affinity for "any" reservation. 
 | 
Reservation | 
setStatus(String status)
[Output Only] The status of the reservation. 
 | 
Reservation | 
setZone(String zone)
Zone in which the reservation resides. 
 | 
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getCommitment()
null for nonepublic Reservation setCommitment(String commitment)
commitment - commitment or null for nonepublic String getCreationTimestamp()
null for nonepublic Reservation setCreationTimestamp(String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic String getDescription()
null for nonepublic Reservation setDescription(String description)
description - description or null for nonepublic BigInteger getId()
null for nonepublic Reservation setId(BigInteger id)
id - id or null for nonepublic String getKind()
null for nonepublic Reservation setKind(String kind)
kind - kind or null for nonepublic String getName()
null for nonepublic Reservation setName(String name)
name - name or null for nonepublic String getSelfLink()
null for nonepublic Reservation setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic String getSelfLinkWithId()
null for nonepublic Reservation setSelfLinkWithId(String selfLinkWithId)
selfLinkWithId - selfLinkWithId or null for nonepublic AllocationSpecificSKUReservation getSpecificReservation()
null for nonepublic Reservation setSpecificReservation(AllocationSpecificSKUReservation specificReservation)
specificReservation - specificReservation or null for nonepublic Boolean getSpecificReservationRequired()
null for nonepublic Reservation setSpecificReservationRequired(Boolean specificReservationRequired)
specificReservationRequired - specificReservationRequired or null for nonepublic String getStatus()
null for nonepublic Reservation setStatus(String status)
status - status or null for nonepublic String getZone()
null for nonepublic Reservation setZone(String zone)
zone - zone or null for nonepublic Reservation set(String fieldName, Object value)
set in class GenericJsonpublic Reservation clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.