public final class MachineImage
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 |
---|
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.
|
InstanceProperties |
getInstanceProperties()
[Output Only] Properties of source instance
|
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 |
getSatisfiesPzi()
Output only.
|
Boolean |
getSatisfiesPzs()
[Output Only] Reserved for future use.
|
List<SavedDisk> |
getSavedDisks()
An array of Machine Image specific properties for disks attached to the source instance
|
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] DEPRECATED: Please use instance_properties instead for source instance related
properties.
|
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 |
setInstanceProperties(InstanceProperties instanceProperties)
[Output Only] Properties of source instance
|
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 |
setSatisfiesPzi(Boolean satisfiesPzi)
Output only.
|
MachineImage |
setSatisfiesPzs(Boolean satisfiesPzs)
[Output Only] Reserved for future use.
|
MachineImage |
setSavedDisks(List<SavedDisk> savedDisks)
An array of Machine Image specific properties for disks attached to the source instance
|
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] DEPRECATED: Please use instance_properties instead for source instance related
properties.
|
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, 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 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 InstanceProperties getInstanceProperties()
null
for nonepublic MachineImage setInstanceProperties(InstanceProperties instanceProperties)
instanceProperties
- instanceProperties 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 getSatisfiesPzi()
null
for nonepublic MachineImage setSatisfiesPzi(Boolean satisfiesPzi)
satisfiesPzi
- satisfiesPzi or null
for nonepublic Boolean getSatisfiesPzs()
null
for nonepublic MachineImage setSatisfiesPzs(Boolean satisfiesPzs)
satisfiesPzs
- satisfiesPzs or null
for nonepublic List<SavedDisk> getSavedDisks()
null
for nonepublic MachineImage setSavedDisks(List<SavedDisk> savedDisks)
savedDisks
- savedDisks 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 com.google.api.client.json.GenericJson
public MachineImage clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.