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. | 
| String | getArchitecture()[Output Only] The architecture of the snapshot. | 
| 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. | 
| Long | getCreationSizeBytes()[Output Only] Size in bytes of the snapshot at creation time. | 
| 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. | 
| 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 | getLocationHint()An opaque location hint used to place the snapshot close to other resources. | 
| 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. | 
| CustomerEncryptionKey | getSnapshotEncryptionKey()Encrypts the snapshot using a customer-supplied encryption key. | 
| String | getSnapshotType()Indicates the type of the snapshot. | 
| 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 | getSourceSnapshotSchedulePolicy()[Output Only] URL of the resource policy which created this scheduled snapshot. | 
| String | getSourceSnapshotSchedulePolicyId()[Output Only] ID of the resource policy which created this scheduled 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). | 
| List<String> | getUserLicenses()[Output Only] A list of user provided licenses represented by a list of URLs to the license
 resource. | 
| Snapshot | set(String fieldName,
   Object value) | 
| Snapshot | setArchitecture(String architecture)[Output Only] The architecture of the snapshot. | 
| 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 | setCreationSizeBytes(Long creationSizeBytes)[Output Only] Size in bytes of the snapshot at creation time. | 
| 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 | 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 | setLocationHint(String locationHint)An opaque location hint used to place the snapshot close to other resources. | 
| 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 | setSnapshotEncryptionKey(CustomerEncryptionKey snapshotEncryptionKey)Encrypts the snapshot using a customer-supplied encryption key. | 
| Snapshot | setSnapshotType(String snapshotType)Indicates the type of the snapshot. | 
| 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 | setSourceSnapshotSchedulePolicy(String sourceSnapshotSchedulePolicy)[Output Only] URL of the resource policy which created this scheduled snapshot. | 
| Snapshot | setSourceSnapshotSchedulePolicyId(String sourceSnapshotSchedulePolicyId)[Output Only] ID of the resource policy which created this scheduled 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). | 
| Snapshot | setUserLicenses(List<String> userLicenses)[Output Only] A list of user provided licenses represented by a list of URLs to the license
 resource. | 
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 String getArchitecture()
null for nonepublic Snapshot setArchitecture(String architecture)
architecture - architecture or null for nonepublic 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 Long getCreationSizeBytes()
null for nonepublic Snapshot setCreationSizeBytes(Long creationSizeBytes)
creationSizeBytes - creationSizeBytes 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 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 getLocationHint()
null for nonepublic Snapshot setLocationHint(String locationHint)
locationHint - locationHint 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 CustomerEncryptionKey getSnapshotEncryptionKey()
null for nonepublic Snapshot setSnapshotEncryptionKey(CustomerEncryptionKey snapshotEncryptionKey)
snapshotEncryptionKey - snapshotEncryptionKey or null for nonepublic String getSnapshotType()
null for nonepublic Snapshot setSnapshotType(String snapshotType)
snapshotType - snapshotType 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 getSourceSnapshotSchedulePolicy()
null for nonepublic Snapshot setSourceSnapshotSchedulePolicy(String sourceSnapshotSchedulePolicy)
sourceSnapshotSchedulePolicy - sourceSnapshotSchedulePolicy or null for nonepublic String getSourceSnapshotSchedulePolicyId()
null for nonepublic Snapshot setSourceSnapshotSchedulePolicyId(String sourceSnapshotSchedulePolicyId)
sourceSnapshotSchedulePolicyId - sourceSnapshotSchedulePolicyId 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 List<String> getUserLicenses()
null for nonepublic Snapshot setUserLicenses(List<String> userLicenses)
userLicenses - userLicenses or null for nonepublic Snapshot set(String fieldName, Object value)
set in class GenericJsonpublic Snapshot clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.