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 by applying resource policy on the
target disk.
|
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 snapshot, specified in GB.
|
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.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
CustomerEncryptionKey |
getSnapshotEncryptionKey()
Encrypts the snapshot using a customer-supplied encryption key.
|
String |
getSourceDisk()
[Output Only] 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 by applying resource policy on the
target disk.
|
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 snapshot, specified in GB.
|
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 |
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 |
setSourceDisk(String sourceDisk)
[Output Only] 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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, 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 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 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 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 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–2019 Google. All rights reserved.