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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1Affinity extends Object
Affinity is a group of affinity scheduling rules.
  • Field Details

  • Constructor Details

    • V1Affinity

      public V1Affinity()
  • Method Details

    • getNodeAffinity

      public V1NodeAffinity getNodeAffinity()
      Returns:
      the nodeAffinity property value
    • setNodeAffinity

      public void setNodeAffinity(V1NodeAffinity nodeAffinity)
      Set the nodeAffinity property value
    • nodeAffinity

      public V1Affinity nodeAffinity(V1NodeAffinity nodeAffinity)
      Set nodeAffinity in a chainable fashion.
      Returns:
      The same instance of V1Affinity for chaining.
    • getPodAffinity

      public V1PodAffinity getPodAffinity()
      Returns:
      the podAffinity property value
    • setPodAffinity

      public void setPodAffinity(V1PodAffinity podAffinity)
      Set the podAffinity property value
    • podAffinity

      public V1Affinity podAffinity(V1PodAffinity podAffinity)
      Set podAffinity in a chainable fashion.
      Returns:
      The same instance of V1Affinity for chaining.
    • getPodAntiAffinity

      public V1PodAntiAffinity getPodAntiAffinity()
      Returns:
      the podAntiAffinity property value
    • setPodAntiAffinity

      public void setPodAntiAffinity(V1PodAntiAffinity podAntiAffinity)
      Set the podAntiAffinity property value
    • podAntiAffinity

      public V1Affinity podAntiAffinity(V1PodAntiAffinity podAntiAffinity)
      Set podAntiAffinity in a chainable fashion.
      Returns:
      The same instance of V1Affinity 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