target.apidocs.com.google.api.services.compute.model.LicenseCode.html Maven / Gradle / Ivy
LicenseCode (Compute Engine API v1-rev20240919-2.0.0)
com.google.api.services.compute.model
Class LicenseCode
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.LicenseCode
-
public final class LicenseCode
extends com.google.api.client.json.GenericJson
Represents a License Code resource. A License Code is a unique identifier used to represent a
license resource. *Caution* This resource is intended for use only by third-party partners who
are creating Cloud Marketplace images.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
LicenseCode()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
LicenseCode
clone()
String
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
String
getDescription()
[Output Only] Description of this License Code.
BigInteger
getId()
[Output Only] The unique identifier for the resource.
String
getKind()
[Output Only] Type of resource.
List<LicenseCodeLicenseAlias>
getLicenseAlias()
[Output Only] URL and description aliases of Licenses with the same License Code.
String
getName()
[Output Only] Name of the resource.
String
getSelfLink()
[Output Only] Server-defined URL for the resource.
String
getState()
[Output Only] Current state of this License Code.
Boolean
getTransferable()
[Output Only] If true, the license will remain attached when creating images or snapshots from
disks.
LicenseCode
set(String fieldName,
Object value)
LicenseCode
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
LicenseCode
setDescription(String description)
[Output Only] Description of this License Code.
LicenseCode
setId(BigInteger id)
[Output Only] The unique identifier for the resource.
LicenseCode
setKind(String kind)
[Output Only] Type of resource.
LicenseCode
setLicenseAlias(List<LicenseCodeLicenseAlias> licenseAlias)
[Output Only] URL and description aliases of Licenses with the same License Code.
LicenseCode
setName(String name)
[Output Only] Name of the resource.
LicenseCode
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
LicenseCode
setState(String state)
[Output Only] Current state of this License Code.
LicenseCode
setTransferable(Boolean transferable)
[Output Only] If true, the license will remain attached when creating images or snapshots from
disks.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getCreationTimestamp
public String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
- Returns:
- value or
null
for none
-
setCreationTimestamp
public LicenseCode setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
- Parameters:
creationTimestamp
- creationTimestamp or null
for none
-
getDescription
public String getDescription()
[Output Only] Description of this License Code.
- Returns:
- value or
null
for none
-
setDescription
public LicenseCode setDescription(String description)
[Output Only] Description of this License Code.
- Parameters:
description
- description or null
for none
-
getId
public BigInteger getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
- Returns:
- value or
null
for none
-
setId
public LicenseCode setId(BigInteger id)
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
- Parameters:
id
- id or null
for none
-
getKind
public String getKind()
[Output Only] Type of resource. Always compute#licenseCode for licenses.
- Returns:
- value or
null
for none
-
setKind
public LicenseCode setKind(String kind)
[Output Only] Type of resource. Always compute#licenseCode for licenses.
- Parameters:
kind
- kind or null
for none
-
getLicenseAlias
public List<LicenseCodeLicenseAlias> getLicenseAlias()
[Output Only] URL and description aliases of Licenses with the same License Code.
- Returns:
- value or
null
for none
-
setLicenseAlias
public LicenseCode setLicenseAlias(List<LicenseCodeLicenseAlias> licenseAlias)
[Output Only] URL and description aliases of Licenses with the same License Code.
- Parameters:
licenseAlias
- licenseAlias or null
for none
-
getName
public String getName()
[Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit
integer.
- Returns:
- value or
null
for none
-
setName
public LicenseCode setName(String name)
[Output Only] Name of the resource. The name is 1-20 characters long and must be a valid 64 bit
integer.
- Parameters:
name
- name or null
for none
-
getSelfLink
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
- Returns:
- value or
null
for none
-
setSelfLink
public LicenseCode setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
- Parameters:
selfLink
- selfLink or null
for none
-
getState
public String getState()
[Output Only] Current state of this License Code.
- Returns:
- value or
null
for none
-
setState
public LicenseCode setState(String state)
[Output Only] Current state of this License Code.
- Parameters:
state
- state or null
for none
-
getTransferable
public Boolean getTransferable()
[Output Only] If true, the license will remain attached when creating images or snapshots from
disks. Otherwise, the license is not transferred.
- Returns:
- value or
null
for none
-
setTransferable
public LicenseCode setTransferable(Boolean transferable)
[Output Only] If true, the license will remain attached when creating images or snapshots from
disks. Otherwise, the license is not transferred.
- Parameters:
transferable
- transferable or null
for none
-
set
public LicenseCode set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public LicenseCode clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.