Class V1ScopedResourceSelectorRequirement

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ScopedResourceSelectorRequirement

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1ScopedResourceSelectorRequirement extends Object
A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.
  • Field Details

  • Constructor Details

    • V1ScopedResourceSelectorRequirement

      public V1ScopedResourceSelectorRequirement(String operator, String scopeName)
  • Method Details

    • getOperator

      public String getOperator()
      Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.
      Returns:
      the operator property value
    • setOperator

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

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

      public String getScopeName()
      The name of the scope that the selector applies to.
      Returns:
      the scopeName property value
    • setScopeName

      public void setScopeName(String scopeName)
      Set the scopeName property value
    • scopeName

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

      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. 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

      Set values in a chainable fashion.
      Returns:
      The same instance of V1ScopedResourceSelectorRequirement for chaining.
    • addvaluesItem

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