Class ContainerExecRequest

java.lang.Object
io.github.alersrt.pod4j.openapi.model.ContainerExecRequest

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class ContainerExecRequest extends Object
ContainerExecRequest
  • Field Details

  • Constructor Details

    • ContainerExecRequest

      public ContainerExecRequest()
  • Method Details

    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to ContainerExecRequest
    • fromJson

      public static ContainerExecRequest fromJson(String jsonString) throws IOException
      Create an instance of ContainerExecRequest given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ContainerExecRequest
      Throws:
      IOException - if the JSON string is invalid with respect to ContainerExecRequest
    • attachStderr

      public ContainerExecRequest attachStderr(Boolean attachStderr)
    • getAttachStderr

      @Nullable public Boolean getAttachStderr()
      Attach to stderr of the exec command
      Returns:
      attachStderr
    • setAttachStderr

      public void setAttachStderr(Boolean attachStderr)
    • attachStdin

      public ContainerExecRequest attachStdin(Boolean attachStdin)
    • getAttachStdin

      @Nullable public Boolean getAttachStdin()
      Attach to stdin of the exec command
      Returns:
      attachStdin
    • setAttachStdin

      public void setAttachStdin(Boolean attachStdin)
    • attachStdout

      public ContainerExecRequest attachStdout(Boolean attachStdout)
    • getAttachStdout

      @Nullable public Boolean getAttachStdout()
      Attach to stdout of the exec command
      Returns:
      attachStdout
    • setAttachStdout

      public void setAttachStdout(Boolean attachStdout)
    • cmd

      public ContainerExecRequest cmd(List<String> cmd)
    • addCmdItem

      public ContainerExecRequest addCmdItem(String cmdItem)
    • getCmd

      @Nullable public List<String> getCmd()
      Command to run, as a string or array of strings.
      Returns:
      cmd
    • setCmd

      public void setCmd(List<String> cmd)
    • detachKeys

      public ContainerExecRequest detachKeys(String detachKeys)
    • getDetachKeys

      @Nullable public String getDetachKeys()
      \"Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _.\"
      Returns:
      detachKeys
    • setDetachKeys

      public void setDetachKeys(String detachKeys)
    • env

      public ContainerExecRequest env(List<String> env)
    • addEnvItem

      public ContainerExecRequest addEnvItem(String envItem)
    • getEnv

      @Nullable public List<String> getEnv()
      A list of environment variables in the form [\"VAR=value\", ...]
      Returns:
      env
    • setEnv

      public void setEnv(List<String> env)
    • privileged

      public ContainerExecRequest privileged(Boolean privileged)
    • getPrivileged

      @Nullable public Boolean getPrivileged()
      Runs the exec process with extended privileges
      Returns:
      privileged
    • setPrivileged

      public void setPrivileged(Boolean privileged)
    • tty

      public ContainerExecRequest tty(Boolean tty)
    • getTty

      @Nullable public Boolean getTty()
      Allocate a pseudo-TTY
      Returns:
      tty
    • setTty

      public void setTty(Boolean tty)
    • user

      public ContainerExecRequest user(String user)
    • getUser

      @Nullable public String getUser()
      \"The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid.\"
      Returns:
      user
    • setUser

      public void setUser(String user)
    • workingDir

      public ContainerExecRequest workingDir(String workingDir)
    • getWorkingDir

      @Nullable public String getWorkingDir()
      The working directory for the exec process inside the container.
      Returns:
      workingDir
    • setWorkingDir

      public void setWorkingDir(String workingDir)
    • 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
    • toJson

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