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.Object
CPU allows specifying the CPU topology.
-
-
Constructor Summary
Constructors Constructor Description V1CPU()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V1CPU
addFeaturesItem(V1CPUFeature featuresItem)
V1CPU
cores(java.lang.Integer cores)
V1CPU
dedicatedCpuPlacement(java.lang.Boolean dedicatedCpuPlacement)
boolean
equals(java.lang.Object o)
V1CPU
features(java.util.List<V1CPUFeature> features)
java.lang.Integer
getCores()
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.String
getModel()
Model specifies the CPU model inside the VMI.java.lang.Integer
getSockets()
Sockets specifies the number of sockets inside the vmi.java.lang.Integer
getThreads()
Threads specifies the number of threads inside the vmi.int
hashCode()
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.V1CPU
model(java.lang.String model)
void
setCores(java.lang.Integer cores)
void
setDedicatedCpuPlacement(java.lang.Boolean dedicatedCpuPlacement)
void
setFeatures(java.util.List<V1CPUFeature> features)
void
setModel(java.lang.String model)
void
setSockets(java.lang.Integer sockets)
void
setThreads(java.lang.Integer threads)
V1CPU
sockets(java.lang.Integer sockets)
V1CPU
threads(java.lang.Integer threads)
java.lang.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-