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() | 
| Boolean | getAutoRenew()Specifies whether to enable automatic renewal for the commitment. | 
| String | getCategory()The category of the commitment. | 
| 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. | 
| LicenseResourceCommitment | getLicenseResource()The license specification required as part of a license commitment. | 
| 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. | 
| String | getType()The type of commitment, which affects the discount rate and the eligible resources. | 
| Commitment | set(String fieldName,
   Object value) | 
| Commitment | setAutoRenew(Boolean autoRenew)Specifies whether to enable automatic renewal for the commitment. | 
| Commitment | setCategory(String category)The category of the commitment. | 
| 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 | setLicenseResource(LicenseResourceCommitment licenseResource)The license specification required as part of a license commitment. | 
| 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. | 
| Commitment | setType(String type)The type of commitment, which affects the discount rate and the eligible resources. | 
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 Boolean getAutoRenew()
null for nonepublic Commitment setAutoRenew(Boolean autoRenew)
autoRenew - autoRenew or null for nonepublic String getCategory()
null for nonepublic Commitment setCategory(String category)
category - category or null for nonepublic 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 LicenseResourceCommitment getLicenseResource()
null for nonepublic Commitment setLicenseResource(LicenseResourceCommitment licenseResource)
licenseResource - licenseResource 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 String getType()
null for nonepublic Commitment setType(String type)
type - type or null for nonepublic Commitment set(String fieldName, Object value)
set in class GenericJsonpublic Commitment clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.