Class V1alpha3DeviceTaintSelector
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha3DeviceTaintSelector
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-05-20T20:47:13.890592Z[Etc/UTC]",
comments="Generator version: 7.13.0")
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSelectorsItem
(V1alpha3DeviceSelector selectorsItem) deviceClassName
(String deviceClassName) boolean
static V1alpha3DeviceTaintSelector
Create an instance of V1alpha3DeviceTaintSelector given an JSON stringIf 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.Selectors contains the same selection criteria as a ResourceClaim.int
hashCode()
selectors
(List<V1alpha3DeviceSelector> selectors) void
void
setDeviceClassName
(String deviceClassName) void
void
void
setSelectors
(List<V1alpha3DeviceSelector> selectors) toJson()
Convert an instance of V1alpha3DeviceTaintSelector to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_DEVICE
- See Also:
-
SERIALIZED_NAME_DEVICE_CLASS_NAME
- See Also:
-
SERIALIZED_NAME_DRIVER
- See Also:
-
SERIALIZED_NAME_POOL
- See Also:
-
SERIALIZED_NAME_SELECTORS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha3DeviceTaintSelector
public V1alpha3DeviceTaintSelector()
-
-
Method Details
-
device
-
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:
- device
-
setDevice
-
deviceClassName
-
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:
- deviceClassName
-
setDeviceClassName
-
driver
-
getDriver
If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver.- Returns:
- driver
-
setDriver
-
pool
-
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:
- pool
-
setPool
-
selectors
-
addSelectorsItem
-
getSelectors
Selectors contains the same selection criteria as a ResourceClaim. Currently, CEL expressions are supported. All of these selectors must be satisfied.- Returns:
- selectors
-
setSelectors
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1alpha3DeviceTaintSelector
-
fromJson
Create an instance of V1alpha3DeviceTaintSelector given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha3DeviceTaintSelector
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha3DeviceTaintSelector
-
toJson
Convert an instance of V1alpha3DeviceTaintSelector to an JSON string- Returns:
- JSON string
-