Class MachinePool
- java.lang.Object
-
- io.fabric8.openshift.api.model.hive.vsphere.v1.MachinePool
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<MachinePoolBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class MachinePool extends Object implements io.fabric8.kubernetes.api.builder.Editable<MachinePoolBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
MachinePool stores the configuration for a machine pool installed on vSphere.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MachinePool()No args constructor for use in serializationMachinePool(Integer coresPerSocket, Integer cpus, Long memoryMB, OSDisk osDisk, String resourcePool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MachinePoolBuilderedit()Map<String,Object>getAdditionalProperties()IntegergetCoresPerSocket()NumCoresPerSocket is the number of cores per socket in a vm.IntegergetCpus()NumCPUs is the total number of virtual processor cores to assign a vm.LonggetMemoryMB()Memory is the size of a VM's memory in MB.OSDiskgetOsDisk()MachinePool stores the configuration for a machine pool installed on vSphere.StringgetResourcePool()ResourcePool is the name of the resource pool that will be used for virtual machines.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetCoresPerSocket(Integer coresPerSocket)NumCoresPerSocket is the number of cores per socket in a vm.voidsetCpus(Integer cpus)NumCPUs is the total number of virtual processor cores to assign a vm.voidsetMemoryMB(Long memoryMB)Memory is the size of a VM's memory in MB.voidsetOsDisk(OSDisk osDisk)MachinePool stores the configuration for a machine pool installed on vSphere.voidsetResourcePool(String resourcePool)ResourcePool is the name of the resource pool that will be used for virtual machines.MachinePoolBuildertoBuilder()
-
-
-
Method Detail
-
getCoresPerSocket
public Integer getCoresPerSocket()
NumCoresPerSocket is the number of cores per socket in a vm. The number of vCPUs on the vm will be NumCPUs/NumCoresPerSocket.
-
setCoresPerSocket
public void setCoresPerSocket(Integer coresPerSocket)
NumCoresPerSocket is the number of cores per socket in a vm. The number of vCPUs on the vm will be NumCPUs/NumCoresPerSocket.
-
getCpus
public Integer getCpus()
NumCPUs is the total number of virtual processor cores to assign a vm.
-
setCpus
public void setCpus(Integer cpus)
NumCPUs is the total number of virtual processor cores to assign a vm.
-
getMemoryMB
public Long getMemoryMB()
Memory is the size of a VM's memory in MB.
-
setMemoryMB
public void setMemoryMB(Long memoryMB)
Memory is the size of a VM's memory in MB.
-
getOsDisk
public OSDisk getOsDisk()
MachinePool stores the configuration for a machine pool installed on vSphere.
-
setOsDisk
public void setOsDisk(OSDisk osDisk)
MachinePool stores the configuration for a machine pool installed on vSphere.
-
getResourcePool
public String getResourcePool()
ResourcePool is the name of the resource pool that will be used for virtual machines. If it is not present, a default value will be used.
-
setResourcePool
public void setResourcePool(String resourcePool)
ResourcePool is the name of the resource pool that will be used for virtual machines. If it is not present, a default value will be used.
-
edit
public MachinePoolBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<MachinePoolBuilder>
-
toBuilder
public MachinePoolBuilder toBuilder()
-
-