Class V1beta2DeviceClassSpec

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1beta2DeviceClassSpec extends Object
DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
  • Field Details

  • Constructor Details

    • V1beta2DeviceClassSpec

      public V1beta2DeviceClassSpec()
  • Method Details

    • getConfig

      public List<@Valid V1beta2DeviceClassConfiguration> getConfig()
      Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim.
      Returns:
      the config property value
    • setConfig

      public void setConfig(List<@Valid V1beta2DeviceClassConfiguration> config)
      Set the config property value
      Parameters:
      config - property value to set
    • config

      Set config in a chainable fashion.
      Returns:
      The same instance of V1beta2DeviceClassSpec for chaining.
    • addConfigItem

      public V1beta2DeviceClassSpec addConfigItem(V1beta2DeviceClassConfiguration configItem)
      Add an item to the config property in a chainable fashion.
      Returns:
      The same instance of V1beta2DeviceClassSpec for chaining.
    • getSelectors

      public List<@Valid V1beta2DeviceSelector> getSelectors()
      Each selector must be satisfied by a device which is claimed via this class.
      Returns:
      the selectors property value
    • setSelectors

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

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

      public V1beta2DeviceClassSpec addSelectorsItem(V1beta2DeviceSelector selectorsItem)
      Add an item to the selectors property in a chainable fashion.
      Returns:
      The same instance of V1beta2DeviceClassSpec 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