Class V1NodeSelectorRequirement
java.lang.Object
io.kubernetes.client.openapi.models.V1NodeSelectorRequirement
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1NodeSelectorRequirement
extends Object
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValuesItem
(String valuesItem) boolean
static V1NodeSelectorRequirement
Create an instance of V1NodeSelectorRequirement given an JSON stringgetKey()
The label key that the selector applies to.Represents a key's relationship to a set of values.An array of string values.int
hashCode()
void
void
setOperator
(String operator) void
toJson()
Convert an instance of V1NodeSelectorRequirement 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_KEY
- See Also:
-
SERIALIZED_NAME_OPERATOR
- See Also:
-
SERIALIZED_NAME_VALUES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1NodeSelectorRequirement
public V1NodeSelectorRequirement()
-
-
Method Details
-
key
-
getKey
The label key that the selector applies to.- Returns:
- key
-
setKey
-
operator
-
getOperator
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.- Returns:
- operator
-
setOperator
-
values
-
addValuesItem
-
getValues
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.- Returns:
- values
-
setValues
-
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 V1NodeSelectorRequirement
-
fromJson
Create an instance of V1NodeSelectorRequirement given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1NodeSelectorRequirement
- Throws:
IOException
- if the JSON string is invalid with respect to V1NodeSelectorRequirement
-
toJson
Convert an instance of V1NodeSelectorRequirement to an JSON string- Returns:
- JSON string
-