Class Toleration.Jsii$Proxy

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

    @Stability(Stable)
    @Internal
    public static final class Toleration.Jsii$Proxy
    extends software.amazon.jsii.JsiiObject
    implements Toleration
    An implementation for Toleration
    • Nested Class Summary

      • Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

        software.amazon.jsii.JsiiObject.InitializationMode
    • Constructor Summary

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

      • getEffect

        public final String getEffect()
        Description copied from interface: Toleration
        Effect indicates the taint effect to match.

        Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.

        Specified by:
        getEffect in interface Toleration
      • getKey

        public final String getKey()
        Description copied from interface: Toleration
        Key is the taint key that the toleration applies to.

        Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.

        Specified by:
        getKey in interface Toleration
      • getOperator

        public final String getOperator()
        Description copied from interface: Toleration
        Operator represents a key's relationship to the value.

        Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.

        Default: Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.

        Specified by:
        getOperator in interface Toleration
      • getTolerationSeconds

        public final Number getTolerationSeconds()
        Description copied from interface: Toleration
        TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint.

        By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.

        Specified by:
        getTolerationSeconds in interface Toleration
      • getValue

        public final String getValue()
        Description copied from interface: Toleration
        Value is the taint value the toleration matches to.

        If the operator is Exists, the value should be empty, otherwise just a regular string.

        Specified by:
        getValue in interface Toleration
      • $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