Class V1LabelSelectorRequirement
java.lang.Object
io.kubernetes.client.openapi.models.V1LabelSelectorRequirement
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-12-05T08:14:34.919Z[Etc/UTC]")
public class V1LabelSelectorRequirement
extends Object
A label selector requirement is a selector that contains values, a key, and an operator that
relates the key and values.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddValuesItem
(String valuesItem) boolean
getKey()
key is the label key that the selector applies to.operator represents a key's relationship to a set of values.values is an array of string values.int
hashCode()
void
void
setOperator
(String operator) void
toString()
-
Field Details
-
SERIALIZED_NAME_KEY
- See Also:
-
SERIALIZED_NAME_OPERATOR
- See Also:
-
SERIALIZED_NAME_VALUES
- See Also:
-
-
Constructor Details
-
V1LabelSelectorRequirement
public V1LabelSelectorRequirement()
-
-
Method Details
-
key
-
getKey
key is the label key that the selector applies to.- Returns:
- key
-
setKey
-
operator
-
getOperator
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.- 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. This array is replaced during a strategic merge patch.- Returns:
- values
-
setValues
-
equals
-
hashCode
public int hashCode() -
toString
-