Package kubevirt.io

Class V1CPUFeature

java.lang.Object
kubevirt.io.V1CPUFeature

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

  • Constructor Details

    • V1CPUFeature

      public V1CPUFeature()
  • Method Details

    • name

      public V1CPUFeature name(String name)
    • getName

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

      public void setName(String name)
    • policy

      public V1CPUFeature policy(String policy)
    • getPolicy

      public 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(String policy)
    • 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).