public final class VirtualMachine 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 Genomics 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 |
|---|
VirtualMachine() |
| Modifier and Type | Method and Description |
|---|---|
VirtualMachine |
clone() |
List<Accelerator> |
getAccelerators()
The list of accelerators to attach to the VM.
|
Integer |
getBootDiskSizeGb()
The size of the boot disk, in GB.
|
String |
getBootImage()
The host operating system image to use.
|
String |
getCpuPlatform()
The CPU platform to request.
|
List<Disk> |
getDisks()
The list of disks to create and attach to the VM.
|
Boolean |
getEnableStackdriverMonitoring()
Whether Stackdriver monitoring should be enabled on the VM.
|
Map<String,String> |
getLabels()
Optional set of labels to apply to the VM and any attached disk resources.
|
String |
getMachineType()
Required.
|
Network |
getNetwork()
The VM network configuration.
|
String |
getNvidiaDriverVersion()
The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator.
|
Boolean |
getPreemptible()
If true, allocate a preemptible VM.
|
ServiceAccount |
getServiceAccount()
The service account to install on the VM.
|
VirtualMachine |
set(String fieldName,
Object value) |
VirtualMachine |
setAccelerators(List<Accelerator> accelerators)
The list of accelerators to attach to the VM.
|
VirtualMachine |
setBootDiskSizeGb(Integer bootDiskSizeGb)
The size of the boot disk, in GB.
|
VirtualMachine |
setBootImage(String bootImage)
The host operating system image to use.
|
VirtualMachine |
setCpuPlatform(String cpuPlatform)
The CPU platform to request.
|
VirtualMachine |
setDisks(List<Disk> disks)
The list of disks to create and attach to the VM.
|
VirtualMachine |
setEnableStackdriverMonitoring(Boolean enableStackdriverMonitoring)
Whether Stackdriver monitoring should be enabled on the VM.
|
VirtualMachine |
setLabels(Map<String,String> labels)
Optional set of labels to apply to the VM and any attached disk resources.
|
VirtualMachine |
setMachineType(String machineType)
Required.
|
VirtualMachine |
setNetwork(Network network)
The VM network configuration.
|
VirtualMachine |
setNvidiaDriverVersion(String nvidiaDriverVersion)
The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator.
|
VirtualMachine |
setPreemptible(Boolean preemptible)
If true, allocate a preemptible VM.
|
VirtualMachine |
setServiceAccount(ServiceAccount serviceAccount)
The service account to install on the VM.
|
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 List<Accelerator> getAccelerators()
null for nonepublic VirtualMachine setAccelerators(List<Accelerator> accelerators)
accelerators - accelerators or null for nonepublic Integer getBootDiskSizeGb()
null for nonepublic VirtualMachine setBootDiskSizeGb(Integer bootDiskSizeGb)
bootDiskSizeGb - bootDiskSizeGb or null for nonepublic String getBootImage()
null for nonepublic VirtualMachine setBootImage(String bootImage)
bootImage - bootImage or null for nonepublic String getCpuPlatform()
null for nonepublic VirtualMachine setCpuPlatform(String cpuPlatform)
cpuPlatform - cpuPlatform or null for nonepublic List<Disk> getDisks()
null for nonepublic VirtualMachine setDisks(List<Disk> disks)
disks - disks or null for nonepublic Boolean getEnableStackdriverMonitoring()
null for nonepublic VirtualMachine setEnableStackdriverMonitoring(Boolean enableStackdriverMonitoring)
enableStackdriverMonitoring - enableStackdriverMonitoring or null for nonepublic Map<String,String> getLabels()
null for nonepublic VirtualMachine setLabels(Map<String,String> labels)
labels - labels or null for nonepublic String getMachineType()
null for nonepublic VirtualMachine setMachineType(String machineType)
machineType - machineType or null for nonepublic Network getNetwork()
null for nonepublic VirtualMachine setNetwork(Network network)
network - network or null for nonepublic String getNvidiaDriverVersion()
null for nonepublic VirtualMachine setNvidiaDriverVersion(String nvidiaDriverVersion)
nvidiaDriverVersion - nvidiaDriverVersion or null for nonepublic Boolean getPreemptible()
null for nonepublic VirtualMachine setPreemptible(Boolean preemptible)
preemptible - preemptible or null for nonepublic ServiceAccount getServiceAccount()
null for nonepublic VirtualMachine setServiceAccount(ServiceAccount serviceAccount)
serviceAccount - serviceAccount or null for nonepublic VirtualMachine set(String fieldName, Object value)
set in class GenericJsonpublic VirtualMachine clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.