Package kubevirt.io

Class V1PreferredSchedulingTerm


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

      • weight

        private java.lang.Integer weight
    • Constructor Detail

      • V1PreferredSchedulingTerm

        public V1PreferredSchedulingTerm()
    • Method Detail

      • getPreference

        public V1NodeSelectorTerm getPreference()
        A node selector term, associated with the corresponding weight.
        Returns:
        preference
      • getWeight

        public java.lang.Integer getWeight()
        Weight associated with matching the corresponding nodeSelectorTerm, 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).