public final class Commitment 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 |
|---|
Commitment() |
| Modifier and Type | Method and Description |
|---|---|
Commitment |
clone() |
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
String |
getEndTimestamp()
[Output Only] Commitment end time in RFC3339 text format.
|
BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output Only] Type of the resource.
|
String |
getName()
Name of the resource.
|
String |
getPlan()
The plan for this commitment, which determines duration and discount rate.
|
String |
getRegion()
[Output Only] URL of the region where this commitment may be used.
|
List<Reservation> |
getReservations()
List of reservations in this commitment.
|
List<ResourceCommitment> |
getResources()
A list of commitment amounts for particular resources.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
String |
getStartTimestamp()
[Output Only] Commitment start time in RFC3339 text format.
|
String |
getStatus()
[Output Only] Status of the commitment with regards to eventual expiration (each commitment has
an end date defined).
|
String |
getStatusMessage()
[Output Only] An optional, human-readable explanation of the status.
|
Commitment |
set(String fieldName,
Object value) |
Commitment |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Commitment |
setDescription(String description)
An optional description of this resource.
|
Commitment |
setEndTimestamp(String endTimestamp)
[Output Only] Commitment end time in RFC3339 text format.
|
Commitment |
setId(BigInteger id)
[Output Only] The unique identifier for the resource.
|
Commitment |
setKind(String kind)
[Output Only] Type of the resource.
|
Commitment |
setName(String name)
Name of the resource.
|
Commitment |
setPlan(String plan)
The plan for this commitment, which determines duration and discount rate.
|
Commitment |
setRegion(String region)
[Output Only] URL of the region where this commitment may be used.
|
Commitment |
setReservations(List<Reservation> reservations)
List of reservations in this commitment.
|
Commitment |
setResources(List<ResourceCommitment> resources)
A list of commitment amounts for particular resources.
|
Commitment |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
Commitment |
setStartTimestamp(String startTimestamp)
[Output Only] Commitment start time in RFC3339 text format.
|
Commitment |
setStatus(String status)
[Output Only] Status of the commitment with regards to eventual expiration (each commitment has
an end date defined).
|
Commitment |
setStatusMessage(String statusMessage)
[Output Only] An optional, human-readable explanation of the status.
|
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 getCreationTimestamp()
null for nonepublic Commitment setCreationTimestamp(String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic String getDescription()
null for nonepublic Commitment setDescription(String description)
description - description or null for nonepublic String getEndTimestamp()
null for nonepublic Commitment setEndTimestamp(String endTimestamp)
endTimestamp - endTimestamp or null for nonepublic BigInteger getId()
null for nonepublic Commitment setId(BigInteger id)
id - id or null for nonepublic String getKind()
null for nonepublic Commitment setKind(String kind)
kind - kind or null for nonepublic String getName()
null for nonepublic Commitment setName(String name)
name - name or null for nonepublic String getPlan()
null for nonepublic Commitment setPlan(String plan)
plan - plan or null for nonepublic String getRegion()
null for nonepublic Commitment setRegion(String region)
region - region or null for nonepublic List<Reservation> getReservations()
null for nonepublic Commitment setReservations(List<Reservation> reservations)
reservations - reservations or null for nonepublic List<ResourceCommitment> getResources()
null for nonepublic Commitment setResources(List<ResourceCommitment> resources)
resources - resources or null for nonepublic String getSelfLink()
null for nonepublic Commitment setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic String getStartTimestamp()
null for nonepublic Commitment setStartTimestamp(String startTimestamp)
startTimestamp - startTimestamp or null for nonepublic String getStatus()
null for nonepublic Commitment setStatus(String status)
status - status or null for nonepublic String getStatusMessage()
null for nonepublic Commitment setStatusMessage(String statusMessage)
statusMessage - statusMessage or null for nonepublic Commitment set(String fieldName, Object value)
set in class GenericJsonpublic Commitment clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.