public final class Snapshot
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| Constructor and Description |
|---|
Snapshot() |
| Modifier and Type | Method and Description |
|---|---|
Snapshot |
clone() |
java.lang.String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
java.lang.String |
getDescription()
An optional description of this resource.
|
java.lang.Long |
getDiskSizeGb()
[Output Only] Size of the snapshot, specified in GB.
|
java.math.BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
java.lang.String |
getKind()
[Output Only] Type of the resource.
|
java.util.List<java.lang.String> |
getLicenses()
[Output Only] A list of public visible licenses that apply to this snapshot.
|
java.lang.String |
getName()
Name of the resource; provided by the client when the resource is created.
|
java.lang.String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
java.lang.String |
getSourceDisk()
[Output Only] The source disk used to create this snapshot.
|
java.lang.String |
getSourceDiskId()
[Output Only] The ID value of the disk used to create this snapshot.
|
java.lang.String |
getStatus()
[Output Only] The status of the snapshot.
|
java.lang.Long |
getStorageBytes()
[Output Only] A size of the the storage used by the snapshot.
|
java.lang.String |
getStorageBytesStatus()
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as
a result of shared storage reallocation.
|
Snapshot |
set(java.lang.String fieldName,
java.lang.Object value) |
Snapshot |
setCreationTimestamp(java.lang.String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Snapshot |
setDescription(java.lang.String description)
An optional description of this resource.
|
Snapshot |
setDiskSizeGb(java.lang.Long diskSizeGb)
[Output Only] Size of the snapshot, specified in GB.
|
Snapshot |
setId(java.math.BigInteger id)
[Output Only] The unique identifier for the resource.
|
Snapshot |
setKind(java.lang.String kind)
[Output Only] Type of the resource.
|
Snapshot |
setLicenses(java.util.List<java.lang.String> licenses)
[Output Only] A list of public visible licenses that apply to this snapshot.
|
Snapshot |
setName(java.lang.String name)
Name of the resource; provided by the client when the resource is created.
|
Snapshot |
setSelfLink(java.lang.String selfLink)
[Output Only] Server-defined URL for the resource.
|
Snapshot |
setSourceDisk(java.lang.String sourceDisk)
[Output Only] The source disk used to create this snapshot.
|
Snapshot |
setSourceDiskId(java.lang.String sourceDiskId)
[Output Only] The ID value of the disk used to create this snapshot.
|
Snapshot |
setStatus(java.lang.String status)
[Output Only] The status of the snapshot.
|
Snapshot |
setStorageBytes(java.lang.Long storageBytes)
[Output Only] A size of the the storage used by the snapshot.
|
Snapshot |
setStorageBytesStatus(java.lang.String storageBytesStatus)
[Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as
a result of shared storage reallocation.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getCreationTimestamp()
null for nonepublic Snapshot setCreationTimestamp(java.lang.String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic java.lang.String getDescription()
null for nonepublic Snapshot setDescription(java.lang.String description)
description - description or null for nonepublic java.lang.Long getDiskSizeGb()
null for nonepublic Snapshot setDiskSizeGb(java.lang.Long diskSizeGb)
diskSizeGb - diskSizeGb or null for nonepublic java.math.BigInteger getId()
null for nonepublic Snapshot setId(java.math.BigInteger id)
id - id or null for nonepublic java.lang.String getKind()
null for nonepublic Snapshot setKind(java.lang.String kind)
kind - kind or null for nonepublic java.util.List<java.lang.String> getLicenses()
null for nonepublic Snapshot setLicenses(java.util.List<java.lang.String> licenses)
licenses - licenses or null for nonepublic java.lang.String getName()
null for nonepublic Snapshot setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getSelfLink()
null for nonepublic Snapshot setSelfLink(java.lang.String selfLink)
selfLink - selfLink or null for nonepublic java.lang.String getSourceDisk()
null for nonepublic Snapshot setSourceDisk(java.lang.String sourceDisk)
sourceDisk - sourceDisk or null for nonepublic java.lang.String getSourceDiskId()
null for nonepublic Snapshot setSourceDiskId(java.lang.String sourceDiskId)
sourceDiskId - sourceDiskId or null for nonepublic java.lang.String getStatus()
null for nonepublic Snapshot setStatus(java.lang.String status)
status - status or null for nonepublic java.lang.Long getStorageBytes()
null for nonepublic Snapshot setStorageBytes(java.lang.Long storageBytes)
storageBytes - storageBytes or null for nonepublic java.lang.String getStorageBytesStatus()
null for nonepublic Snapshot setStorageBytesStatus(java.lang.String storageBytesStatus)
storageBytesStatus - storageBytesStatus or null for nonepublic Snapshot set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Snapshot clone()
clone in class com.google.api.client.json.GenericJson