Class V1WeightedPodAffinityTerm

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1WeightedPodAffinityTerm extends Object
The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
  • Field Details

  • Constructor Details

  • Method Details

    • getPodAffinityTerm

      public V1PodAffinityTerm getPodAffinityTerm()
      Returns:
      the podAffinityTerm property value
    • setPodAffinityTerm

      public void setPodAffinityTerm(V1PodAffinityTerm podAffinityTerm)
      Set the podAffinityTerm property value
    • podAffinityTerm

      public V1WeightedPodAffinityTerm podAffinityTerm(V1PodAffinityTerm podAffinityTerm)
      Set podAffinityTerm in a chainable fashion.
      Returns:
      The same instance of V1WeightedPodAffinityTerm for chaining.
    • getWeight

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

      public void setWeight(Integer weight)
      Set the weight property value
    • weight

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