Package org.cdk8s.plus25.k8s
Class PodAffinityTerm.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus25.k8s.PodAffinityTerm.Jsii$Proxy
-
- All Implemented Interfaces:
PodAffinityTerm,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- PodAffinityTerm
@Stability(Stable) @Internal public static final class PodAffinityTerm.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements PodAffinityTerm
An implementation forPodAffinityTerm
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus25.k8s.PodAffinityTerm
PodAffinityTerm.Builder, PodAffinityTerm.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(PodAffinityTerm.Builder builder)Constructor that initializes the object based on literal property values passed by thePodAffinityTerm.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)LabelSelectorgetLabelSelector()A label query over a set of resources, in this case pods.List<String>getNamespaces()namespaces specifies a static list of namespace names that the term applies to.LabelSelectorgetNamespaceSelector()A label query over the set of namespaces that the term applies to.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()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(PodAffinityTerm.Builder builder)
Constructor that initializes the object based on literal property values passed by thePodAffinityTerm.Builder.
-
-
Method Detail
-
getTopologyKey
public final String getTopologyKey()
Description copied from interface:PodAffinityTermThis 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.
- Specified by:
getTopologyKeyin interfacePodAffinityTerm
-
getLabelSelector
public final LabelSelector getLabelSelector()
Description copied from interface:PodAffinityTermA label query over a set of resources, in this case pods.- Specified by:
getLabelSelectorin interfacePodAffinityTerm
-
getNamespaces
public final List<String> getNamespaces()
Description copied from interface:PodAffinityTermnamespaces specifies a static list of namespace names that the term applies to.The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
- Specified by:
getNamespacesin interfacePodAffinityTerm
-
getNamespaceSelector
public final LabelSelector getNamespaceSelector()
Description copied from interface:PodAffinityTermA label query over the set of namespaces that the term applies to.The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces.
- Specified by:
getNamespaceSelectorin interfacePodAffinityTerm
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-