Package kubevirt.io

Class 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 Detail

      • V1CPU

        public V1CPU()
    • 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)
      • 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 class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object