Class V1beta1DeviceTaint
java.lang.Object
io.kubernetes.client.openapi.models.V1beta1DeviceTaint
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-05-20T20:47:13.890592Z[Etc/UTC]",
comments="Generator version: 7.13.0")
public class V1beta1DeviceTaint
extends Object
The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1beta1DeviceTaint
Create an instance of V1beta1DeviceTaint given an JSON stringThe effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them.getKey()
The taint key to be applied to a device.TimeAdded represents the time at which the taint was added.getValue()
The taint value corresponding to the taint key.int
hashCode()
void
void
void
setTimeAdded
(OffsetDateTime timeAdded) void
timeAdded
(OffsetDateTime timeAdded) toJson()
Convert an instance of V1beta1DeviceTaint 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_EFFECT
- See Also:
-
SERIALIZED_NAME_KEY
- See Also:
-
SERIALIZED_NAME_TIME_ADDED
- See Also:
-
SERIALIZED_NAME_VALUE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1beta1DeviceTaint
public V1beta1DeviceTaint()
-
-
Method Details
-
effect
-
getEffect
The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.- Returns:
- effect
-
setEffect
-
key
-
getKey
The taint key to be applied to a device. Must be a label name.- Returns:
- key
-
setKey
-
timeAdded
-
getTimeAdded
TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.- Returns:
- timeAdded
-
setTimeAdded
-
value
-
getValue
The taint value corresponding to the taint key. Must be a label value.- Returns:
- value
-
setValue
-
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 V1beta1DeviceTaint
-
fromJson
Create an instance of V1beta1DeviceTaint given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1beta1DeviceTaint
- Throws:
IOException
- if the JSON string is invalid with respect to V1beta1DeviceTaint
-
toJson
Convert an instance of V1beta1DeviceTaint to an JSON string- Returns:
- JSON string
-