Package kubevirt.io

Class V1WeightedPodAffinityTerm

java.lang.Object
kubevirt.io.V1WeightedPodAffinityTerm

@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2019-11-10T14:44:51.030+02:00") 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

    • V1WeightedPodAffinityTerm

      public V1WeightedPodAffinityTerm()
  • Method Details

    • podAffinityTerm

      public V1WeightedPodAffinityTerm podAffinityTerm(V1PodAffinityTerm podAffinityTerm)
    • getPodAffinityTerm

      public V1PodAffinityTerm getPodAffinityTerm()
      Required. A pod affinity term, associated with the corresponding weight.
      Returns:
      podAffinityTerm
    • setPodAffinityTerm

      public void setPodAffinityTerm(V1PodAffinityTerm podAffinityTerm)
    • weight

      public V1WeightedPodAffinityTerm weight(Integer weight)
    • getWeight

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

      public void setWeight(Integer weight)
    • 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
    • toIndentedString

      private String toIndentedString(Object o)
      Convert the given object to string with each line indented by 4 spaces (except the first line).