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.Object
CPUFeature allows specifying a CPU feature.
-
-
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 featurejava.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)
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-