code: public Process exec(
        String namespace, String name, String[] command, String container, boolean stdin, boolean tty)
        throws ApiException, IOException {
      String path = makePath(namespace, name, command, container, stdin, tty);
  
      ExecProcess exec = new ExecProcess(apiClient);
      WebSocketStreamHandler handler = exec.getHandler();
      WebSockets.stream(path, "GET", apiClient, handler);
  
      return exec;
    }
docs: Execute a command in a container. If there are multiple containers in the pod, uses the first
  container in the Pod.
  
  @param namespace The namespace of the Pod
  @param name The name of the Pod
  @param command The command to run
  @param container The container in the Pod where the command is run.
  @param stdin If true, pass a stdin stream into the container.
  @param tty If true, stdin is a TTY (only applies if stdin is true)