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 java.lang.ObjectThe weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
-
-
Field Summary
Fields Modifier and Type Field Description private V1PodAffinityTermpodAffinityTermprivate java.lang.Integerweight
-
Constructor Summary
Constructors Constructor Description V1WeightedPodAffinityTerm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)V1PodAffinityTermgetPodAffinityTerm()Required.java.lang.IntegergetWeight()weight associated with matching the corresponding podAffinityTerm, in the range 1-100.inthashCode()V1WeightedPodAffinityTermpodAffinityTerm(V1PodAffinityTerm podAffinityTerm)voidsetPodAffinityTerm(V1PodAffinityTerm podAffinityTerm)voidsetWeight(java.lang.Integer weight)private java.lang.StringtoIndentedString(java.lang.Object o)Convert the given object to string with each line indented by 4 spaces (except the first line).java.lang.StringtoString()V1WeightedPodAffinityTermweight(java.lang.Integer weight)
-
-
-
Field Detail
-
podAffinityTerm
private V1PodAffinityTerm podAffinityTerm
-
weight
private java.lang.Integer weight
-
-
Method Detail
-
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(java.lang.Integer weight)
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.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).
-
-