Package kubevirt.io
Class V1PreferredSchedulingTerm
java.lang.Object
kubevirt.io.V1PreferredSchedulingTerm
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
date="2019-11-10T14:44:51.030+02:00")
public class V1PreferredSchedulingTerm
extends Object
An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanA node selector term, associated with the corresponding weight.Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.inthashCode()preference(V1NodeSelectorTerm preference) voidsetPreference(V1NodeSelectorTerm preference) voidprivate StringConvert the given object to string with each line indented by 4 spaces (except the first line).toString()
-
Field Details
-
preference
-
weight
-
-
Constructor Details
-
V1PreferredSchedulingTerm
public V1PreferredSchedulingTerm()
-
-
Method Details
-
preference
-
getPreference
A node selector term, associated with the corresponding weight.- Returns:
- preference
-
setPreference
-
weight
-
getWeight
Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.- Returns:
- weight
-
setWeight
-
equals
-
hashCode
public int hashCode() -
toString
-
toIndentedString
Convert the given object to string with each line indented by 4 spaces (except the first line).
-