Class V1PreferredSchedulingTerm
java.lang.Object
io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[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).
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1PreferredSchedulingTerm
Create an instance of V1PreferredSchedulingTerm given an JSON stringGet preferenceWeight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.int
hashCode()
preference
(V1NodeSelectorTerm preference) void
setPreference
(V1NodeSelectorTerm preference) void
toJson()
Convert an instance of V1PreferredSchedulingTerm to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_PREFERENCE
- See Also:
-
SERIALIZED_NAME_WEIGHT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
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
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1PreferredSchedulingTerm
-
fromJson
Create an instance of V1PreferredSchedulingTerm given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1PreferredSchedulingTerm
- Throws:
IOException
- if the JSON string is invalid with respect to V1PreferredSchedulingTerm
-
toJson
Convert an instance of V1PreferredSchedulingTerm to an JSON string- Returns:
- JSON string
-