Class V1ScopedResourceSelectorRequirement
java.lang.Object
io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
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) boolean
Create 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.int
hashCode()
void
setOperator
(String operator) void
setScopeName
(String scopeName) void
toJson()
Convert an instance of V1ScopedResourceSelectorRequirement 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_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
-
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 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
-