@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2021-09-20T22:55:54.394Z[Etc/UTC]") public class V1PodAffinityTerm extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZED_NAME_LABEL_SELECTOR |
static String |
SERIALIZED_NAME_NAMESPACE_SELECTOR |
static String |
SERIALIZED_NAME_NAMESPACES |
static String |
SERIALIZED_NAME_TOPOLOGY_KEY |
Constructor and Description |
---|
V1PodAffinityTerm() |
Modifier and Type | Method and Description |
---|---|
V1PodAffinityTerm |
addNamespacesItem(String namespacesItem) |
boolean |
equals(Object o) |
V1LabelSelector |
getLabelSelector()
Get labelSelector
|
List<String> |
getNamespaces()
namespaces specifies a static list of namespace names that the term applies to.
|
V1LabelSelector |
getNamespaceSelector()
Get namespaceSelector
|
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.
|
int |
hashCode() |
V1PodAffinityTerm |
labelSelector(V1LabelSelector labelSelector) |
V1PodAffinityTerm |
namespaces(List<String> namespaces) |
V1PodAffinityTerm |
namespaceSelector(V1LabelSelector namespaceSelector) |
void |
setLabelSelector(V1LabelSelector labelSelector) |
void |
setNamespaces(List<String> namespaces) |
void |
setNamespaceSelector(V1LabelSelector namespaceSelector) |
void |
setTopologyKey(String topologyKey) |
V1PodAffinityTerm |
topologyKey(String topologyKey) |
String |
toString() |
public static final String SERIALIZED_NAME_LABEL_SELECTOR
public static final String SERIALIZED_NAME_NAMESPACE_SELECTOR
public static final String SERIALIZED_NAME_NAMESPACES
public static final String SERIALIZED_NAME_TOPOLOGY_KEY
public V1PodAffinityTerm labelSelector(V1LabelSelector labelSelector)
@Nullable public V1LabelSelector getLabelSelector()
public void setLabelSelector(V1LabelSelector labelSelector)
public V1PodAffinityTerm namespaceSelector(V1LabelSelector namespaceSelector)
@Nullable public V1LabelSelector getNamespaceSelector()
public void setNamespaceSelector(V1LabelSelector namespaceSelector)
public V1PodAffinityTerm namespaces(List<String> namespaces)
public V1PodAffinityTerm addNamespacesItem(String namespacesItem)
@Nullable public List<String> getNamespaces()
public V1PodAffinityTerm topologyKey(String topologyKey)
public String getTopologyKey()
public void setTopologyKey(String topologyKey)
Copyright © 2021. All rights reserved.