Class V1NodeSelectorTerm
java.lang.Object
io.kubernetes.client.openapi.models.V1NodeSelectorTerm
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
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) booleanstatic V1NodeSelectorTermCreate 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.inthashCode()matchExpressions(List<V1NodeSelectorRequirement> matchExpressions) matchFields(List<V1NodeSelectorRequirement> matchFields) voidsetMatchExpressions(List<V1NodeSelectorRequirement> matchExpressions) voidsetMatchFields(List<V1NodeSelectorRequirement> matchFields) toJson()Convert an instance of V1NodeSelectorTerm to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element 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
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element 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
-