public AttachResult attach(
      String namespace, String name, String container, boolean stdin, boolean tty)
      throws ApiException, IOException {
    String path = makePath(namespace, name, container, stdin, tty);

    WebSocketStreamHandler handler = new WebSocketStreamHandler();
    AttachResult result = new AttachResult(handler);
    WebSockets.stream(path, "GET", apiClient, handler);

    return result;
  }
public AttachResult attach ( String namespace , String name , String container , boolean stdin , boolean tty ) throws ApiException , IOException { String path = makePath ( namespace , name , container , stdin , tty ) ; WebSocketStreamHandler handler = new WebSocketStreamHandler ( ) ; AttachResult result = new AttachResult ( handler ) ; WebSockets . stream ( path , "GET" , apiClient , handler ) ; return result ; }
Attach to a running AttachResult 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 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)