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.Object
The 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 V1PodAffinityTerm
podAffinityTerm
private java.lang.Integer
weight
-
Constructor Summary
Constructors Constructor Description V1WeightedPodAffinityTerm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
V1PodAffinityTerm
getPodAffinityTerm()
Required.java.lang.Integer
getWeight()
weight associated with matching the corresponding podAffinityTerm, in the range 1-100.int
hashCode()
V1WeightedPodAffinityTerm
podAffinityTerm(V1PodAffinityTerm podAffinityTerm)
void
setPodAffinityTerm(V1PodAffinityTerm podAffinityTerm)
void
setWeight(java.lang.Integer weight)
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).java.lang.String
toString()
V1WeightedPodAffinityTerm
weight(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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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).
-
-