public final class Reservation
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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Reservation() |
Modifier and Type | Method and Description |
---|---|
Reservation |
clone() |
AllocationAggregateReservation |
getAggregateReservation()
Reservation for aggregated resources, providing shape flexibility.
|
String |
getCommitment()
[Output Only] Full or partial URL to a parent commitment.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
Duration |
getDeleteAfterDuration()
Duration time relative to reservation creation when Compute Engine will automatically delete
this resource.
|
String |
getDeleteAtTime()
Absolute time in future when the reservation will be auto-deleted by Compute Engine.
|
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.
|
Map<String,String> |
getResourcePolicies()
Resource policies to be added to this reservation.
|
AllocationResourceStatus |
getResourceStatus()
[Output Only] Status information for Reservation resource.
|
Boolean |
getSatisfiesPzs()
[Output Only] Reserved for future use.
|
String |
getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
|
ShareSettings |
getShareSettings()
Specify share-settings to create a shared reservation.
|
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 |
setAggregateReservation(AllocationAggregateReservation aggregateReservation)
Reservation for aggregated resources, providing shape flexibility.
|
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 |
setDeleteAfterDuration(Duration deleteAfterDuration)
Duration time relative to reservation creation when Compute Engine will automatically delete
this resource.
|
Reservation |
setDeleteAtTime(String deleteAtTime)
Absolute time in future when the reservation will be auto-deleted by Compute Engine.
|
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 |
setResourcePolicies(Map<String,String> resourcePolicies)
Resource policies to be added to this reservation.
|
Reservation |
setResourceStatus(AllocationResourceStatus resourceStatus)
[Output Only] Status information for Reservation resource.
|
Reservation |
setSatisfiesPzs(Boolean satisfiesPzs)
[Output Only] Reserved for future use.
|
Reservation |
setSelfLink(String selfLink)
[Output Only] Server-defined fully-qualified URL for this resource.
|
Reservation |
setShareSettings(ShareSettings shareSettings)
Specify share-settings to create a shared reservation.
|
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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public AllocationAggregateReservation getAggregateReservation()
null
for nonepublic Reservation setAggregateReservation(AllocationAggregateReservation aggregateReservation)
aggregateReservation
- aggregateReservation or null
for nonepublic 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 Duration getDeleteAfterDuration()
null
for nonepublic Reservation setDeleteAfterDuration(Duration deleteAfterDuration)
deleteAfterDuration
- deleteAfterDuration or null
for nonepublic String getDeleteAtTime()
null
for nonepublic Reservation setDeleteAtTime(String deleteAtTime)
deleteAtTime
- deleteAtTime 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 Map<String,String> getResourcePolicies()
null
for nonepublic Reservation setResourcePolicies(Map<String,String> resourcePolicies)
resourcePolicies
- resourcePolicies or null
for nonepublic AllocationResourceStatus getResourceStatus()
null
for nonepublic Reservation setResourceStatus(AllocationResourceStatus resourceStatus)
resourceStatus
- resourceStatus or null
for nonepublic Boolean getSatisfiesPzs()
null
for nonepublic Reservation setSatisfiesPzs(Boolean satisfiesPzs)
satisfiesPzs
- satisfiesPzs or null
for nonepublic String getSelfLink()
null
for nonepublic Reservation setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic ShareSettings getShareSettings()
null
for nonepublic Reservation setShareSettings(ShareSettings shareSettings)
shareSettings
- shareSettings 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 com.google.api.client.json.GenericJson
public Reservation clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.