Class V1PreferredSchedulingTerm

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1PreferredSchedulingTerm extends Object
An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
  • Field Details

  • Constructor Details

  • Method Details

    • getPreference

      public V1NodeSelectorTerm getPreference()
      Returns:
      the preference property value
    • setPreference

      public void setPreference(V1NodeSelectorTerm preference)
      Set the preference property value
      Parameters:
      preference - property value to set
    • preference

      public V1PreferredSchedulingTerm preference(V1NodeSelectorTerm preference)
      Set preference in a chainable fashion.
      Returns:
      The same instance of V1PreferredSchedulingTerm for chaining.
    • getWeight

      public Integer getWeight()
      Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
      Returns:
      the weight property value
    • setWeight

      public void setWeight(Integer weight)
      Set the weight property value
      Parameters:
      weight - property value to set
    • weight

      public V1PreferredSchedulingTerm weight(Integer weight)
      Set weight in a chainable fashion.
      Returns:
      The same instance of V1PreferredSchedulingTerm 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