Package kubevirt.io
Class V1PodAffinityTerm
- java.lang.Object
-
- kubevirt.io.V1PodAffinityTerm
-
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2019-11-10T14:44:51.030+02:00") public class V1PodAffinityTerm extends java.lang.ObjectDefines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
-
-
Constructor Summary
Constructors Constructor Description V1PodAffinityTerm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V1PodAffinityTermaddNamespacesItem(java.lang.String namespacesItem)booleanequals(java.lang.Object o)V1LabelSelectorgetLabelSelector()A label query over a set of resources, in this case pods.java.util.List<java.lang.String>getNamespaces()namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"java.lang.StringgetTopologyKey()This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running.inthashCode()V1PodAffinityTermlabelSelector(V1LabelSelector labelSelector)V1PodAffinityTermnamespaces(java.util.List<java.lang.String> namespaces)voidsetLabelSelector(V1LabelSelector labelSelector)voidsetNamespaces(java.util.List<java.lang.String> namespaces)voidsetTopologyKey(java.lang.String topologyKey)V1PodAffinityTermtopologyKey(java.lang.String topologyKey)java.lang.StringtoString()
-
-
-
Method Detail
-
labelSelector
public V1PodAffinityTerm labelSelector(V1LabelSelector labelSelector)
-
getLabelSelector
public V1LabelSelector getLabelSelector()
A label query over a set of resources, in this case pods.- Returns:
- labelSelector
-
setLabelSelector
public void setLabelSelector(V1LabelSelector labelSelector)
-
namespaces
public V1PodAffinityTerm namespaces(java.util.List<java.lang.String> namespaces)
-
addNamespacesItem
public V1PodAffinityTerm addNamespacesItem(java.lang.String namespacesItem)
-
getNamespaces
public java.util.List<java.lang.String> getNamespaces()
namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"- Returns:
- namespaces
-
setNamespaces
public void setNamespaces(java.util.List<java.lang.String> namespaces)
-
topologyKey
public V1PodAffinityTerm topologyKey(java.lang.String topologyKey)
-
getTopologyKey
public java.lang.String getTopologyKey()
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.- Returns:
- topologyKey
-
setTopologyKey
public void setTopologyKey(java.lang.String topologyKey)
-
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
-
-