public final class Snapshot extends 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
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description | 
|---|
Snapshot()  | 
| Modifier and Type | Method and Description | 
|---|---|
Snapshot | 
clone()  | 
byte[] | 
decodeLabelFingerprint()
A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the
 labels set used for optimistic locking. 
 | 
Snapshot | 
encodeLabelFingerprint(byte[] labelFingerprint)
A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the
 labels set used for optimistic locking. 
 | 
Boolean | 
getAutoCreated()
[Output Only] Set to true if snapshots are automatically created by applying resource policy on
 the target disk. 
 | 
String | 
getChainName()
Creates the new snapshot in the snapshot chain labeled with the specified name. 
 | 
String | 
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format. 
 | 
String | 
getDescription()
An optional description of this resource. 
 | 
Long | 
getDiskSizeGb()
[Output Only] Size of the source disk, specified in GB. 
 | 
Long | 
getDownloadBytes()
[Output Only] Number of bytes downloaded to restore a snapshot to a disk. 
 | 
Boolean | 
getGuestFlush()
[Input Only] Whether to attempt an application consistent snapshot by informing the OS to
 prepare for the snapshot process. 
 | 
List<GuestOsFeature> | 
getGuestOsFeatures()
[Output Only] A list of features to enable on the guest operating system. 
 | 
BigInteger | 
getId()
[Output Only] The unique identifier for the resource. 
 | 
String | 
getKind()
[Output Only] Type of the resource. 
 | 
String | 
getLabelFingerprint()
A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the
 labels set used for optimistic locking. 
 | 
Map<String,String> | 
getLabels()
Labels to apply to this snapshot. 
 | 
List<Long> | 
getLicenseCodes()
[Output Only] Integer license codes indicating which licenses are attached to this snapshot. 
 | 
List<String> | 
getLicenses()
[Output Only] A list of public visible licenses that apply to this snapshot. 
 | 
String | 
getName()
Name of the resource; provided by the client when the resource is created. 
 | 
Boolean | 
getSatisfiesPzs()
[Output Only] Reserved for future use. 
 | 
String | 
getSelfLink()
[Output Only] Server-defined URL for the resource. 
 | 
String | 
getSelfLinkWithId()
[Output Only] Server-defined URL for this resource's resource id. 
 | 
CustomerEncryptionKey | 
getSnapshotEncryptionKey()
Encrypts the snapshot using a customer-supplied encryption key. 
 | 
String | 
getSourceDisk()
The source disk used to create this snapshot. 
 | 
CustomerEncryptionKey | 
getSourceDiskEncryptionKey()
The customer-supplied encryption key of the source disk. 
 | 
String | 
getSourceDiskId()
[Output Only] The ID value of the disk used to create this snapshot. 
 | 
String | 
getStatus()
[Output Only] The status of the snapshot. 
 | 
Long | 
getStorageBytes()
[Output Only] A size of the storage used by the snapshot. 
 | 
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. 
 | 
List<String> | 
getStorageLocations()
Cloud Storage bucket storage location of the snapshot (regional or multi-regional). 
 | 
Snapshot | 
set(String fieldName,
   Object value)  | 
Snapshot | 
setAutoCreated(Boolean autoCreated)
[Output Only] Set to true if snapshots are automatically created by applying resource policy on
 the target disk. 
 | 
Snapshot | 
setChainName(String chainName)
Creates the new snapshot in the snapshot chain labeled with the specified name. 
 | 
Snapshot | 
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format. 
 | 
Snapshot | 
setDescription(String description)
An optional description of this resource. 
 | 
Snapshot | 
setDiskSizeGb(Long diskSizeGb)
[Output Only] Size of the source disk, specified in GB. 
 | 
Snapshot | 
setDownloadBytes(Long downloadBytes)
[Output Only] Number of bytes downloaded to restore a snapshot to a disk. 
 | 
Snapshot | 
setGuestFlush(Boolean guestFlush)
[Input Only] Whether to attempt an application consistent snapshot by informing the OS to
 prepare for the snapshot process. 
 | 
Snapshot | 
setGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)
[Output Only] A list of features to enable on the guest operating system. 
 | 
Snapshot | 
setId(BigInteger id)
[Output Only] The unique identifier for the resource. 
 | 
Snapshot | 
setKind(String kind)
[Output Only] Type of the resource. 
 | 
Snapshot | 
setLabelFingerprint(String labelFingerprint)
A fingerprint for the labels being applied to this snapshot, which is essentially a hash of the
 labels set used for optimistic locking. 
 | 
Snapshot | 
setLabels(Map<String,String> labels)
Labels to apply to this snapshot. 
 | 
Snapshot | 
setLicenseCodes(List<Long> licenseCodes)
[Output Only] Integer license codes indicating which licenses are attached to this snapshot. 
 | 
Snapshot | 
setLicenses(List<String> licenses)
[Output Only] A list of public visible licenses that apply to this snapshot. 
 | 
Snapshot | 
setName(String name)
Name of the resource; provided by the client when the resource is created. 
 | 
Snapshot | 
setSatisfiesPzs(Boolean satisfiesPzs)
[Output Only] Reserved for future use. 
 | 
Snapshot | 
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource. 
 | 
Snapshot | 
setSelfLinkWithId(String selfLinkWithId)
[Output Only] Server-defined URL for this resource's resource id. 
 | 
Snapshot | 
setSnapshotEncryptionKey(CustomerEncryptionKey snapshotEncryptionKey)
Encrypts the snapshot using a customer-supplied encryption key. 
 | 
Snapshot | 
setSourceDisk(String sourceDisk)
The source disk used to create this snapshot. 
 | 
Snapshot | 
setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncryptionKey)
The customer-supplied encryption key of the source disk. 
 | 
Snapshot | 
setSourceDiskId(String sourceDiskId)
[Output Only] The ID value of the disk used to create this snapshot. 
 | 
Snapshot | 
setStatus(String status)
[Output Only] The status of the snapshot. 
 | 
Snapshot | 
setStorageBytes(Long storageBytes)
[Output Only] A size of the storage used by the snapshot. 
 | 
Snapshot | 
setStorageBytesStatus(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. 
 | 
Snapshot | 
setStorageLocations(List<String> storageLocations)
Cloud Storage bucket storage location of the snapshot (regional or multi-regional). 
 | 
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Boolean getAutoCreated()
null for nonepublic Snapshot setAutoCreated(Boolean autoCreated)
autoCreated - autoCreated or null for nonepublic String getChainName()
null for nonepublic Snapshot setChainName(String chainName)
chainName - chainName or null for nonepublic String getCreationTimestamp()
null for nonepublic Snapshot setCreationTimestamp(String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic String getDescription()
null for nonepublic Snapshot setDescription(String description)
description - description or null for nonepublic Long getDiskSizeGb()
null for nonepublic Snapshot setDiskSizeGb(Long diskSizeGb)
diskSizeGb - diskSizeGb or null for nonepublic Long getDownloadBytes()
null for nonepublic Snapshot setDownloadBytes(Long downloadBytes)
downloadBytes - downloadBytes or null for nonepublic Boolean getGuestFlush()
null for nonepublic Snapshot setGuestFlush(Boolean guestFlush)
guestFlush - guestFlush or null for nonepublic List<GuestOsFeature> getGuestOsFeatures()
null for nonepublic Snapshot setGuestOsFeatures(List<GuestOsFeature> guestOsFeatures)
guestOsFeatures - guestOsFeatures or null for nonepublic BigInteger getId()
null for nonepublic Snapshot setId(BigInteger id)
id - id or null for nonepublic String getKind()
null for nonepublic Snapshot setKind(String kind)
kind - kind or null for nonepublic String getLabelFingerprint()
null for nonedecodeLabelFingerprint()public byte[] decodeLabelFingerprint()
null for nonegetLabelFingerprint()public Snapshot setLabelFingerprint(String labelFingerprint)
labelFingerprint - labelFingerprint or null for none#encodeLabelFingerprint()public Snapshot encodeLabelFingerprint(byte[] labelFingerprint)
 The value is encoded Base64 or {@code null} for none.
 
public Map<String,String> getLabels()
null for nonepublic Snapshot setLabels(Map<String,String> labels)
labels - labels or null for nonepublic List<Long> getLicenseCodes()
null for nonepublic Snapshot setLicenseCodes(List<Long> licenseCodes)
licenseCodes - licenseCodes or null for nonepublic List<String> getLicenses()
null for nonepublic Snapshot setLicenses(List<String> licenses)
licenses - licenses or null for nonepublic String getName()
null for nonepublic Snapshot setName(String name)
name - name or null for nonepublic Boolean getSatisfiesPzs()
null for nonepublic Snapshot setSatisfiesPzs(Boolean satisfiesPzs)
satisfiesPzs - satisfiesPzs or null for nonepublic String getSelfLink()
null for nonepublic Snapshot setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic String getSelfLinkWithId()
null for nonepublic Snapshot setSelfLinkWithId(String selfLinkWithId)
selfLinkWithId - selfLinkWithId or null for nonepublic CustomerEncryptionKey getSnapshotEncryptionKey()
null for nonepublic Snapshot setSnapshotEncryptionKey(CustomerEncryptionKey snapshotEncryptionKey)
snapshotEncryptionKey - snapshotEncryptionKey or null for nonepublic String getSourceDisk()
null for nonepublic Snapshot setSourceDisk(String sourceDisk)
sourceDisk - sourceDisk or null for nonepublic CustomerEncryptionKey getSourceDiskEncryptionKey()
null for nonepublic Snapshot setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncryptionKey)
sourceDiskEncryptionKey - sourceDiskEncryptionKey or null for nonepublic String getSourceDiskId()
null for nonepublic Snapshot setSourceDiskId(String sourceDiskId)
sourceDiskId - sourceDiskId or null for nonepublic String getStatus()
null for nonepublic Snapshot setStatus(String status)
status - status or null for nonepublic Long getStorageBytes()
null for nonepublic Snapshot setStorageBytes(Long storageBytes)
storageBytes - storageBytes or null for nonepublic String getStorageBytesStatus()
null for nonepublic Snapshot setStorageBytesStatus(String storageBytesStatus)
storageBytesStatus - storageBytesStatus or null for nonepublic List<String> getStorageLocations()
null for nonepublic Snapshot setStorageLocations(List<String> storageLocations)
storageLocations - storageLocations or null for nonepublic Snapshot set(String fieldName, Object value)
set in class GenericJsonpublic Snapshot clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.