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:
  • Field Details

  • Constructor Details

    • InspectExecSession

      public InspectExecSession()
  • Method Details

    • canRemove

      public InspectExecSession canRemove(Boolean canRemove)
    • getCanRemove

      @Nullable public Boolean 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

      public void setCanRemove(Boolean canRemove)
    • containerID

      public InspectExecSession containerID(String containerID)
    • getContainerID

      @Nullable public String getContainerID()
      ContainerID is the ID of the container this exec session is attached to.
      Returns:
      containerID
    • setContainerID

      public void setContainerID(String containerID)
    • detachKeys

      public InspectExecSession detachKeys(String detachKeys)
    • getDetachKeys

      @Nullable public String 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

      public void setDetachKeys(String detachKeys)
    • exitCode

      public InspectExecSession exitCode(Long exitCode)
    • getExitCode

      @Nullable public Long 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

      public void setExitCode(Long exitCode)
    • ID

      public InspectExecSession ID(String ID)
    • getID

      @Nullable public String getID()
      ID is the ID of the exec session.
      Returns:
      ID
    • setID

      public void setID(String ID)
    • openStderr

      public InspectExecSession openStderr(Boolean openStderr)
    • getOpenStderr

      @Nullable public Boolean 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

      public void setOpenStderr(Boolean openStderr)
    • openStdin

      public InspectExecSession openStdin(Boolean openStdin)
    • getOpenStdin

      @Nullable public Boolean getOpenStdin()
      OpenStdin is whether the container's STDIN stream will be attached to.
      Returns:
      openStdin
    • setOpenStdin

      public void setOpenStdin(Boolean openStdin)
    • openStdout

      public InspectExecSession openStdout(Boolean openStdout)
    • getOpenStdout

      @Nullable public Boolean 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

      public void setOpenStdout(Boolean openStdout)
    • pid

      public InspectExecSession pid(Long pid)
    • getPid

      @Nullable public Long 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

      public void setPid(Long pid)
    • processConfig

      public InspectExecSession processConfig(InspectExecProcess processConfig)
    • getProcessConfig

      @Nullable @Valid public @Valid InspectExecProcess getProcessConfig()
      Get processConfig
      Returns:
      processConfig
    • setProcessConfig

      public void setProcessConfig(InspectExecProcess processConfig)
    • running

      public InspectExecSession running(Boolean running)
    • getRunning

      @Nullable public Boolean getRunning()
      Running is whether the exec session is running.
      Returns:
      running
    • setRunning

      public void setRunning(Boolean running)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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

      public static InspectExecSession fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of InspectExecSession to an JSON string
      Returns:
      JSON string