Class Taint

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class Taint
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Taint.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      Taint()  
      Taint​(@NonNull java.lang.String effect, @NonNull java.lang.String key, java.time.OffsetDateTime timeAdded, java.lang.String value)  
    • Constructor Detail

      • Taint

        public Taint​(@NonNull
                     @NonNull java.lang.String effect,
                     @NonNull
                     @NonNull java.lang.String key,
                     java.time.OffsetDateTime timeAdded,
                     java.lang.String value)
      • Taint

        public Taint()
    • Method Detail

      • getEffect

        @NonNull
        public @NonNull java.lang.String getEffect()
        Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
      • getKey

        @NonNull
        public @NonNull java.lang.String getKey()
        Required. The taint key to be applied to a node.
      • getTimeAdded

        public java.time.OffsetDateTime getTimeAdded()
      • getValue

        public java.lang.String getValue()
        The taint value corresponding to the taint key.
      • setEffect

        public void setEffect​(@NonNull
                              @NonNull java.lang.String effect)
        Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
      • setKey

        public void setKey​(@NonNull
                           @NonNull java.lang.String key)
        Required. The taint key to be applied to a node.
      • setTimeAdded

        public void setTimeAdded​(java.time.OffsetDateTime timeAdded)
      • setValue

        public void setValue​(java.lang.String value)
        The taint value corresponding to the taint key.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object