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.
    • getDeviceClassName

      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:
      the deviceClassName property value
    • setDeviceClassName

      public void setDeviceClassName(String deviceClassName)
      Set the deviceClassName property value
      Parameters:
      deviceClassName - property value to set
    • deviceClassName

      public V1alpha3DeviceTaintSelector deviceClassName(String deviceClassName)
      Set deviceClassName 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.
    • getSelectors

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

      public void setSelectors(List<@Valid V1alpha3DeviceSelector> selectors)
      Set the selectors property value
      Parameters:
      selectors - property value to set
    • selectors

      public V1alpha3DeviceTaintSelector selectors(List<@Valid V1alpha3DeviceSelector> selectors)
      Set selectors in a chainable fashion.
      Returns:
      The same instance of V1alpha3DeviceTaintSelector for chaining.
    • addSelectorsItem

      public V1alpha3DeviceTaintSelector addSelectorsItem(V1alpha3DeviceSelector selectorsItem)
      Add an item to the selectors property 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