public final class MachineImage 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 |
|---|
MachineImage() |
| Modifier and Type | Method and Description |
|---|---|
MachineImage |
clone() |
String |
getCreationTimestamp()
[Output Only] The creation timestamp for this machine image in RFC3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
Boolean |
getGuestFlush()
[Input Only] Whether to attempt an application consistent machine image by informing the OS to
prepare for the snapshot process.
|
BigInteger |
getId()
[Output Only] A unique identifier for this machine image.
|
String |
getKind()
[Output Only] The resource type, which is always compute#machineImage for machine image.
|
CustomerEncryptionKey |
getMachineImageEncryptionKey()
Encrypts the machine image using a customer-supplied encryption key.
|
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] The URL for this machine image.
|
List<SourceDiskEncryptionKey> |
getSourceDiskEncryptionKeys()
[Input Only] The customer-supplied encryption key of the disks attached to the source instance.
|
String |
getSourceInstance()
The source instance used to create the machine image.
|
SourceInstanceProperties |
getSourceInstanceProperties()
[Output Only] Properties of source instance.
|
String |
getStatus()
[Output Only] The status of the machine image.
|
List<String> |
getStorageLocations()
The regional or multi-regional Cloud Storage bucket location where the machine image is stored.
|
Long |
getTotalStorageBytes()
[Output Only] Total size of the storage used by the machine image.
|
MachineImage |
set(String fieldName,
Object value) |
MachineImage |
setCreationTimestamp(String creationTimestamp)
[Output Only] The creation timestamp for this machine image in RFC3339 text format.
|
MachineImage |
setDescription(String description)
An optional description of this resource.
|
MachineImage |
setGuestFlush(Boolean guestFlush)
[Input Only] Whether to attempt an application consistent machine image by informing the OS to
prepare for the snapshot process.
|
MachineImage |
setId(BigInteger id)
[Output Only] A unique identifier for this machine image.
|
MachineImage |
setKind(String kind)
[Output Only] The resource type, which is always compute#machineImage for machine image.
|
MachineImage |
setMachineImageEncryptionKey(CustomerEncryptionKey machineImageEncryptionKey)
Encrypts the machine image using a customer-supplied encryption key.
|
MachineImage |
setName(String name)
Name of the resource; provided by the client when the resource is created.
|
MachineImage |
setSatisfiesPzs(Boolean satisfiesPzs)
[Output Only] Reserved for future use.
|
MachineImage |
setSelfLink(String selfLink)
[Output Only] The URL for this machine image.
|
MachineImage |
setSourceDiskEncryptionKeys(List<SourceDiskEncryptionKey> sourceDiskEncryptionKeys)
[Input Only] The customer-supplied encryption key of the disks attached to the source instance.
|
MachineImage |
setSourceInstance(String sourceInstance)
The source instance used to create the machine image.
|
MachineImage |
setSourceInstanceProperties(SourceInstanceProperties sourceInstanceProperties)
[Output Only] Properties of source instance.
|
MachineImage |
setStatus(String status)
[Output Only] The status of the machine image.
|
MachineImage |
setStorageLocations(List<String> storageLocations)
The regional or multi-regional Cloud Storage bucket location where the machine image is stored.
|
MachineImage |
setTotalStorageBytes(Long totalStorageBytes)
[Output Only] Total size of the storage used by the machine image.
|
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 getCreationTimestamp()
null for nonepublic MachineImage setCreationTimestamp(String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic String getDescription()
null for nonepublic MachineImage setDescription(String description)
description - description or null for nonepublic Boolean getGuestFlush()
null for nonepublic MachineImage setGuestFlush(Boolean guestFlush)
guestFlush - guestFlush or null for nonepublic BigInteger getId()
null for nonepublic MachineImage setId(BigInteger id)
id - id or null for nonepublic String getKind()
null for nonepublic MachineImage setKind(String kind)
kind - kind or null for nonepublic CustomerEncryptionKey getMachineImageEncryptionKey()
null for nonepublic MachineImage setMachineImageEncryptionKey(CustomerEncryptionKey machineImageEncryptionKey)
machineImageEncryptionKey - machineImageEncryptionKey or null for nonepublic String getName()
null for nonepublic MachineImage setName(String name)
name - name or null for nonepublic Boolean getSatisfiesPzs()
null for nonepublic MachineImage setSatisfiesPzs(Boolean satisfiesPzs)
satisfiesPzs - satisfiesPzs or null for nonepublic String getSelfLink()
null for nonepublic MachineImage setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic List<SourceDiskEncryptionKey> getSourceDiskEncryptionKeys()
null for nonepublic MachineImage setSourceDiskEncryptionKeys(List<SourceDiskEncryptionKey> sourceDiskEncryptionKeys)
sourceDiskEncryptionKeys - sourceDiskEncryptionKeys or null for nonepublic String getSourceInstance()
null for nonepublic MachineImage setSourceInstance(String sourceInstance)
sourceInstance - sourceInstance or null for nonepublic SourceInstanceProperties getSourceInstanceProperties()
null for nonepublic MachineImage setSourceInstanceProperties(SourceInstanceProperties sourceInstanceProperties)
sourceInstanceProperties - sourceInstanceProperties or null for nonepublic String getStatus()
null for nonepublic MachineImage setStatus(String status)
status - status or null for nonepublic List<String> getStorageLocations()
null for nonepublic MachineImage setStorageLocations(List<String> storageLocations)
storageLocations - storageLocations or null for nonepublic Long getTotalStorageBytes()
null for nonepublic MachineImage setTotalStorageBytes(Long totalStorageBytes)
totalStorageBytes - totalStorageBytes or null for nonepublic MachineImage set(String fieldName, Object value)
set in class GenericJsonpublic MachineImage clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.