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
AbstractMap.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 |
getEnableConfidentialCompute()
Whether this snapshot is created from a confidential compute mode disk.
|
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 |
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 |
getSatisfiesPzi()
Output only.
|
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 |
getSourceDiskForRecoveryCheckpoint()
The source disk whose recovery checkpoint will be used to create this snapshot.
|
String |
getSourceDiskId()
[Output Only] The ID value of the disk used to create this snapshot.
|
String |
getSourceInstantSnapshot()
The source instant snapshot used to create this snapshot.
|
CustomerEncryptionKey |
getSourceInstantSnapshotEncryptionKey()
Customer provided encryption key when creating Snapshot from Instant Snapshot.
|
String |
getSourceInstantSnapshotId()
[Output Only] The unique ID of the instant snapshot 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).
|
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 |
setEnableConfidentialCompute(Boolean enableConfidentialCompute)
Whether this snapshot is created from a confidential compute mode disk.
|
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 |
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 |
setSatisfiesPzi(Boolean satisfiesPzi)
Output only.
|
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 |
setSourceDiskForRecoveryCheckpoint(String sourceDiskForRecoveryCheckpoint)
The source disk whose recovery checkpoint will be used to create this snapshot.
|
Snapshot |
setSourceDiskId(String sourceDiskId)
[Output Only] The ID value of the disk used to create this snapshot.
|
Snapshot |
setSourceInstantSnapshot(String sourceInstantSnapshot)
The source instant snapshot used to create this snapshot.
|
Snapshot |
setSourceInstantSnapshotEncryptionKey(CustomerEncryptionKey sourceInstantSnapshotEncryptionKey)
Customer provided encryption key when creating Snapshot from Instant Snapshot.
|
Snapshot |
setSourceInstantSnapshotId(String sourceInstantSnapshotId)
[Output Only] The unique ID of the instant snapshot 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).
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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 getEnableConfidentialCompute()
null
for nonepublic Snapshot setEnableConfidentialCompute(Boolean enableConfidentialCompute)
enableConfidentialCompute
- enableConfidentialCompute 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 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 getSatisfiesPzi()
null
for nonepublic Snapshot setSatisfiesPzi(Boolean satisfiesPzi)
satisfiesPzi
- satisfiesPzi 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 getSourceDiskForRecoveryCheckpoint()
null
for nonepublic Snapshot setSourceDiskForRecoveryCheckpoint(String sourceDiskForRecoveryCheckpoint)
sourceDiskForRecoveryCheckpoint
- sourceDiskForRecoveryCheckpoint or null
for nonepublic String getSourceDiskId()
null
for nonepublic Snapshot setSourceDiskId(String sourceDiskId)
sourceDiskId
- sourceDiskId or null
for nonepublic String getSourceInstantSnapshot()
null
for nonepublic Snapshot setSourceInstantSnapshot(String sourceInstantSnapshot)
sourceInstantSnapshot
- sourceInstantSnapshot or null
for nonepublic CustomerEncryptionKey getSourceInstantSnapshotEncryptionKey()
null
for nonepublic Snapshot setSourceInstantSnapshotEncryptionKey(CustomerEncryptionKey sourceInstantSnapshotEncryptionKey)
sourceInstantSnapshotEncryptionKey
- sourceInstantSnapshotEncryptionKey or null
for nonepublic String getSourceInstantSnapshotId()
null
for nonepublic Snapshot setSourceInstantSnapshotId(String sourceInstantSnapshotId)
sourceInstantSnapshotId
- sourceInstantSnapshotId 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 Snapshot set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Snapshot clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.