Class V1ScopedResourceSelectorRequirement
java.lang.Object
io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-05-20T20:47:13.890592Z[Etc/UTC]",
comments="Generator version: 7.13.0")
public class V1ScopedResourceSelectorRequirement
extends Object
A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValuesItem(String valuesItem) booleanCreate an instance of V1ScopedResourceSelectorRequirement given an JSON stringRepresents a scope's relationship to a set of values.The name of the scope that the selector applies to.An array of string values.inthashCode()voidsetOperator(String operator) voidsetScopeName(String scopeName) voidtoJson()Convert an instance of V1ScopedResourceSelectorRequirement 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_OPERATOR
- See Also:
-
SERIALIZED_NAME_SCOPE_NAME
- See Also:
-
SERIALIZED_NAME_VALUES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ScopedResourceSelectorRequirement
public V1ScopedResourceSelectorRequirement()
-
-
Method Details
-
operator
-
getOperator
Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.- Returns:
- operator
-
setOperator
-
scopeName
-
getScopeName
The name of the scope that the selector applies to.- Returns:
- scopeName
-
setScopeName
-
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. This array is replaced during a strategic merge patch.- 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 V1ScopedResourceSelectorRequirement
-
fromJson
Create an instance of V1ScopedResourceSelectorRequirement given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1ScopedResourceSelectorRequirement
- Throws:
IOException- if the JSON string is invalid with respect to V1ScopedResourceSelectorRequirement
-
toJson
Convert an instance of V1ScopedResourceSelectorRequirement to an JSON string- Returns:
- JSON string
-