Class 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 for PodAffinityTerm
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Jsii$Proxy​(PodAffinityTerm.Builder builder)
      Constructor that initializes the object based on literal property values passed by the PodAffinityTerm.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()  
      • Methods inherited from class software.amazon.jsii.JsiiObject

        jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
    • 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.
    • 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 interface PodAffinityTerm
      • 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 interface PodAffinityTerm
      • 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 interface PodAffinityTerm
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object