Class V1ContainerRestartRuleOnExitCodes
java.lang.Object
io.kubernetes.client.openapi.models.V1ContainerRestartRuleOnExitCodes
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-09-11T18:00:16.154662Z[Etc/UTC]",
comments="Generator version: 7.13.0")
public class V1ContainerRestartRuleOnExitCodes
extends Object
ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValuesItem(Integer valuesItem) booleanCreate an instance of V1ContainerRestartRuleOnExitCodes given an JSON stringRepresents the relationship between the container exit code(s) and the specified values.Specifies the set of values to check for container exit codes.inthashCode()voidsetOperator(String operator) voidtoJson()Convert an instance of V1ContainerRestartRuleOnExitCodes 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_OPERATOR
- See Also:
-
SERIALIZED_NAME_VALUES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ContainerRestartRuleOnExitCodes
public V1ContainerRestartRuleOnExitCodes()
-
-
Method Details
-
operator
-
getOperator
Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the set of specified values. - NotIn: the requirement is satisfied if the container exit code is not in the set of specified values.- Returns:
- operator
-
setOperator
-
values
-
addValuesItem
-
getValues
Specifies the set of values to check for container exit codes. At most 255 elements are allowed.- Returns:
- values
-
setValues
-
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 V1ContainerRestartRuleOnExitCodes
-
fromJson
Create an instance of V1ContainerRestartRuleOnExitCodes given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1ContainerRestartRuleOnExitCodes
- Throws:
IOException- if the JSON string is invalid with respect to V1ContainerRestartRuleOnExitCodes
-
toJson
Convert an instance of V1ContainerRestartRuleOnExitCodes to an JSON string- Returns:
- JSON string
-