Class InspectExecSession
java.lang.Object
io.github.alersrt.pod4j.openapi.model.InspectExecSession
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class InspectExecSession
extends Object
implements Serializable
InspectExecSession
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontainerID(String containerID) detachKeys(String detachKeys) booleanstatic InspectExecSessionCreate an instance of InspectExecSession given an JSON stringCanRemove is legacy and used purely for compatibility reasons.ContainerID is the ID of the container this exec session is attached to.DetachKeys are the detach keys used by the exec session.ExitCode is the exit code of the exec session.getID()ID is the ID of the exec session.OpenStderr is whether the container's STDERR stream will be attached.OpenStdin is whether the container's STDIN stream will be attached to.OpenStdout is whether the container's STDOUT stream will be attached.getPid()Pid is the PID of the exec session's process.@Valid InspectExecProcessGet processConfigRunning is whether the exec session is running.inthashCode()openStderr(Boolean openStderr) openStdout(Boolean openStdout) processConfig(InspectExecProcess processConfig) voidsetCanRemove(Boolean canRemove) voidsetContainerID(String containerID) voidsetDetachKeys(String detachKeys) voidsetExitCode(Long exitCode) voidvoidsetOpenStderr(Boolean openStderr) voidsetOpenStdin(Boolean openStdin) voidsetOpenStdout(Boolean openStdout) voidvoidsetProcessConfig(InspectExecProcess processConfig) voidsetRunning(Boolean running) toJson()Convert an instance of InspectExecSession to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CAN_REMOVE
- See Also:
-
SERIALIZED_NAME_CONTAINER_I_D
- See Also:
-
SERIALIZED_NAME_DETACH_KEYS
- See Also:
-
SERIALIZED_NAME_EXIT_CODE
- See Also:
-
SERIALIZED_NAME_I_D
- See Also:
-
SERIALIZED_NAME_OPEN_STDERR
- See Also:
-
SERIALIZED_NAME_OPEN_STDIN
- See Also:
-
SERIALIZED_NAME_OPEN_STDOUT
- See Also:
-
SERIALIZED_NAME_PID
- See Also:
-
SERIALIZED_NAME_PROCESS_CONFIG
- See Also:
-
SERIALIZED_NAME_RUNNING
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
InspectExecSession
public InspectExecSession()
-
-
Method Details
-
canRemove
-
getCanRemove
CanRemove is legacy and used purely for compatibility reasons. Will always be set to true, unless the exec session is running.- Returns:
- canRemove
-
setCanRemove
-
containerID
-
getContainerID
ContainerID is the ID of the container this exec session is attached to.- Returns:
- containerID
-
setContainerID
-
detachKeys
-
getDetachKeys
DetachKeys are the detach keys used by the exec session. If set to \"\" the default keys are being used. Will show \"<none>\" if no detach keys are set.- Returns:
- detachKeys
-
setDetachKeys
-
exitCode
-
getExitCode
ExitCode is the exit code of the exec session. Will be set to 0 if the exec session has not yet exited.- Returns:
- exitCode
-
setExitCode
-
ID
-
getID
ID is the ID of the exec session.- Returns:
- ID
-
setID
-
openStderr
-
getOpenStderr
OpenStderr is whether the container's STDERR stream will be attached. Always set to true if the exec session created a TTY.- Returns:
- openStderr
-
setOpenStderr
-
openStdin
-
getOpenStdin
OpenStdin is whether the container's STDIN stream will be attached to.- Returns:
- openStdin
-
setOpenStdin
-
openStdout
-
getOpenStdout
OpenStdout is whether the container's STDOUT stream will be attached. Always set to true if the exec session created a TTY.- Returns:
- openStdout
-
setOpenStdout
-
pid
-
getPid
Pid is the PID of the exec session's process. Will be set to 0 if the exec session is not running.- Returns:
- pid
-
setPid
-
processConfig
-
getProcessConfig
Get processConfig- Returns:
- processConfig
-
setProcessConfig
-
running
-
getRunning
Running is whether the exec session is running.- Returns:
- running
-
setRunning
-
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 InspectExecSession
-
fromJson
Create an instance of InspectExecSession given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InspectExecSession
- Throws:
IOException- if the JSON string is invalid with respect to InspectExecSession
-
toJson
Convert an instance of InspectExecSession to an JSON string- Returns:
- JSON string
-