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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Name of the CPU featurePolicy 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()voidvoidprivate StringConvert the given object to string with each line indented by 4 spaces (except the first line).toString()
-
Field Details
-
name
-
policy
-
-
Constructor Details
-
V1CPUFeature
public V1CPUFeature()
-
-
Method Details
-
name
-
getName
Name of the CPU feature- Returns:
- name
-
setName
-
policy
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
toIndentedString
Convert the given object to string with each line indented by 4 spaces (except the first line).
-