Class V1alpha3DeviceTaintSelector

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-20T20:47:13.890592Z[Etc/UTC]", comments="Generator version: 7.13.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)
    • deviceClassName

      public V1alpha3DeviceTaintSelector deviceClassName(@Nullable String deviceClassName)
    • getDeviceClassName

      @Nullable public String getDeviceClassName()
      If DeviceClassName is set, the selectors defined there must be satisfied by a device to be selected. This field corresponds to class.metadata.name.
      Returns:
      deviceClassName
    • setDeviceClassName

      public void setDeviceClassName(@Nullable String deviceClassName)
    • 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)
    • selectors

      public V1alpha3DeviceTaintSelector selectors(@Nullable List<V1alpha3DeviceSelector> selectors)
    • addSelectorsItem

      public V1alpha3DeviceTaintSelector addSelectorsItem(V1alpha3DeviceSelector selectorsItem)
    • getSelectors

      @Nullable public List<V1alpha3DeviceSelector> getSelectors()
      Selectors contains the same selection criteria as a ResourceClaim. Currently, CEL expressions are supported. All of these selectors must be satisfied.
      Returns:
      selectors
    • setSelectors

      public void setSelectors(@Nullable List<V1alpha3DeviceSelector> selectors)
    • 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