public final class Image
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: http://code.google.com/p/google-http-java-client/wiki/JSON
Modifier and Type | Class and Description |
---|---|
static class |
Image.RawDisk
The parameters of the raw disk image.
|
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Image() |
Modifier and Type | Method and Description |
---|---|
Image |
clone() |
java.lang.Long |
getArchiveSizeBytes()
Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
|
java.lang.String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
DeprecationStatus |
getDeprecated()
The deprecation status associated with this image.
|
java.lang.String |
getDescription()
Textual description of the resource; provided by the client when the resource is created.
|
java.lang.Long |
getDiskSizeGb()
Size of the image when restored onto a persistent disk (in GB).
|
java.math.BigInteger |
getId()
[Output Only] Unique identifier for the resource; defined by the server.
|
java.lang.String |
getKind()
[Output Only] Type of the resource.
|
java.util.List<java.lang.String> |
getLicenses()
Any applicable publicly visible licenses.
|
java.lang.String |
getName()
Name of the resource; provided by the client when the resource is created.
|
Image.RawDisk |
getRawDisk()
The parameters of the raw disk image.
|
java.lang.String |
getSelfLink()
[Output Only] Server defined URL for the resource.
|
java.lang.String |
getSourceDisk()
URL of the The source disk used to create this image.
|
java.lang.String |
getSourceDiskId()
The ID value of the disk used to create this image.
|
java.lang.String |
getSourceType()
The type of the image used to create this disk.
|
java.lang.String |
getStatus()
[Output Only] The status of the image.
|
Image |
set(java.lang.String fieldName,
java.lang.Object value) |
Image |
setArchiveSizeBytes(java.lang.Long archiveSizeBytes)
Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
|
Image |
setCreationTimestamp(java.lang.String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Image |
setDeprecated(DeprecationStatus deprecated)
The deprecation status associated with this image.
|
Image |
setDescription(java.lang.String description)
Textual description of the resource; provided by the client when the resource is created.
|
Image |
setDiskSizeGb(java.lang.Long diskSizeGb)
Size of the image when restored onto a persistent disk (in GB).
|
Image |
setId(java.math.BigInteger id)
[Output Only] Unique identifier for the resource; defined by the server.
|
Image |
setKind(java.lang.String kind)
[Output Only] Type of the resource.
|
Image |
setLicenses(java.util.List<java.lang.String> licenses)
Any applicable publicly visible licenses.
|
Image |
setName(java.lang.String name)
Name of the resource; provided by the client when the resource is created.
|
Image |
setRawDisk(Image.RawDisk rawDisk)
The parameters of the raw disk image.
|
Image |
setSelfLink(java.lang.String selfLink)
[Output Only] Server defined URL for the resource.
|
Image |
setSourceDisk(java.lang.String sourceDisk)
URL of the The source disk used to create this image.
|
Image |
setSourceDiskId(java.lang.String sourceDiskId)
The ID value of the disk used to create this image.
|
Image |
setSourceType(java.lang.String sourceType)
The type of the image used to create this disk.
|
Image |
setStatus(java.lang.String status)
[Output Only] The status of the image.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.Long getArchiveSizeBytes()
null
for nonepublic Image setArchiveSizeBytes(java.lang.Long archiveSizeBytes)
archiveSizeBytes
- archiveSizeBytes or null
for nonepublic java.lang.String getCreationTimestamp()
null
for nonepublic Image setCreationTimestamp(java.lang.String creationTimestamp)
creationTimestamp
- creationTimestamp or null
for nonepublic DeprecationStatus getDeprecated()
null
for nonepublic Image setDeprecated(DeprecationStatus deprecated)
deprecated
- deprecated or null
for nonepublic java.lang.String getDescription()
null
for nonepublic Image setDescription(java.lang.String description)
description
- description or null
for nonepublic java.lang.Long getDiskSizeGb()
null
for nonepublic Image setDiskSizeGb(java.lang.Long diskSizeGb)
diskSizeGb
- diskSizeGb or null
for nonepublic java.math.BigInteger getId()
null
for nonepublic Image setId(java.math.BigInteger id)
id
- id or null
for nonepublic java.lang.String getKind()
null
for nonepublic Image setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.util.List<java.lang.String> getLicenses()
null
for nonepublic Image setLicenses(java.util.List<java.lang.String> licenses)
licenses
- licenses or null
for nonepublic java.lang.String getName()
null
for nonepublic Image setName(java.lang.String name)
name
- name or null
for nonepublic Image.RawDisk getRawDisk()
null
for nonepublic Image setRawDisk(Image.RawDisk rawDisk)
rawDisk
- rawDisk or null
for nonepublic java.lang.String getSelfLink()
null
for nonepublic Image setSelfLink(java.lang.String selfLink)
selfLink
- selfLink or null
for nonepublic java.lang.String getSourceDisk()
null
for nonepublic Image setSourceDisk(java.lang.String sourceDisk)
sourceDisk
- sourceDisk or null
for nonepublic java.lang.String getSourceDiskId()
null
for nonepublic Image setSourceDiskId(java.lang.String sourceDiskId)
sourceDiskId
- sourceDiskId or null
for nonepublic java.lang.String getSourceType()
null
for nonepublic Image setSourceType(java.lang.String sourceType)
sourceType
- sourceType or null
for nonepublic java.lang.String getStatus()
null
for nonepublic Image setStatus(java.lang.String status)
status
- status or null
for nonepublic Image set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Image clone()
clone
in class com.google.api.client.json.GenericJson