Class V1NodeSelectorTerm
java.lang.Object
io.kubernetes.client.openapi.models.V1NodeSelectorTerm
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1NodeSelectorTerm
extends Object
A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMatchExpressionsItem
(V1NodeSelectorRequirement matchExpressionsItem) addMatchFieldsItem
(V1NodeSelectorRequirement matchFieldsItem) boolean
static V1NodeSelectorTerm
Create an instance of V1NodeSelectorTerm given an JSON stringA list of node selector requirements by node's labels.A list of node selector requirements by node's fields.int
hashCode()
matchExpressions
(List<V1NodeSelectorRequirement> matchExpressions) matchFields
(List<V1NodeSelectorRequirement> matchFields) void
setMatchExpressions
(List<V1NodeSelectorRequirement> matchExpressions) void
setMatchFields
(List<V1NodeSelectorRequirement> matchFields) toJson()
Convert an instance of V1NodeSelectorTerm 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_MATCH_EXPRESSIONS
- See Also:
-
SERIALIZED_NAME_MATCH_FIELDS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1NodeSelectorTerm
public V1NodeSelectorTerm()
-
-
Method Details
-
matchExpressions
-
addMatchExpressionsItem
-
getMatchExpressions
A list of node selector requirements by node's labels.- Returns:
- matchExpressions
-
setMatchExpressions
-
matchFields
-
addMatchFieldsItem
-
getMatchFields
A list of node selector requirements by node's fields.- Returns:
- matchFields
-
setMatchFields
-
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 V1NodeSelectorTerm
-
fromJson
Create an instance of V1NodeSelectorTerm given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1NodeSelectorTerm
- Throws:
IOException
- if the JSON string is invalid with respect to V1NodeSelectorTerm
-
toJson
Convert an instance of V1NodeSelectorTerm to an JSON string- Returns:
- JSON string
-