Package kubevirt.io
Class V1CPU
- java.lang.Object
-
- kubevirt.io.V1CPU
-
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2019-11-10T14:44:51.030+02:00") public class V1CPU extends java.lang.ObjectCPU allows specifying the CPU topology.
-
-
Constructor Summary
Constructors Constructor Description V1CPU()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V1CPUaddFeaturesItem(V1CPUFeature featuresItem)V1CPUcores(java.lang.Integer cores)V1CPUdedicatedCpuPlacement(java.lang.Boolean dedicatedCpuPlacement)booleanequals(java.lang.Object o)V1CPUfeatures(java.util.List<V1CPUFeature> features)java.lang.IntegergetCores()Cores specifies the number of cores inside the vmi.java.util.List<V1CPUFeature>getFeatures()Features specifies the CPU features list inside the VMI.java.lang.StringgetModel()Model specifies the CPU model inside the VMI.java.lang.IntegergetSockets()Sockets specifies the number of sockets inside the vmi.java.lang.IntegergetThreads()Threads specifies the number of threads inside the vmi.inthashCode()java.lang.BooleanisDedicatedCpuPlacement()DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it.V1CPUmodel(java.lang.String model)voidsetCores(java.lang.Integer cores)voidsetDedicatedCpuPlacement(java.lang.Boolean dedicatedCpuPlacement)voidsetFeatures(java.util.List<V1CPUFeature> features)voidsetModel(java.lang.String model)voidsetSockets(java.lang.Integer sockets)voidsetThreads(java.lang.Integer threads)V1CPUsockets(java.lang.Integer sockets)V1CPUthreads(java.lang.Integer threads)java.lang.StringtoString()
-
-
-
Method Detail
-
cores
public V1CPU cores(java.lang.Integer cores)
-
getCores
public java.lang.Integer getCores()
Cores specifies the number of cores inside the vmi. Must be a value greater or equal 1.- Returns:
- cores
-
setCores
public void setCores(java.lang.Integer cores)
-
dedicatedCpuPlacement
public V1CPU dedicatedCpuPlacement(java.lang.Boolean dedicatedCpuPlacement)
-
isDedicatedCpuPlacement
public java.lang.Boolean isDedicatedCpuPlacement()
DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance on a node with enough dedicated pCPUs and pin the vCPUs to it. +optional- Returns:
- dedicatedCpuPlacement
-
setDedicatedCpuPlacement
public void setDedicatedCpuPlacement(java.lang.Boolean dedicatedCpuPlacement)
-
features
public V1CPU features(java.util.List<V1CPUFeature> features)
-
addFeaturesItem
public V1CPU addFeaturesItem(V1CPUFeature featuresItem)
-
getFeatures
public java.util.List<V1CPUFeature> getFeatures()
Features specifies the CPU features list inside the VMI. +optional- Returns:
- features
-
setFeatures
public void setFeatures(java.util.List<V1CPUFeature> features)
-
model
public V1CPU model(java.lang.String model)
-
getModel
public java.lang.String getModel()
Model specifies the CPU model inside the VMI. List of available models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It is possible to specify special cases like \"host-passthrough\" to get the same CPU as the node and \"host-model\" to get CPU closest to the node one. Defaults to host-model. +optional- Returns:
- model
-
setModel
public void setModel(java.lang.String model)
-
sockets
public V1CPU sockets(java.lang.Integer sockets)
-
getSockets
public java.lang.Integer getSockets()
Sockets specifies the number of sockets inside the vmi. Must be a value greater or equal 1.- Returns:
- sockets
-
setSockets
public void setSockets(java.lang.Integer sockets)
-
threads
public V1CPU threads(java.lang.Integer threads)
-
getThreads
public java.lang.Integer getThreads()
Threads specifies the number of threads inside the vmi. Must be a value greater or equal 1.- Returns:
- threads
-
setThreads
public void setThreads(java.lang.Integer threads)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-