Class V1LabelSelectorRequirement
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1LabelSelectorRequirement
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
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) Add an item to the values property in a chainable fashion.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()
Set key in a chainable fashion.Set operator in a chainable fashion.void
Set the key property valuevoid
setOperator
(String operator) Set the operator property valuevoid
Set the values property valuetoString()
Set values in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_KEY
- See Also:
-
JSON_PROPERTY_OPERATOR
- See Also:
-
JSON_PROPERTY_VALUES
- See Also:
-
-
Constructor Details
-
V1LabelSelectorRequirement
-
-
Method Details
-
getKey
key is the label key that the selector applies to.- Returns:
- the key property value
-
setKey
Set the key property value- Parameters:
key
- property value to set
-
key
Set key in a chainable fashion.- Returns:
- The same instance of V1LabelSelectorRequirement for chaining.
-
getOperator
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.- Returns:
- the operator property value
-
setOperator
Set the operator property value- Parameters:
operator
- property value to set
-
operator
Set operator in a chainable fashion.- Returns:
- The same instance of V1LabelSelectorRequirement for chaining.
-
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:
- the values property value
-
setValues
Set the values property value- Parameters:
values
- property value to set
-
values
Set values in a chainable fashion.- Returns:
- The same instance of V1LabelSelectorRequirement for chaining.
-
addvaluesItem
Add an item to the values property in a chainable fashion.- Returns:
- The same instance of V1LabelSelectorRequirement for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-