Package kubevirt.io
Class V1Affinity
java.lang.Object
kubevirt.io.V1Affinity
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
date="2019-11-10T14:44:51.030+02:00")
public class V1Affinity
extends Object
Affinity is a group of affinity scheduling rules.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate V1NodeAffinityprivate V1PodAffinityprivate V1PodAntiAffinity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDescribes node affinity scheduling rules for the pod.Describes pod affinity scheduling rules (e.g.Describes pod anti-affinity scheduling rules (e.g.inthashCode()nodeAffinity(V1NodeAffinity nodeAffinity) podAffinity(V1PodAffinity podAffinity) podAntiAffinity(V1PodAntiAffinity podAntiAffinity) voidsetNodeAffinity(V1NodeAffinity nodeAffinity) voidsetPodAffinity(V1PodAffinity podAffinity) voidsetPodAntiAffinity(V1PodAntiAffinity podAntiAffinity) private StringConvert the given object to string with each line indented by 4 spaces (except the first line).toString()
-
Field Details
-
nodeAffinity
-
podAffinity
-
podAntiAffinity
-
-
Constructor Details
-
V1Affinity
public V1Affinity()
-
-
Method Details
-
nodeAffinity
-
getNodeAffinity
Describes node affinity scheduling rules for the pod.- Returns:
- nodeAffinity
-
setNodeAffinity
-
podAffinity
-
getPodAffinity
Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).- Returns:
- podAffinity
-
setPodAffinity
-
podAntiAffinity
-
getPodAntiAffinity
Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).- Returns:
- podAntiAffinity
-
setPodAntiAffinity
-
equals
-
hashCode
public int hashCode() -
toString
-
toIndentedString
Convert the given object to string with each line indented by 4 spaces (except the first line).
-