Class V1beta2DeviceTaintRuleSpec

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-06-26T22:35:15.319369Z[Etc/UTC]", comments="Generator version: 7.18.0") public class V1beta2DeviceTaintRuleSpec extends Object
DeviceTaintRuleSpec specifies the selector and one taint.
  • Field Details

  • Constructor Details

    • V1beta2DeviceTaintRuleSpec

      public V1beta2DeviceTaintRuleSpec()
  • Method Details

    • deviceSelector

      public V1beta2DeviceTaintRuleSpec deviceSelector(@Nullable V1beta2DeviceTaintSelector deviceSelector)
    • getDeviceSelector

      @Nullable public V1beta2DeviceTaintSelector getDeviceSelector()
      Get deviceSelector
      Returns:
      deviceSelector
    • setDeviceSelector

      public void setDeviceSelector(@Nullable V1beta2DeviceTaintSelector deviceSelector)
    • taint

      public V1beta2DeviceTaintRuleSpec taint(@Nonnull V1beta2DeviceTaint taint)
    • getTaint

      @Nonnull public V1beta2DeviceTaint getTaint()
      Get taint
      Returns:
      taint
    • setTaint

      public void setTaint(@Nonnull V1beta2DeviceTaint taint)
    • 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 V1beta2DeviceTaintRuleSpec
    • fromJson

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

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