Class V1Taint
java.lang.Object
io.kubernetes.client.openapi.models.V1Taint
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1Taint
extends Object
The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic V1TaintCreate an instance of V1Taint given an JSON stringRequired.getKey()Required.TimeAdded represents the time at which the taint was added.getValue()The taint value corresponding to the taint key.inthashCode()voidvoidvoidsetTimeAdded(OffsetDateTime timeAdded) voidtimeAdded(OffsetDateTime timeAdded) toJson()Convert an instance of V1Taint to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
V1Taint
public V1Taint()
-
-
Method Details
-
effect
-
getEffect
Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.- Returns:
- effect
-
setEffect
-
key
-
getKey
Required. The taint key to be applied to a node.- Returns:
- key
-
setKey
-
timeAdded
-
getTimeAdded
TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.- Returns:
- timeAdded
-
setTimeAdded
-
value
-
getValue
The taint value corresponding to the taint key.- Returns:
- value
-
setValue
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to V1Taint
-
fromJson
Create an instance of V1Taint given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1Taint
- Throws:
IOException- if the JSON string is invalid with respect to V1Taint
-
toJson
Convert an instance of V1Taint to an JSON string- Returns:
- JSON string
-