Class V1ContainerRestartRule
java.lang.Object
io.kubernetes.client.openapi.models.V1ContainerRestartRule
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-09-11T18:00:16.154662Z[Etc/UTC]",
comments="Generator version: 7.13.0")
public class V1ContainerRestartRule
extends Object
ContainerRestartRule describes how a container exit is handled.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexitCodes(V1ContainerRestartRuleOnExitCodes exitCodes) static V1ContainerRestartRuleCreate an instance of V1ContainerRestartRule given an JSON stringSpecifies the action taken on a container exit if the requirements are satisfied.Get exitCodesinthashCode()voidvoidsetExitCodes(V1ContainerRestartRuleOnExitCodes exitCodes) toJson()Convert an instance of V1ContainerRestartRule 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_ACTION
- See Also:
-
SERIALIZED_NAME_EXIT_CODES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ContainerRestartRule
public V1ContainerRestartRule()
-
-
Method Details
-
action
-
getAction
Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container.- Returns:
- action
-
setAction
-
exitCodes
-
getExitCodes
Get exitCodes- Returns:
- exitCodes
-
setExitCodes
-
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 V1ContainerRestartRule
-
fromJson
Create an instance of V1ContainerRestartRule given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1ContainerRestartRule
- Throws:
IOException- if the JSON string is invalid with respect to V1ContainerRestartRule
-
toJson
Convert an instance of V1ContainerRestartRule to an JSON string- Returns:
- JSON string
-