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 Details

  • Constructor Details

    • V1LabelSelector

      public V1LabelSelector()
  • Method Details

    • getMatchExpressions

      public List<@Valid V1LabelSelectorRequirement> getMatchExpressions()
      matchExpressions is a list of label selector requirements. The requirements are ANDed.
      Returns:
      the matchExpressions property value
    • setMatchExpressions

      public void setMatchExpressions(List<@Valid V1LabelSelectorRequirement> matchExpressions)
      Set the matchExpressions property value
    • matchExpressions

      public V1LabelSelector matchExpressions(List<@Valid V1LabelSelectorRequirement> matchExpressions)
      Set matchExpressions in a chainable fashion.
      Returns:
      The same instance of V1LabelSelector for chaining.
    • addmatchExpressionsItem

      public V1LabelSelector addmatchExpressionsItem(V1LabelSelectorRequirement matchExpressionsItem)
      Add an item to the matchExpressions property in a chainable fashion.
      Returns:
      The same instance of V1LabelSelector for chaining.
    • getMatchLabels

      public Map<String,String> 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

      public void setMatchLabels(Map<String,String> matchLabels)
      Set the matchLabels property value
    • matchLabels

      public V1LabelSelector matchLabels(Map<String,String> matchLabels)
      Set matchLabels in a chainable fashion.
      Returns:
      The same instance of V1LabelSelector for chaining.
    • putmatchLabelsItem

      public V1LabelSelector putmatchLabelsItem(String key, String matchLabelsItem)
      Set the value for the key for the matchLabels map property in a chainable fashion.
      Returns:
      The same instance of V1LabelSelector for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object