Class CPU
- java.lang.Object
-
- io.fabric8.openshift.api.model.hive.ovirt.v1.CPU
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<CPUBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class CPU extends Object implements io.fabric8.kubernetes.api.builder.Editable<CPUBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
CPU defines the VM cpu, made of (Sockets * Cores).- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPUBuilderedit()Map<String,Object>getAdditionalProperties()IntegergetCores()Cores is the number of cores per socket.IntegergetSockets()Sockets is the number of sockets for a VM.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetCores(Integer cores)Cores is the number of cores per socket.voidsetSockets(Integer sockets)Sockets is the number of sockets for a VM.CPUBuildertoBuilder()
-
-
-
Method Detail
-
getCores
public Integer getCores()
Cores is the number of cores per socket. Total CPUs is (Sockets * Cores)
-
setCores
public void setCores(Integer cores)
Cores is the number of cores per socket. Total CPUs is (Sockets * Cores)
-
getSockets
public Integer getSockets()
Sockets is the number of sockets for a VM. Total CPUs is (Sockets * Cores)
-
setSockets
public void setSockets(Integer sockets)
Sockets is the number of sockets for a VM. Total CPUs is (Sockets * Cores)
-
edit
public CPUBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<CPUBuilder>
-
toBuilder
public CPUBuilder toBuilder()
-
-