Class V1PreferredSchedulingTerm
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1PreferredSchedulingTerm
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
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 TypeMethodDescriptionbooleanWeight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.inthashCode()preference(V1NodeSelectorTerm preference) Set preference in a chainable fashion.voidsetPreference(V1NodeSelectorTerm preference) Set the preference property valuevoidSet the weight property valuetoString()Set weight in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_PREFERENCE
- See Also:
-
JSON_PROPERTY_WEIGHT
- See Also:
-
-
Constructor Details
-
V1PreferredSchedulingTerm
-
-
Method Details
-
getPreference
- Returns:
- the preference property value
-
setPreference
Set the preference property value- Parameters:
preference- property value to set
-
preference
Set preference in a chainable fashion.- Returns:
- The same instance of V1PreferredSchedulingTerm for chaining.
-
getWeight
Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.- Returns:
- the weight property value
-
setWeight
Set the weight property value- Parameters:
weight- property value to set
-
weight
Set weight in a chainable fashion.- Returns:
- The same instance of V1PreferredSchedulingTerm for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-