Class V1alpha3DeviceTaintRuleSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRuleSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-05-20T20:47:13.890592Z[Etc/UTC]",
comments="Generator version: 7.13.0")
public class V1alpha3DeviceTaintRuleSpec
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
(V1alpha3DeviceTaintSelector deviceSelector) boolean
static V1alpha3DeviceTaintRuleSpec
Create an instance of V1alpha3DeviceTaintRuleSpec given an JSON stringGet deviceSelectorgetTaint()
Get taintint
hashCode()
void
setDeviceSelector
(V1alpha3DeviceTaintSelector deviceSelector) void
setTaint
(V1alpha3DeviceTaint taint) taint
(V1alpha3DeviceTaint taint) toJson()
Convert an instance of V1alpha3DeviceTaintRuleSpec 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_SELECTOR
- See Also:
-
SERIALIZED_NAME_TAINT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha3DeviceTaintRuleSpec
public V1alpha3DeviceTaintRuleSpec()
-
-
Method Details
-
deviceSelector
public V1alpha3DeviceTaintRuleSpec deviceSelector(@Nullable V1alpha3DeviceTaintSelector 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 V1alpha3DeviceTaintRuleSpec
-
fromJson
Create an instance of V1alpha3DeviceTaintRuleSpec given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha3DeviceTaintRuleSpec
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha3DeviceTaintRuleSpec
-
toJson
Convert an instance of V1alpha3DeviceTaintRuleSpec to an JSON string- Returns:
- JSON string
-