Class V1PreferredSchedulingTerm
java.lang.Object
io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-12-05T08:14:34.919Z[Etc/UTC]")
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 TypeMethodDescriptionbooleanGet preferenceWeight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.inthashCode()preference(V1NodeSelectorTerm preference) voidsetPreference(V1NodeSelectorTerm preference) voidtoString()
-
Field Details
-
SERIALIZED_NAME_PREFERENCE
- See Also:
-
SERIALIZED_NAME_WEIGHT
- See Also:
-
-
Constructor Details
-
V1PreferredSchedulingTerm
public V1PreferredSchedulingTerm()
-
-
Method Details
-
preference
-
getPreference
Get preference- 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
-