Class V1ExecAction
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ExecAction
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1ExecAction
extends Object
ExecAction describes a \"run in container\" action.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddcommandItem
(String commandItem) Add an item to the command property in a chainable fashion.Set command in a chainable fashion.boolean
Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem.int
hashCode()
void
setCommand
(List<@NotNull String> command) Set the command property valuetoString()
-
Field Details
-
JSON_PROPERTY_COMMAND
- See Also:
-
-
Constructor Details
-
V1ExecAction
public V1ExecAction()
-
-
Method Details
-
getCommand
Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.- Returns:
- the command property value
-
setCommand
Set the command property value- Parameters:
command
- property value to set
-
command
Set command in a chainable fashion.- Returns:
- The same instance of V1ExecAction for chaining.
-
addcommandItem
Add an item to the command property in a chainable fashion.- Returns:
- The same instance of V1ExecAction for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-