Package kubevirt.io

Class V1WeightedPodAffinityTerm


  • @Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
               date="2019-11-10T14:44:51.030+02:00")
    public class V1WeightedPodAffinityTerm
    extends java.lang.Object
    The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
    • Field Detail

      • weight

        private java.lang.Integer weight
    • Constructor Detail

      • V1WeightedPodAffinityTerm

        public V1WeightedPodAffinityTerm()
    • Method Detail

      • getPodAffinityTerm

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

        public void setPodAffinityTerm​(V1PodAffinityTerm podAffinityTerm)
      • getWeight

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

        public void setWeight​(java.lang.Integer weight)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toIndentedString

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