public final class MachineType
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
| Modifier and Type | Class and Description |
|---|---|
static class |
MachineType.Accelerators
Model definition for MachineTypeAccelerators.
|
static class |
MachineType.ScratchDisks
Model definition for MachineTypeScratchDisks.
|
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
MachineType() |
| Modifier and Type | Method and Description |
|---|---|
MachineType |
clone() |
List<MachineType.Accelerators> |
getAccelerators()
[Output Only] A list of accelerator configurations assigned to this machine type.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
DeprecationStatus |
getDeprecated()
[Output Only] The deprecation status associated with this machine type.
|
String |
getDescription()
[Output Only] An optional textual description of the resource.
|
Integer |
getGuestCpus()
[Output Only] The number of virtual CPUs that are available to the instance.
|
BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
Integer |
getImageSpaceGb()
[Deprecated] This property is deprecated and will never be populated with any relevant values.
|
Boolean |
getIsSharedCpu()
[Output Only] Whether this machine type has a shared CPU.
|
String |
getKind()
[Output Only] The type of the resource.
|
Integer |
getMaximumPersistentDisks()
[Output Only] Maximum persistent disks allowed.
|
Long |
getMaximumPersistentDisksSizeGb()
[Output Only] Maximum total persistent disks size (GB) allowed.
|
Integer |
getMemoryMb()
[Output Only] The amount of physical memory available to the instance, defined in MB.
|
String |
getName()
[Output Only] Name of the resource.
|
List<MachineType.ScratchDisks> |
getScratchDisks()
[Output Only] A list of extended scratch disks assigned to the instance.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
String |
getZone()
[Output Only] The name of the zone where the machine type resides, such as us-central1-a.
|
MachineType |
set(String fieldName,
Object value) |
MachineType |
setAccelerators(List<MachineType.Accelerators> accelerators)
[Output Only] A list of accelerator configurations assigned to this machine type.
|
MachineType |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
MachineType |
setDeprecated(DeprecationStatus deprecated)
[Output Only] The deprecation status associated with this machine type.
|
MachineType |
setDescription(String description)
[Output Only] An optional textual description of the resource.
|
MachineType |
setGuestCpus(Integer guestCpus)
[Output Only] The number of virtual CPUs that are available to the instance.
|
MachineType |
setId(BigInteger id)
[Output Only] The unique identifier for the resource.
|
MachineType |
setImageSpaceGb(Integer imageSpaceGb)
[Deprecated] This property is deprecated and will never be populated with any relevant values.
|
MachineType |
setIsSharedCpu(Boolean isSharedCpu)
[Output Only] Whether this machine type has a shared CPU.
|
MachineType |
setKind(String kind)
[Output Only] The type of the resource.
|
MachineType |
setMaximumPersistentDisks(Integer maximumPersistentDisks)
[Output Only] Maximum persistent disks allowed.
|
MachineType |
setMaximumPersistentDisksSizeGb(Long maximumPersistentDisksSizeGb)
[Output Only] Maximum total persistent disks size (GB) allowed.
|
MachineType |
setMemoryMb(Integer memoryMb)
[Output Only] The amount of physical memory available to the instance, defined in MB.
|
MachineType |
setName(String name)
[Output Only] Name of the resource.
|
MachineType |
setScratchDisks(List<MachineType.ScratchDisks> scratchDisks)
[Output Only] A list of extended scratch disks assigned to the instance.
|
MachineType |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
MachineType |
setZone(String zone)
[Output Only] The name of the zone where the machine type resides, such as us-central1-a.
|
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<MachineType.Accelerators> getAccelerators()
null for nonepublic MachineType setAccelerators(List<MachineType.Accelerators> accelerators)
accelerators - accelerators or null for nonepublic String getCreationTimestamp()
null for nonepublic MachineType setCreationTimestamp(String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic DeprecationStatus getDeprecated()
null for nonepublic MachineType setDeprecated(DeprecationStatus deprecated)
deprecated - deprecated or null for nonepublic String getDescription()
null for nonepublic MachineType setDescription(String description)
description - description or null for nonepublic Integer getGuestCpus()
null for nonepublic MachineType setGuestCpus(Integer guestCpus)
guestCpus - guestCpus or null for nonepublic BigInteger getId()
null for nonepublic MachineType setId(BigInteger id)
id - id or null for nonepublic Integer getImageSpaceGb()
null for nonepublic MachineType setImageSpaceGb(Integer imageSpaceGb)
imageSpaceGb - imageSpaceGb or null for nonepublic Boolean getIsSharedCpu()
null for nonepublic MachineType setIsSharedCpu(Boolean isSharedCpu)
isSharedCpu - isSharedCpu or null for nonepublic String getKind()
null for nonepublic MachineType setKind(String kind)
kind - kind or null for nonepublic Integer getMaximumPersistentDisks()
null for nonepublic MachineType setMaximumPersistentDisks(Integer maximumPersistentDisks)
maximumPersistentDisks - maximumPersistentDisks or null for nonepublic Long getMaximumPersistentDisksSizeGb()
null for nonepublic MachineType setMaximumPersistentDisksSizeGb(Long maximumPersistentDisksSizeGb)
maximumPersistentDisksSizeGb - maximumPersistentDisksSizeGb or null for nonepublic Integer getMemoryMb()
null for nonepublic MachineType setMemoryMb(Integer memoryMb)
memoryMb - memoryMb or null for nonepublic String getName()
null for nonepublic MachineType setName(String name)
name - name or null for nonepublic List<MachineType.ScratchDisks> getScratchDisks()
null for nonepublic MachineType setScratchDisks(List<MachineType.ScratchDisks> scratchDisks)
scratchDisks - scratchDisks or null for nonepublic String getSelfLink()
null for nonepublic MachineType setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic String getZone()
null for nonepublic MachineType setZone(String zone)
zone - zone or null for nonepublic MachineType set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic MachineType clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.