Package org.cdk8s.plus24.k8s
Class PodAffinityTerm.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.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.plus24.k8s.PodAffinityTerm
PodAffinityTerm.Builder, PodAffinityTerm.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(PodAffinityTerm.Builder builder)
Constructor that initializes the object based on literal property values passed by thePodAffinityTerm.Builder
.protected
Jsii$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()
boolean
equals(Object o)
LabelSelector
getLabelSelector()
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.LabelSelector
getNamespaceSelector()
A label query over the set of namespaces that the term applies to.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()
-
-
-
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:PodAffinityTerm
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.
- Specified by:
getTopologyKey
in interfacePodAffinityTerm
-
getLabelSelector
public final LabelSelector getLabelSelector()
Description copied from interface:PodAffinityTerm
A label query over a set of resources, in this case pods.- Specified by:
getLabelSelector
in interfacePodAffinityTerm
-
getNamespaces
public final List<String> getNamespaces()
Description copied from interface:PodAffinityTerm
namespaces 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:
getNamespaces
in interfacePodAffinityTerm
-
getNamespaceSelector
public final LabelSelector getNamespaceSelector()
Description copied from interface:PodAffinityTerm
A 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:
getNamespaceSelector
in interfacePodAffinityTerm
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-