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 Object
CPU allows specifying the CPU topology.
  • Field Details

  • Constructor Details

    • V1CPU

      public V1CPU()
  • Method Details

    • cores

      public V1CPU cores(Integer cores)
    • getCores

      public 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(Integer cores)
    • dedicatedCpuPlacement

      public V1CPU dedicatedCpuPlacement(Boolean dedicatedCpuPlacement)
    • isDedicatedCpuPlacement

      public 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(Boolean dedicatedCpuPlacement)
    • features

      public V1CPU features(List<V1CPUFeature> features)
    • addFeaturesItem

      public V1CPU addFeaturesItem(V1CPUFeature featuresItem)
    • getFeatures

      public List<V1CPUFeature> getFeatures()
      Features specifies the CPU features list inside the VMI. +optional
      Returns:
      features
    • setFeatures

      public void setFeatures(List<V1CPUFeature> features)
    • model

      public V1CPU model(String model)
    • getModel

      public 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(String model)
    • sockets

      public V1CPU sockets(Integer sockets)
    • getSockets

      public 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(Integer sockets)
    • threads

      public V1CPU threads(Integer threads)
    • getThreads

      public 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(Integer threads)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toIndentedString

      private String toIndentedString(Object o)
      Convert the given object to string with each line indented by 4 spaces (except the first line).