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() |
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.
|
java.lang.Boolean |
getAutoCreated()
[Output Only] Set to true if snapshots are automatically created by applying resource policy on
the target disk.
|
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 source disk, specified in GB.
|
java.lang.Long |
getDownloadBytes()
[Output Only] Number of bytes downloaded to restore a snapshot to a disk.
|
java.math.BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
java.lang.String |
getKind()
[Output Only] Type of the resource.
|
java.lang.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.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Labels to apply to this snapshot.
|
java.util.List<java.lang.Long> |
getLicenseCodes()
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
|
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.
|
CustomerEncryptionKey |
getSnapshotEncryptionKey()
Encrypts the snapshot using a customer-supplied encryption key.
|
java.lang.String |
getSourceDisk()
[Output Only] The source disk used to create this snapshot.
|
CustomerEncryptionKey |
getSourceDiskEncryptionKey()
The customer-supplied encryption key of the source disk.
|
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 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.
|
java.util.List<java.lang.String> |
getStorageLocations()
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
|
Snapshot |
set(java.lang.String fieldName,
java.lang.Object value) |
Snapshot |
setAutoCreated(java.lang.Boolean autoCreated)
[Output Only] Set to true if snapshots are automatically created by applying resource policy on
the target disk.
|
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 source disk, specified in GB.
|
Snapshot |
setDownloadBytes(java.lang.Long downloadBytes)
[Output Only] Number of bytes downloaded to restore a snapshot to a disk.
|
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 |
setLabelFingerprint(java.lang.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(java.util.Map<java.lang.String,java.lang.String> labels)
Labels to apply to this snapshot.
|
Snapshot |
setLicenseCodes(java.util.List<java.lang.Long> licenseCodes)
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
|
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 |
setSnapshotEncryptionKey(CustomerEncryptionKey snapshotEncryptionKey)
Encrypts the snapshot using a customer-supplied encryption key.
|
Snapshot |
setSourceDisk(java.lang.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(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 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.
|
Snapshot |
setStorageLocations(java.util.List<java.lang.String> storageLocations)
Cloud Storage bucket storage location of the snapshot (regional or multi-regional).
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Boolean getAutoCreated()
null
for nonepublic Snapshot setAutoCreated(java.lang.Boolean autoCreated)
autoCreated
- autoCreated or null
for nonepublic 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.lang.Long getDownloadBytes()
null
for nonepublic Snapshot setDownloadBytes(java.lang.Long downloadBytes)
downloadBytes
- downloadBytes 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.lang.String getLabelFingerprint()
null
for nonedecodeLabelFingerprint()
public byte[] decodeLabelFingerprint()
null
for nonegetLabelFingerprint()
public Snapshot setLabelFingerprint(java.lang.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 java.util.Map<java.lang.String,java.lang.String> getLabels()
null
for nonepublic Snapshot setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
labels
- labels or null
for nonepublic java.util.List<java.lang.Long> getLicenseCodes()
null
for nonepublic Snapshot setLicenseCodes(java.util.List<java.lang.Long> licenseCodes)
licenseCodes
- licenseCodes 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 CustomerEncryptionKey getSnapshotEncryptionKey()
null
for nonepublic Snapshot setSnapshotEncryptionKey(CustomerEncryptionKey snapshotEncryptionKey)
snapshotEncryptionKey
- snapshotEncryptionKey or null
for nonepublic java.lang.String getSourceDisk()
null
for nonepublic Snapshot setSourceDisk(java.lang.String sourceDisk)
sourceDisk
- sourceDisk or null
for nonepublic CustomerEncryptionKey getSourceDiskEncryptionKey()
null
for nonepublic Snapshot setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncryptionKey)
sourceDiskEncryptionKey
- sourceDiskEncryptionKey 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 java.util.List<java.lang.String> getStorageLocations()
null
for nonepublic Snapshot setStorageLocations(java.util.List<java.lang.String> storageLocations)
storageLocations
- storageLocations or null
for nonepublic Snapshot set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Snapshot clone()
clone
in class com.google.api.client.json.GenericJson