Class V1Taint

java.lang.Object
io.kubernetes.client.openapi.models.V1Taint

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-10-04T19:37:38.574271Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1Taint extends Object
The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.
  • Field Details

  • Constructor Details

    • V1Taint

      public V1Taint()
  • Method Details

    • effect

      public V1Taint effect(String effect)
    • getEffect

      @Nonnull public String getEffect()
      Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
      Returns:
      effect
    • setEffect

      public void setEffect(String effect)
    • key

      public V1Taint key(String key)
    • getKey

      @Nonnull public String getKey()
      Required. The taint key to be applied to a node.
      Returns:
      key
    • setKey

      public void setKey(String key)
    • timeAdded

      public V1Taint timeAdded(OffsetDateTime timeAdded)
    • getTimeAdded

      @Nullable public OffsetDateTime getTimeAdded()
      TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.
      Returns:
      timeAdded
    • setTimeAdded

      public void setTimeAdded(OffsetDateTime timeAdded)
    • value

      public V1Taint value(String value)
    • getValue

      @Nullable public String getValue()
      The taint value corresponding to the taint key.
      Returns:
      value
    • setValue

      public void setValue(String value)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to V1Taint
    • fromJson

      public static V1Taint fromJson(String jsonString) throws IOException
      Create an instance of V1Taint given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1Taint
      Throws:
      IOException - if the JSON string is invalid with respect to V1Taint
    • toJson

      public String toJson()
      Convert an instance of V1Taint to an JSON string
      Returns:
      JSON string