Class Affinity.Jsii$Proxy

  • All Implemented Interfaces:
    Affinity, software.amazon.jsii.JsiiSerializable
    Enclosing interface:
    Affinity

    @Stability(Stable)
    @Internal
    public static final class Affinity.Jsii$Proxy
    extends software.amazon.jsii.JsiiObject
    implements Affinity
    An implementation for Affinity
    • 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​(Affinity.Builder builder)
        Constructor that initializes the object based on literal property values passed by the Affinity.Builder.
    • Method Detail

      • getNodeAffinity

        public final NodeAffinity getNodeAffinity()
        Description copied from interface: Affinity
        Describes node affinity scheduling rules for the pod.
        Specified by:
        getNodeAffinity in interface Affinity
      • getPodAffinity

        public final PodAffinity getPodAffinity()
        Description copied from interface: Affinity
        Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
        Specified by:
        getPodAffinity in interface Affinity
      • getPodAntiAffinity

        public final PodAntiAffinity getPodAntiAffinity()
        Description copied from interface: Affinity
        Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
        Specified by:
        getPodAntiAffinity in interface Affinity
      • $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