Class V1beta2DeviceTaintRuleSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1beta2DeviceTaintRuleSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-06-26T22:35:15.319369Z[Etc/UTC]",
comments="Generator version: 7.18.0")
public class V1beta2DeviceTaintRuleSpec
extends Object
DeviceTaintRuleSpec specifies the selector and one taint.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeviceSelector(V1beta2DeviceTaintSelector deviceSelector) booleanstatic V1beta2DeviceTaintRuleSpecCreate an instance of V1beta2DeviceTaintRuleSpec given an JSON stringGet deviceSelectorgetTaint()Get taintinthashCode()voidsetDeviceSelector(V1beta2DeviceTaintSelector deviceSelector) voidsetTaint(V1beta2DeviceTaint taint) taint(V1beta2DeviceTaint taint) toJson()Convert an instance of V1beta2DeviceTaintRuleSpec to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_DEVICE_SELECTOR
- See Also:
-
SERIALIZED_NAME_TAINT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1beta2DeviceTaintRuleSpec
public V1beta2DeviceTaintRuleSpec()
-
-
Method Details
-
deviceSelector
public V1beta2DeviceTaintRuleSpec deviceSelector(@Nullable V1beta2DeviceTaintSelector deviceSelector) -
getDeviceSelector
Get deviceSelector- Returns:
- deviceSelector
-
setDeviceSelector
-
taint
-
getTaint
Get taint- Returns:
- taint
-
setTaint
-
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 V1beta2DeviceTaintRuleSpec
-
fromJson
Create an instance of V1beta2DeviceTaintRuleSpec given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1beta2DeviceTaintRuleSpec
- Throws:
IOException- if the JSON string is invalid with respect to V1beta2DeviceTaintRuleSpec
-
toJson
Convert an instance of V1beta2DeviceTaintRuleSpec to an JSON string- Returns:
- JSON string
-