Class V1ExecAction
java.lang.Object
io.kubernetes.client.openapi.models.V1ExecAction
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1ExecAction
extends Object
ExecAction describes a \"run in container\" action.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCommandItem
(String commandItem) boolean
static V1ExecAction
Create an instance of V1ExecAction given an JSON stringCommand 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<String> command) toJson()
Convert an instance of V1ExecAction to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_COMMAND
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ExecAction
public V1ExecAction()
-
-
Method Details
-
command
-
addCommandItem
-
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:
- command
-
setCommand
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1ExecAction
-
fromJson
Create an instance of V1ExecAction given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1ExecAction
- Throws:
IOException
- if the JSON string is invalid with respect to V1ExecAction
-
toJson
Convert an instance of V1ExecAction to an JSON string- Returns:
- JSON string
-