Class V1NodeSelectorRequirement

java.lang.Object
io.kubernetes.client.openapi.models.V1NodeSelectorRequirement

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-18T15:05:57.863601Z[Etc/UTC]") public class V1NodeSelectorRequirement extends Object
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
  • Field Details

  • Constructor Details

    • V1NodeSelectorRequirement

      public V1NodeSelectorRequirement()
  • Method Details

    • key

    • getKey

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

      public void setKey(String key)
    • operator

      public V1NodeSelectorRequirement operator(String operator)
    • getOperator

      public String getOperator()
      Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
      Returns:
      operator
    • setOperator

      public void setOperator(String operator)
    • values

      public V1NodeSelectorRequirement values(List<String> values)
    • addValuesItem

      public V1NodeSelectorRequirement addValuesItem(String valuesItem)
    • getValues

      @Nullable public List<String> getValues()
      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. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
      Returns:
      values
    • setValues

      public void setValues(List<String> values)
    • 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