public final class Commitment
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 |
|---|
Commitment() |
| Modifier and Type | Method and Description |
|---|---|
Commitment |
clone() |
java.lang.String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
java.lang.String |
getDescription()
An optional description of this resource.
|
java.lang.String |
getEndTimestamp()
[Output Only] Commitment end time in RFC3339 text format.
|
java.math.BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
java.lang.String |
getKind()
[Output Only] Type of the resource.
|
java.lang.String |
getName()
Name of the resource.
|
java.lang.String |
getPlan()
The plan for this commitment, which determines duration and discount rate.
|
java.lang.String |
getRegion()
[Output Only] URL of the region where this commitment may be used.
|
java.util.List<Reservation> |
getReservations()
List of reservations in this commitment.
|
java.util.List<ResourceCommitment> |
getResources()
A list of commitment amounts for particular resources.
|
java.lang.String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
java.lang.String |
getStartTimestamp()
[Output Only] Commitment start time in RFC3339 text format.
|
java.lang.String |
getStatus()
[Output Only] Status of the commitment with regards to eventual expiration (each commitment has
an end date defined).
|
java.lang.String |
getStatusMessage()
[Output Only] An optional, human-readable explanation of the status.
|
java.lang.String |
getType()
The type of commitment, which affects the discount rate and the eligible resources.
|
Commitment |
set(java.lang.String fieldName,
java.lang.Object value) |
Commitment |
setCreationTimestamp(java.lang.String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Commitment |
setDescription(java.lang.String description)
An optional description of this resource.
|
Commitment |
setEndTimestamp(java.lang.String endTimestamp)
[Output Only] Commitment end time in RFC3339 text format.
|
Commitment |
setId(java.math.BigInteger id)
[Output Only] The unique identifier for the resource.
|
Commitment |
setKind(java.lang.String kind)
[Output Only] Type of the resource.
|
Commitment |
setName(java.lang.String name)
Name of the resource.
|
Commitment |
setPlan(java.lang.String plan)
The plan for this commitment, which determines duration and discount rate.
|
Commitment |
setRegion(java.lang.String region)
[Output Only] URL of the region where this commitment may be used.
|
Commitment |
setReservations(java.util.List<Reservation> reservations)
List of reservations in this commitment.
|
Commitment |
setResources(java.util.List<ResourceCommitment> resources)
A list of commitment amounts for particular resources.
|
Commitment |
setSelfLink(java.lang.String selfLink)
[Output Only] Server-defined URL for the resource.
|
Commitment |
setStartTimestamp(java.lang.String startTimestamp)
[Output Only] Commitment start time in RFC3339 text format.
|
Commitment |
setStatus(java.lang.String status)
[Output Only] Status of the commitment with regards to eventual expiration (each commitment has
an end date defined).
|
Commitment |
setStatusMessage(java.lang.String statusMessage)
[Output Only] An optional, human-readable explanation of the status.
|
Commitment |
setType(java.lang.String type)
The type of commitment, which affects the discount rate and the eligible resources.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getCreationTimestamp()
null for nonepublic Commitment setCreationTimestamp(java.lang.String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic java.lang.String getDescription()
null for nonepublic Commitment setDescription(java.lang.String description)
description - description or null for nonepublic java.lang.String getEndTimestamp()
null for nonepublic Commitment setEndTimestamp(java.lang.String endTimestamp)
endTimestamp - endTimestamp or null for nonepublic java.math.BigInteger getId()
null for nonepublic Commitment setId(java.math.BigInteger id)
id - id or null for nonepublic java.lang.String getKind()
null for nonepublic Commitment setKind(java.lang.String kind)
kind - kind or null for nonepublic java.lang.String getName()
null for nonepublic Commitment setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getPlan()
null for nonepublic Commitment setPlan(java.lang.String plan)
plan - plan or null for nonepublic java.lang.String getRegion()
null for nonepublic Commitment setRegion(java.lang.String region)
region - region or null for nonepublic java.util.List<Reservation> getReservations()
null for nonepublic Commitment setReservations(java.util.List<Reservation> reservations)
reservations - reservations or null for nonepublic java.util.List<ResourceCommitment> getResources()
null for nonepublic Commitment setResources(java.util.List<ResourceCommitment> resources)
resources - resources or null for nonepublic java.lang.String getSelfLink()
null for nonepublic Commitment setSelfLink(java.lang.String selfLink)
selfLink - selfLink or null for nonepublic java.lang.String getStartTimestamp()
null for nonepublic Commitment setStartTimestamp(java.lang.String startTimestamp)
startTimestamp - startTimestamp or null for nonepublic java.lang.String getStatus()
null for nonepublic Commitment setStatus(java.lang.String status)
status - status or null for nonepublic java.lang.String getStatusMessage()
null for nonepublic Commitment setStatusMessage(java.lang.String statusMessage)
statusMessage - statusMessage or null for nonepublic java.lang.String getType()
null for nonepublic Commitment setType(java.lang.String type)
type - type or null for nonepublic Commitment set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Commitment clone()
clone in class com.google.api.client.json.GenericJson