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.ScratchDisks
Model definition for MachineTypeScratchDisks.
|
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
MachineType() |
Modifier and Type | Method and Description |
---|---|
MachineType |
clone() |
java.lang.String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
DeprecationStatus |
getDeprecated()
[Output Only] The deprecation status associated with this machine type.
|
java.lang.String |
getDescription()
[Output Only] An optional textual description of the resource.
|
java.lang.Integer |
getGuestCpus()
[Output Only] The number of virtual CPUs that are available to the instance.
|
java.math.BigInteger |
getId()
[Output Only] The unique identifier for the resource.
|
java.lang.Integer |
getImageSpaceGb()
[Deprecated] This property is deprecated and will never be populated with any relevant values.
|
java.lang.Boolean |
getIsSharedCpu()
[Output Only] Whether this machine type has a shared CPU.
|
java.lang.String |
getKind()
[Output Only] The type of the resource.
|
java.lang.Integer |
getMaximumPersistentDisks()
[Output Only] Maximum persistent disks allowed.
|
java.lang.Long |
getMaximumPersistentDisksSizeGb()
[Output Only] Maximum total persistent disks size (GB) allowed.
|
java.lang.Integer |
getMemoryMb()
[Output Only] The amount of physical memory available to the instance, defined in MB.
|
java.lang.String |
getName()
[Output Only] Name of the resource.
|
java.util.List<MachineType.ScratchDisks> |
getScratchDisks()
[Output Only] A list of extended scratch disks assigned to the instance.
|
java.lang.String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
java.lang.String |
getZone()
[Output Only] The name of the zone where the machine type resides, such as us-central1-a.
|
MachineType |
set(java.lang.String fieldName,
java.lang.Object value) |
MachineType |
setCreationTimestamp(java.lang.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(java.lang.String description)
[Output Only] An optional textual description of the resource.
|
MachineType |
setGuestCpus(java.lang.Integer guestCpus)
[Output Only] The number of virtual CPUs that are available to the instance.
|
MachineType |
setId(java.math.BigInteger id)
[Output Only] The unique identifier for the resource.
|
MachineType |
setImageSpaceGb(java.lang.Integer imageSpaceGb)
[Deprecated] This property is deprecated and will never be populated with any relevant values.
|
MachineType |
setIsSharedCpu(java.lang.Boolean isSharedCpu)
[Output Only] Whether this machine type has a shared CPU.
|
MachineType |
setKind(java.lang.String kind)
[Output Only] The type of the resource.
|
MachineType |
setMaximumPersistentDisks(java.lang.Integer maximumPersistentDisks)
[Output Only] Maximum persistent disks allowed.
|
MachineType |
setMaximumPersistentDisksSizeGb(java.lang.Long maximumPersistentDisksSizeGb)
[Output Only] Maximum total persistent disks size (GB) allowed.
|
MachineType |
setMemoryMb(java.lang.Integer memoryMb)
[Output Only] The amount of physical memory available to the instance, defined in MB.
|
MachineType |
setName(java.lang.String name)
[Output Only] Name of the resource.
|
MachineType |
setScratchDisks(java.util.List<MachineType.ScratchDisks> scratchDisks)
[Output Only] A list of extended scratch disks assigned to the instance.
|
MachineType |
setSelfLink(java.lang.String selfLink)
[Output Only] Server-defined URL for the resource.
|
MachineType |
setZone(java.lang.String zone)
[Output Only] The name of the zone where the machine type resides, such as us-central1-a.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getCreationTimestamp()
null
for nonepublic MachineType setCreationTimestamp(java.lang.String creationTimestamp)
creationTimestamp
- creationTimestamp or null
for nonepublic DeprecationStatus getDeprecated()
null
for nonepublic MachineType setDeprecated(DeprecationStatus deprecated)
deprecated
- deprecated or null
for nonepublic java.lang.String getDescription()
null
for nonepublic MachineType setDescription(java.lang.String description)
description
- description or null
for nonepublic java.lang.Integer getGuestCpus()
null
for nonepublic MachineType setGuestCpus(java.lang.Integer guestCpus)
guestCpus
- guestCpus or null
for nonepublic java.math.BigInteger getId()
null
for nonepublic MachineType setId(java.math.BigInteger id)
id
- id or null
for nonepublic java.lang.Integer getImageSpaceGb()
null
for nonepublic MachineType setImageSpaceGb(java.lang.Integer imageSpaceGb)
imageSpaceGb
- imageSpaceGb or null
for nonepublic java.lang.Boolean getIsSharedCpu()
null
for nonepublic MachineType setIsSharedCpu(java.lang.Boolean isSharedCpu)
isSharedCpu
- isSharedCpu or null
for nonepublic java.lang.String getKind()
null
for nonepublic MachineType setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.Integer getMaximumPersistentDisks()
null
for nonepublic MachineType setMaximumPersistentDisks(java.lang.Integer maximumPersistentDisks)
maximumPersistentDisks
- maximumPersistentDisks or null
for nonepublic java.lang.Long getMaximumPersistentDisksSizeGb()
null
for nonepublic MachineType setMaximumPersistentDisksSizeGb(java.lang.Long maximumPersistentDisksSizeGb)
maximumPersistentDisksSizeGb
- maximumPersistentDisksSizeGb or null
for nonepublic java.lang.Integer getMemoryMb()
null
for nonepublic MachineType setMemoryMb(java.lang.Integer memoryMb)
memoryMb
- memoryMb or null
for nonepublic java.lang.String getName()
null
for nonepublic MachineType setName(java.lang.String name)
name
- name or null
for nonepublic java.util.List<MachineType.ScratchDisks> getScratchDisks()
null
for nonepublic MachineType setScratchDisks(java.util.List<MachineType.ScratchDisks> scratchDisks)
scratchDisks
- scratchDisks or null
for nonepublic java.lang.String getSelfLink()
null
for nonepublic MachineType setSelfLink(java.lang.String selfLink)
selfLink
- selfLink or null
for nonepublic java.lang.String getZone()
null
for nonepublic MachineType setZone(java.lang.String zone)
zone
- zone or null
for nonepublic MachineType set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public MachineType clone()
clone
in class com.google.api.client.json.GenericJson