public final class License
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 |
---|
License() |
Modifier and Type | Method and Description |
---|---|
License |
clone() |
List<String> |
getAllowedReplacementLicenses()
Specifies licenseCodes of licenses that can replace this license.
|
Boolean |
getAppendableToDisk()
If true, this license can be appended to an existing disk's set of licenses.
|
Boolean |
getChargesUseFee()
[Output Only] Deprecated.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getDescription()
An optional textual description of the resource; provided by the client when the resource is
created.
|
BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
List<String> |
getIncompatibleLicenses()
Specifies licenseCodes of licenses that are incompatible with this license.
|
String |
getKind()
[Output Only] Type of resource.
|
BigInteger |
getLicenseCode()
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
|
Duration |
getMinimumRetention()
If set, this license will be unable to be removed or replaced once attached to a disk until the
minimum_retention period has passed.
|
Boolean |
getMultiTenantOnly()
If true, this license can only be used on VMs on multi tenant nodes.
|
String |
getName()
Name of the resource.
|
Boolean |
getOsLicense()
If true, indicates this is an OS license.
|
Boolean |
getRemovableFromDisk()
If true, this license can be removed from a disk's set of licenses, with no replacement license
needed.
|
List<String> |
getRequiredCoattachedLicenses()
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the
coattachment requirement of this license.
|
LicenseResourceRequirements |
getResourceRequirements()
[Input Only] Deprecated.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
String |
getSelfLinkWithId()
[Output Only] Server-defined URL for this resource with the resource id.
|
Boolean |
getSoleTenantOnly()
If true, this license can only be used on VMs on sole tenant nodes.
|
Boolean |
getTransferable()
If false, licenses will not be copied from the source resource when creating an image from a
disk, disk from snapshot, or snapshot from disk.
|
String |
getUpdateTimestamp()
[Output Only] Last update timestamp in RFC3339 text format.
|
License |
set(String fieldName,
Object value) |
License |
setAllowedReplacementLicenses(List<String> allowedReplacementLicenses)
Specifies licenseCodes of licenses that can replace this license.
|
License |
setAppendableToDisk(Boolean appendableToDisk)
If true, this license can be appended to an existing disk's set of licenses.
|
License |
setChargesUseFee(Boolean chargesUseFee)
[Output Only] Deprecated.
|
License |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
License |
setDescription(String description)
An optional textual description of the resource; provided by the client when the resource is
created.
|
License |
setId(BigInteger id)
[Output Only] The unique identifier for the resource.
|
License |
setIncompatibleLicenses(List<String> incompatibleLicenses)
Specifies licenseCodes of licenses that are incompatible with this license.
|
License |
setKind(String kind)
[Output Only] Type of resource.
|
License |
setLicenseCode(BigInteger licenseCode)
[Output Only] The unique code used to attach this license to images, snapshots, and disks.
|
License |
setMinimumRetention(Duration minimumRetention)
If set, this license will be unable to be removed or replaced once attached to a disk until the
minimum_retention period has passed.
|
License |
setMultiTenantOnly(Boolean multiTenantOnly)
If true, this license can only be used on VMs on multi tenant nodes.
|
License |
setName(String name)
Name of the resource.
|
License |
setOsLicense(Boolean osLicense)
If true, indicates this is an OS license.
|
License |
setRemovableFromDisk(Boolean removableFromDisk)
If true, this license can be removed from a disk's set of licenses, with no replacement license
needed.
|
License |
setRequiredCoattachedLicenses(List<String> requiredCoattachedLicenses)
Specifies the set of permissible coattached licenseCodes of licenses that satisfy the
coattachment requirement of this license.
|
License |
setResourceRequirements(LicenseResourceRequirements resourceRequirements)
[Input Only] Deprecated.
|
License |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
License |
setSelfLinkWithId(String selfLinkWithId)
[Output Only] Server-defined URL for this resource with the resource id.
|
License |
setSoleTenantOnly(Boolean soleTenantOnly)
If true, this license can only be used on VMs on sole tenant nodes.
|
License |
setTransferable(Boolean transferable)
If false, licenses will not be copied from the source resource when creating an image from a
disk, disk from snapshot, or snapshot from disk.
|
License |
setUpdateTimestamp(String updateTimestamp)
[Output Only] Last update timestamp in RFC3339 text format.
|
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 List<String> getAllowedReplacementLicenses()
null
for nonepublic License setAllowedReplacementLicenses(List<String> allowedReplacementLicenses)
allowedReplacementLicenses
- allowedReplacementLicenses or null
for nonepublic Boolean getAppendableToDisk()
null
for nonepublic License setAppendableToDisk(Boolean appendableToDisk)
appendableToDisk
- appendableToDisk or null
for nonepublic Boolean getChargesUseFee()
null
for nonepublic License setChargesUseFee(Boolean chargesUseFee)
chargesUseFee
- chargesUseFee or null
for nonepublic String getCreationTimestamp()
null
for nonepublic License setCreationTimestamp(String creationTimestamp)
creationTimestamp
- creationTimestamp or null
for nonepublic String getDescription()
null
for nonepublic License setDescription(String description)
description
- description or null
for nonepublic BigInteger getId()
null
for nonepublic License setId(BigInteger id)
id
- id or null
for nonepublic List<String> getIncompatibleLicenses()
null
for nonepublic License setIncompatibleLicenses(List<String> incompatibleLicenses)
incompatibleLicenses
- incompatibleLicenses or null
for nonepublic String getKind()
null
for nonepublic License setKind(String kind)
kind
- kind or null
for nonepublic BigInteger getLicenseCode()
null
for nonepublic License setLicenseCode(BigInteger licenseCode)
licenseCode
- licenseCode or null
for nonepublic Duration getMinimumRetention()
null
for nonepublic License setMinimumRetention(Duration minimumRetention)
minimumRetention
- minimumRetention or null
for nonepublic Boolean getMultiTenantOnly()
null
for nonepublic License setMultiTenantOnly(Boolean multiTenantOnly)
multiTenantOnly
- multiTenantOnly or null
for nonepublic String getName()
null
for nonepublic License setName(String name)
name
- name or null
for nonepublic Boolean getOsLicense()
null
for nonepublic License setOsLicense(Boolean osLicense)
osLicense
- osLicense or null
for nonepublic Boolean getRemovableFromDisk()
null
for nonepublic License setRemovableFromDisk(Boolean removableFromDisk)
removableFromDisk
- removableFromDisk or null
for nonepublic List<String> getRequiredCoattachedLicenses()
null
for nonepublic License setRequiredCoattachedLicenses(List<String> requiredCoattachedLicenses)
requiredCoattachedLicenses
- requiredCoattachedLicenses or null
for nonepublic LicenseResourceRequirements getResourceRequirements()
null
for nonepublic License setResourceRequirements(LicenseResourceRequirements resourceRequirements)
resourceRequirements
- resourceRequirements or null
for nonepublic String getSelfLink()
null
for nonepublic License setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic String getSelfLinkWithId()
null
for nonepublic License setSelfLinkWithId(String selfLinkWithId)
selfLinkWithId
- selfLinkWithId or null
for nonepublic Boolean getSoleTenantOnly()
null
for nonepublic License setSoleTenantOnly(Boolean soleTenantOnly)
soleTenantOnly
- soleTenantOnly or null
for nonepublic Boolean getTransferable()
null
for nonepublic License setTransferable(Boolean transferable)
transferable
- transferable or null
for nonepublic String getUpdateTimestamp()
null
for nonepublic License setUpdateTimestamp(String updateTimestamp)
updateTimestamp
- updateTimestamp or null
for nonepublic License set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public License clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.