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 TypeMethodDescriptionSet device in a chainable fashion.Set driver in a chainable fashion.booleanIf device is set, only devices with that name are selected.If driver is set, only devices from that driver are selected.getPool()If pool is set, only devices in that pool are selected.inthashCode()Set pool in a chainable fashion.voidSet the device property valuevoidSet the driver property valuevoidSet the pool property valuetoString()
-
Field Details
-
JSON_PROPERTY_DEVICE
- See Also:
-
JSON_PROPERTY_DRIVER
- See Also:
-
JSON_PROPERTY_POOL
- 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.
-
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.
-
equals
-
hashCode
-
toString
-