Class V1FieldSelectorRequirement
java.lang.Object
io.kubernetes.client.openapi.models.V1FieldSelectorRequirement
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1FieldSelectorRequirement
extends Object
FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValuesItem(String valuesItem) booleanstatic V1FieldSelectorRequirementCreate an instance of V1FieldSelectorRequirement given an JSON stringgetKey()key is the field selector key that the requirement applies to.operator represents a key's relationship to a set of values.values is an array of string values.inthashCode()voidvoidsetOperator(String operator) voidtoJson()Convert an instance of V1FieldSelectorRequirement 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_KEY
- See Also:
-
SERIALIZED_NAME_OPERATOR
- See Also:
-
SERIALIZED_NAME_VALUES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1FieldSelectorRequirement
public V1FieldSelectorRequirement()
-
-
Method Details
-
key
-
getKey
key is the field selector key that the requirement applies to.- Returns:
- key
-
setKey
-
operator
-
getOperator
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.- Returns:
- operator
-
setOperator
-
values
-
addValuesItem
-
getValues
values is 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.- Returns:
- values
-
setValues
-
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 V1FieldSelectorRequirement
-
fromJson
Create an instance of V1FieldSelectorRequirement given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1FieldSelectorRequirement
- Throws:
IOException- if the JSON string is invalid with respect to V1FieldSelectorRequirement
-
toJson
Convert an instance of V1FieldSelectorRequirement to an JSON string- Returns:
- JSON string
-