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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSelectorsItem
(V1alpha3DeviceSelector selectorsItem) Add an item to the selectors property in a chainable fashion.Set device in a chainable fashion.deviceClassName
(String deviceClassName) Set deviceClassName in a chainable fashion.Set driver in a chainable fashion.boolean
If device is set, only devices with that name are selected.If DeviceClassName is set, the selectors defined there must be satisfied by a device to be selected.If driver is set, only devices from that driver are selected.getPool()
If pool is set, only devices in that pool are selected.List<@Valid V1alpha3DeviceSelector>
Selectors contains the same selection criteria as a ResourceClaim.int
hashCode()
Set pool in a chainable fashion.selectors
(List<@Valid V1alpha3DeviceSelector> selectors) Set selectors in a chainable fashion.void
Set the device property valuevoid
setDeviceClassName
(String deviceClassName) Set the deviceClassName property valuevoid
Set the driver property valuevoid
Set the pool property valuevoid
setSelectors
(List<@Valid V1alpha3DeviceSelector> selectors) Set the selectors property valuetoString()
-
Field Details
-
JSON_PROPERTY_DEVICE
- See Also:
-
JSON_PROPERTY_DEVICE_CLASS_NAME
- See Also:
-
JSON_PROPERTY_DRIVER
- See Also:
-
JSON_PROPERTY_POOL
- See Also:
-
JSON_PROPERTY_SELECTORS
- See Also:
-
-
Constructor Details
-
V1alpha3DeviceTaintSelector
public V1alpha3DeviceTaintSelector()
-
-
Method Details
-
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
Set the device property value- Parameters:
device
- property value to set
-
device
Set device in a chainable fashion.- Returns:
- The same instance of V1alpha3DeviceTaintSelector for chaining.
-
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
Set the deviceClassName property value- Parameters:
deviceClassName
- property value to set
-
deviceClassName
Set deviceClassName in a chainable fashion.- Returns:
- The same instance of V1alpha3DeviceTaintSelector for chaining.
-
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
Set the driver property value- Parameters:
driver
- property value to set
-
driver
Set driver in a chainable fashion.- Returns:
- The same instance of V1alpha3DeviceTaintSelector for chaining.
-
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
Set the pool property value- Parameters:
pool
- property value to set
-
pool
Set pool in a chainable fashion.- Returns:
- The same instance of V1alpha3DeviceTaintSelector for chaining.
-
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
Set the selectors property value- Parameters:
selectors
- property value to set
-
selectors
Set selectors in a chainable fashion.- Returns:
- The same instance of V1alpha3DeviceTaintSelector for chaining.
-
addSelectorsItem
Add an item to the selectors property in a chainable fashion.- Returns:
- The same instance of V1alpha3DeviceTaintSelector for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-