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 Details

  • Constructor Details

    • V1LabelSelectorRequirement

      public V1LabelSelectorRequirement(String key, String operator)
  • Method Details

    • getKey

      public String getKey()
      key is the label key that the selector applies to.
      Returns:
      the key property value
    • setKey

      public void setKey(String key)
      Set the key property value
    • key

      Set key in a chainable fashion.
      Returns:
      The same instance of V1LabelSelectorRequirement for chaining.
    • getOperator

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

      public void setOperator(String operator)
      Set the operator property value
    • operator

      public V1LabelSelectorRequirement operator(String operator)
      Set operator in a chainable fashion.
      Returns:
      The same instance of V1LabelSelectorRequirement for chaining.
    • getValues

      public List<String> 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

      public void setValues(List<String> values)
      Set the values property value
    • values

      public V1LabelSelectorRequirement values(List<String> values)
      Set values in a chainable fashion.
      Returns:
      The same instance of V1LabelSelectorRequirement for chaining.
    • addvaluesItem

      public V1LabelSelectorRequirement addvaluesItem(String valuesItem)
      Add an item to the values property in a chainable fashion.
      Returns:
      The same instance of V1LabelSelectorRequirement 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