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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Commitment() |
Modifier and Type | Method and Description |
---|---|
Commitment |
clone() |
Boolean |
getAutoRenew()
Specifies whether to automatically renew the commitment at the end of its current term.
|
String |
getCategory()
The category of the commitment; specifies whether the commitment is for hardware or software
resources.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getCustomEndTimestamp()
[Input Only] Optional, specifies the requested commitment end time in RFC3339 text format.
|
String |
getDescription()
An optional description of the commitment.
|
String |
getEndTimestamp()
[Output Only] Commitment end time in RFC3339 text format.
|
List<String> |
getExistingReservations() |
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.
|
List<String> |
getMergeSourceCommitments()
The list of source commitments that you are merging to create the new merged commitment.
|
String |
getName()
Name of the commitment.
|
String |
getPlan()
The minimum time duration that you commit to purchasing resources.
|
String |
getRegion()
[Output Only] URL of the region where the commitment and committed resources are located.
|
List<Reservation> |
getReservations()
The list of new reservations that you want to create and attach to this commitment.
|
List<ResourceCommitment> |
getResources()
The list of all the hardware resources, with their types and amounts, that you want to commit
to.
|
CommitmentResourceStatus |
getResourceStatus()
[Output Only] Status information for Commitment resource.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
String |
getSplitSourceCommitment()
The source commitment from which you are transferring resources to create the new split
commitment.
|
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; specifies the machine series for which you want to commit to purchasing
resources.
|
Commitment |
set(String fieldName,
Object value) |
Commitment |
setAutoRenew(Boolean autoRenew)
Specifies whether to automatically renew the commitment at the end of its current term.
|
Commitment |
setCategory(String category)
The category of the commitment; specifies whether the commitment is for hardware or software
resources.
|
Commitment |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Commitment |
setCustomEndTimestamp(String customEndTimestamp)
[Input Only] Optional, specifies the requested commitment end time in RFC3339 text format.
|
Commitment |
setDescription(String description)
An optional description of the commitment.
|
Commitment |
setEndTimestamp(String endTimestamp)
[Output Only] Commitment end time in RFC3339 text format.
|
Commitment |
setExistingReservations(List<String> existingReservations) |
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 |
setMergeSourceCommitments(List<String> mergeSourceCommitments)
The list of source commitments that you are merging to create the new merged commitment.
|
Commitment |
setName(String name)
Name of the commitment.
|
Commitment |
setPlan(String plan)
The minimum time duration that you commit to purchasing resources.
|
Commitment |
setRegion(String region)
[Output Only] URL of the region where the commitment and committed resources are located.
|
Commitment |
setReservations(List<Reservation> reservations)
The list of new reservations that you want to create and attach to this commitment.
|
Commitment |
setResources(List<ResourceCommitment> resources)
The list of all the hardware resources, with their types and amounts, that you want to commit
to.
|
Commitment |
setResourceStatus(CommitmentResourceStatus resourceStatus)
[Output Only] Status information for Commitment resource.
|
Commitment |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
Commitment |
setSplitSourceCommitment(String splitSourceCommitment)
The source commitment from which you are transferring resources to create the new split
commitment.
|
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; specifies the machine series for which you want to commit to purchasing
resources.
|
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 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 getCustomEndTimestamp()
null
for nonepublic Commitment setCustomEndTimestamp(String customEndTimestamp)
customEndTimestamp
- customEndTimestamp 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 List<String> getExistingReservations()
null
for nonepublic Commitment setExistingReservations(List<String> existingReservations)
existingReservations
- existingReservations 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 List<String> getMergeSourceCommitments()
null
for nonepublic Commitment setMergeSourceCommitments(List<String> mergeSourceCommitments)
mergeSourceCommitments
- mergeSourceCommitments 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 CommitmentResourceStatus getResourceStatus()
null
for nonepublic Commitment setResourceStatus(CommitmentResourceStatus resourceStatus)
resourceStatus
- resourceStatus 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 getSplitSourceCommitment()
null
for nonepublic Commitment setSplitSourceCommitment(String splitSourceCommitment)
splitSourceCommitment
- splitSourceCommitment 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 com.google.api.client.json.GenericJson
public Commitment clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.