Package kubevirt.io

Class V1CPUFeature


  • @Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
               date="2019-11-10T14:44:51.030+02:00")
    public class V1CPUFeature
    extends java.lang.Object
    CPUFeature allows specifying a CPU feature.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
      private java.lang.String policy  
    • Constructor Summary

      Constructors 
      Constructor Description
      V1CPUFeature()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getName()
      Name of the CPU feature
      java.lang.String getPolicy()
      Policy is the CPU feature attribute which can have the following attributes: force - The virtual CPU will claim the feature is supported regardless of it being supported by host CPU.
      int hashCode()  
      V1CPUFeature name​(java.lang.String name)  
      V1CPUFeature policy​(java.lang.String policy)  
      void setName​(java.lang.String name)  
      void setPolicy​(java.lang.String policy)  
      private java.lang.String toIndentedString​(java.lang.Object o)
      Convert the given object to string with each line indented by 4 spaces (except the first line).
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        private java.lang.String name
      • policy

        private java.lang.String policy
    • Constructor Detail

      • V1CPUFeature

        public V1CPUFeature()
    • Method Detail

      • name

        public V1CPUFeature name​(java.lang.String name)
      • getName

        public java.lang.String getName()
        Name of the CPU feature
        Returns:
        name
      • setName

        public void setName​(java.lang.String name)
      • policy

        public V1CPUFeature policy​(java.lang.String policy)
      • getPolicy

        public java.lang.String getPolicy()
        Policy is the CPU feature attribute which can have the following attributes: force - The virtual CPU will claim the feature is supported regardless of it being supported by host CPU. require - Guest creation will fail unless the feature is supported by the host CPU or the hypervisor is able to emulate it. optional - The feature will be supported by virtual CPU if and only if it is supported by host CPU. disable - The feature will not be supported by virtual CPU. forbid - Guest creation will fail if the feature is supported by host CPU. Defaults to require +optional
        Returns:
        policy
      • setPolicy

        public void setPolicy​(java.lang.String policy)
      • 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
      • toIndentedString

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