Class V1ContainerRestartRule
java.lang.Object
io.kubernetes.client.openapi.models.V1ContainerRestartRule
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-09-12T23:11:52.603861Z[Etc/UTC]")
public class V1ContainerRestartRule
extends Object
ContainerRestartRule describes how a container exit is handled.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexitCodes(V1ContainerRestartRuleOnExitCodes exitCodes) Specifies the action taken on a container exit if the requirements are satisfied.Get exitCodesinthashCode()voidvoidsetExitCodes(V1ContainerRestartRuleOnExitCodes exitCodes) toString()
-
Field Details
-
SERIALIZED_NAME_ACTION
- See Also:
-
SERIALIZED_NAME_EXIT_CODES
- See Also:
-
-
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
-