public static class MachineType.Builder extends Object
Modifier and Type | Method and Description |
---|---|
MachineType.Builder |
addAllScratchDisks(List<ScratchDisks> scratchDisks)
[Output Only] A list of extended scratch disks assigned to the instance.
|
MachineType.Builder |
addScratchDisks(ScratchDisks scratchDisks)
[Output Only] A list of extended scratch disks assigned to the instance.
|
MachineType |
build() |
MachineType.Builder |
clone() |
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.
|
String |
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.
|
String |
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<ScratchDisks> |
getScratchDisksList()
[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.Builder |
mergeFrom(MachineType other) |
MachineType.Builder |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
MachineType.Builder |
setDeprecated(DeprecationStatus deprecated)
[Output Only] The deprecation status associated with this machine type.
|
MachineType.Builder |
setDescription(String description)
[Output Only] An optional textual description of the resource.
|
MachineType.Builder |
setGuestCpus(Integer guestCpus)
[Output Only] The number of virtual CPUs that are available to the instance.
|
MachineType.Builder |
setId(String id)
[Output Only] The unique identifier for the resource.
|
MachineType.Builder |
setImageSpaceGb(Integer imageSpaceGb)
[Deprecated] This property is deprecated and will never be populated with any relevant
values.
|
MachineType.Builder |
setIsSharedCpu(Boolean isSharedCpu)
[Output Only] Whether this machine type has a shared CPU.
|
MachineType.Builder |
setKind(String kind)
[Output Only] The type of the resource.
|
MachineType.Builder |
setMaximumPersistentDisks(Integer maximumPersistentDisks)
[Output Only] Maximum persistent disks allowed.
|
MachineType.Builder |
setMaximumPersistentDisksSizeGb(String maximumPersistentDisksSizeGb)
[Output Only] Maximum total persistent disks size (GB) allowed.
|
MachineType.Builder |
setMemoryMb(Integer memoryMb)
[Output Only] The amount of physical memory available to the instance, defined in MB.
|
MachineType.Builder |
setName(String name)
[Output Only] Name of the resource.
|
MachineType.Builder |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
MachineType.Builder |
setZone(String zone)
[Output Only] The name of the zone where the machine type resides, such as us-central1-a.
|
public MachineType.Builder mergeFrom(MachineType other)
public String getCreationTimestamp()
public MachineType.Builder setCreationTimestamp(String creationTimestamp)
public DeprecationStatus getDeprecated()
public MachineType.Builder setDeprecated(DeprecationStatus deprecated)
public String getDescription()
public MachineType.Builder setDescription(String description)
public Integer getGuestCpus()
public MachineType.Builder setGuestCpus(Integer guestCpus)
public String getId()
public MachineType.Builder setId(String id)
public Integer getImageSpaceGb()
public MachineType.Builder setImageSpaceGb(Integer imageSpaceGb)
public Boolean getIsSharedCpu()
public MachineType.Builder setIsSharedCpu(Boolean isSharedCpu)
public String getKind()
public MachineType.Builder setKind(String kind)
public Integer getMaximumPersistentDisks()
public MachineType.Builder setMaximumPersistentDisks(Integer maximumPersistentDisks)
public String getMaximumPersistentDisksSizeGb()
public MachineType.Builder setMaximumPersistentDisksSizeGb(String maximumPersistentDisksSizeGb)
public Integer getMemoryMb()
public MachineType.Builder setMemoryMb(Integer memoryMb)
public String getName()
public MachineType.Builder setName(String name)
public List<ScratchDisks> getScratchDisksList()
public MachineType.Builder addAllScratchDisks(List<ScratchDisks> scratchDisks)
public MachineType.Builder addScratchDisks(ScratchDisks scratchDisks)
public String getSelfLink()
public MachineType.Builder setSelfLink(String selfLink)
public String getZone()
public MachineType.Builder setZone(String zone)
public MachineType build()
public MachineType.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.