Class V1alpha3DeviceTaintSelector

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1alpha3DeviceTaintSelector

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") 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

    • getDevice

      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:
      the device property value
    • setDevice

      public void setDevice(String device)
      Set the device property value
      Parameters:
      device - property value to set
    • device

      public V1alpha3DeviceTaintSelector device(String device)
      Set device in a chainable fashion.
      Returns:
      The same instance of V1alpha3DeviceTaintSelector for chaining.
    • getDriver

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

      public void setDriver(String driver)
      Set the driver property value
      Parameters:
      driver - property value to set
    • driver

      public V1alpha3DeviceTaintSelector driver(String driver)
      Set driver in a chainable fashion.
      Returns:
      The same instance of V1alpha3DeviceTaintSelector for chaining.
    • getPool

      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:
      the pool property value
    • setPool

      public void setPool(String pool)
      Set the pool property value
      Parameters:
      pool - property value to set
    • pool

      public V1alpha3DeviceTaintSelector pool(String pool)
      Set pool in a chainable fashion.
      Returns:
      The same instance of V1alpha3DeviceTaintSelector for chaining.
    • 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