Class V1alpha3DeviceTaintSelector

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-01-21T21:30:13.305152Z[Etc/UTC]", comments="Generator version: 7.18.0") public class V1alpha3DeviceTaintSelector extends Object
DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched.
  • Field Details

  • Constructor Details

    • V1alpha3DeviceTaintSelector

      public V1alpha3DeviceTaintSelector()
  • Method Details

    • device

      public V1alpha3DeviceTaintSelector device(@Nullable String device)
    • getDevice

      @Nullable public String getDevice()
      If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. Setting also driver and pool may be required to avoid ambiguity, but is not required.
      Returns:
      device
    • setDevice

      public void setDevice(@Nullable String device)
    • driver

      public V1alpha3DeviceTaintSelector driver(@Nullable String driver)
    • getDriver

      @Nullable public String getDriver()
      If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver.
      Returns:
      driver
    • setDriver

      public void setDriver(@Nullable String driver)
    • pool

      public V1alpha3DeviceTaintSelector pool(@Nullable String pool)
    • getPool

      @Nullable public String getPool()
      If pool is set, only devices in that pool are selected. Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name.
      Returns:
      pool
    • setPool

      public void setPool(@Nullable String pool)
    • 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 V1alpha3DeviceTaintSelector
    • fromJson

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

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