Modifier and Type | Method and Description |
---|---|
Snapshot.Builder |
addAllLicenseCodes(List<String> licenseCodes)
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
|
Snapshot.Builder |
addAllLicenses(List<String> licenses)
[Output Only] A list of public visible licenses that apply to this snapshot.
|
Snapshot.Builder |
addAllStorageLocations(List<String> storageLocations)
GCS bucket storage location of the snapshot (regional or multi-regional).
|
Snapshot.Builder |
addLicenseCodes(String licenseCodes)
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
|
Snapshot.Builder |
addLicenses(String licenses)
[Output Only] A list of public visible licenses that apply to this snapshot.
|
Snapshot.Builder |
addStorageLocations(String storageLocations)
GCS bucket storage location of the snapshot (regional or multi-regional).
|
Snapshot |
build() |
Snapshot.Builder |
clone() |
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
String |
getDiskSizeGb()
[Output Only] Size of the snapshot, specified in GB.
|
String |
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> |
getLabelsMap()
Labels to apply to this snapshot.
|
List<String> |
getLicenseCodesList()
[Output Only] Integer license codes indicating which licenses are attached to this snapshot.
|
List<String> |
getLicensesList()
[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.
|
String |
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> |
getStorageLocationsList()
GCS bucket storage location of the snapshot (regional or multi-regional).
|
Snapshot.Builder |
mergeFrom(Snapshot other) |
Snapshot.Builder |
putAllLabels(Map<String,String> labels)
Labels to apply to this snapshot.
|
Snapshot.Builder |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
Snapshot.Builder |
setDescription(String description)
An optional description of this resource.
|
Snapshot.Builder |
setDiskSizeGb(String diskSizeGb)
[Output Only] Size of the snapshot, specified in GB.
|
Snapshot.Builder |
setId(String id)
[Output Only] The unique identifier for the resource.
|
Snapshot.Builder |
setKind(String kind)
[Output Only] Type of the resource.
|
Snapshot.Builder |
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.Builder |
setName(String name)
Name of the resource; provided by the client when the resource is created.
|
Snapshot.Builder |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
Snapshot.Builder |
setSnapshotEncryptionKey(CustomerEncryptionKey snapshotEncryptionKey)
Encrypts the snapshot using a customer-supplied encryption key.
|
Snapshot.Builder |
setSourceDisk(String sourceDisk)
[Output Only] The source disk used to create this snapshot.
|
Snapshot.Builder |
setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncryptionKey)
The customer-supplied encryption key of the source disk.
|
Snapshot.Builder |
setSourceDiskId(String sourceDiskId)
[Output Only] The ID value of the disk used to create this snapshot.
|
Snapshot.Builder |
setStatus(String status)
[Output Only] The status of the snapshot.
|
Snapshot.Builder |
setStorageBytes(String storageBytes)
[Output Only] A size of the storage used by the snapshot.
|
Snapshot.Builder |
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.
|
public Snapshot.Builder mergeFrom(Snapshot other)
public String getCreationTimestamp()
public Snapshot.Builder setCreationTimestamp(String creationTimestamp)
public String getDescription()
public Snapshot.Builder setDescription(String description)
public String getDiskSizeGb()
public Snapshot.Builder setDiskSizeGb(String diskSizeGb)
public String getId()
public Snapshot.Builder setId(String id)
public String getKind()
public Snapshot.Builder setKind(String kind)
public String getLabelFingerprint()
To see the latest fingerprint, make a get() request to retrieve a snapshot.
public Snapshot.Builder setLabelFingerprint(String labelFingerprint)
To see the latest fingerprint, make a get() request to retrieve a snapshot.
public Map<String,String> getLabelsMap()
public Snapshot.Builder putAllLabels(Map<String,String> labels)
public List<String> getLicenseCodesList()
public Snapshot.Builder addAllLicenseCodes(List<String> licenseCodes)
public Snapshot.Builder addLicenseCodes(String licenseCodes)
public List<String> getLicensesList()
public Snapshot.Builder addAllLicenses(List<String> licenses)
public Snapshot.Builder addLicenses(String licenses)
public String getName()
public Snapshot.Builder setName(String name)
public String getSelfLink()
public Snapshot.Builder setSelfLink(String selfLink)
public CustomerEncryptionKey getSnapshotEncryptionKey()
After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the image later For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request.
Customer-supplied encryption keys do not protect access to metadata of the disk.
If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
public Snapshot.Builder setSnapshotEncryptionKey(CustomerEncryptionKey snapshotEncryptionKey)
After you encrypt a snapshot using a customer-supplied key, you must provide the same key if you use the image later For example, you must provide the encryption key when you create a disk from the encrypted snapshot in a future request.
Customer-supplied encryption keys do not protect access to metadata of the disk.
If you do not provide an encryption key when creating the snapshot, then the snapshot will be encrypted using an automatically generated key and you do not need to provide a key to use the snapshot later.
public String getSourceDisk()
public Snapshot.Builder setSourceDisk(String sourceDisk)
public CustomerEncryptionKey getSourceDiskEncryptionKey()
public Snapshot.Builder setSourceDiskEncryptionKey(CustomerEncryptionKey sourceDiskEncryptionKey)
public String getSourceDiskId()
public Snapshot.Builder setSourceDiskId(String sourceDiskId)
public String getStatus()
public Snapshot.Builder setStatus(String status)
public String getStorageBytes()
public Snapshot.Builder setStorageBytes(String storageBytes)
public String getStorageBytesStatus()
public Snapshot.Builder setStorageBytesStatus(String storageBytesStatus)
public List<String> getStorageLocationsList()
public Snapshot.Builder addAllStorageLocations(List<String> storageLocations)
public Snapshot.Builder addStorageLocations(String storageLocations)
public Snapshot build()
public Snapshot.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.