Class V1LabelSelector
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1LabelSelector
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1LabelSelector
extends Object
A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddmatchExpressionsItem
(V1LabelSelectorRequirement matchExpressionsItem) Add an item to the matchExpressions property in a chainable fashion.boolean
List<@Valid V1LabelSelectorRequirement>
matchExpressions is a list of label selector requirements.matchLabels is a map of {key,value} pairs.int
hashCode()
matchExpressions
(List<@Valid V1LabelSelectorRequirement> matchExpressions) Set matchExpressions in a chainable fashion.matchLabels
(Map<String, String> matchLabels) Set matchLabels in a chainable fashion.putmatchLabelsItem
(String key, String matchLabelsItem) Set the value for the key for the matchLabels map property in a chainable fashion.void
setMatchExpressions
(List<@Valid V1LabelSelectorRequirement> matchExpressions) Set the matchExpressions property valuevoid
setMatchLabels
(Map<String, String> matchLabels) Set the matchLabels property valuetoString()
-
Field Details
-
JSON_PROPERTY_MATCH_EXPRESSIONS
- See Also:
-
JSON_PROPERTY_MATCH_LABELS
- See Also:
-
-
Constructor Details
-
V1LabelSelector
public V1LabelSelector()
-
-
Method Details
-
getMatchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed.- Returns:
- the matchExpressions property value
-
setMatchExpressions
Set the matchExpressions property value -
matchExpressions
Set matchExpressions in a chainable fashion.- Returns:
- The same instance of V1LabelSelector for chaining.
-
addmatchExpressionsItem
Add an item to the matchExpressions property in a chainable fashion.- Returns:
- The same instance of V1LabelSelector for chaining.
-
getMatchLabels
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.- Returns:
- the matchLabels property value
-
setMatchLabels
Set the matchLabels property value -
matchLabels
Set matchLabels in a chainable fashion.- Returns:
- The same instance of V1LabelSelector for chaining.
-
putmatchLabelsItem
Set the value for the key for the matchLabels map property in a chainable fashion.- Returns:
- The same instance of V1LabelSelector for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-