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 java.lang.ObjectCPUFeature allows specifying a CPU feature.
-
-
Constructor Summary
Constructors Constructor Description V1CPUFeature()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetName()Name of the CPU featurejava.lang.StringgetPolicy()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.inthashCode()V1CPUFeaturename(java.lang.String name)V1CPUFeaturepolicy(java.lang.String policy)voidsetName(java.lang.String name)voidsetPolicy(java.lang.String policy)java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-