Class V1NodeSelector
java.lang.Object
io.kubernetes.client.openapi.models.V1NodeSelector
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1NodeSelector
extends Object
A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNodeSelectorTermsItem
(V1NodeSelectorTerm nodeSelectorTermsItem) boolean
static V1NodeSelector
Create an instance of V1NodeSelector given an JSON stringRequired.int
hashCode()
nodeSelectorTerms
(List<V1NodeSelectorTerm> nodeSelectorTerms) void
setNodeSelectorTerms
(List<V1NodeSelectorTerm> nodeSelectorTerms) toJson()
Convert an instance of V1NodeSelector 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_NODE_SELECTOR_TERMS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1NodeSelector
public V1NodeSelector()
-
-
Method Details
-
nodeSelectorTerms
-
addNodeSelectorTermsItem
-
getNodeSelectorTerms
Required. A list of node selector terms. The terms are ORed.- Returns:
- nodeSelectorTerms
-
setNodeSelectorTerms
-
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 V1NodeSelector
-
fromJson
Create an instance of V1NodeSelector given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1NodeSelector
- Throws:
IOException
- if the JSON string is invalid with respect to V1NodeSelector
-
toJson
Convert an instance of V1NodeSelector to an JSON string- Returns:
- JSON string
-