Class CreateTunnel.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • withName

        public CreateTunnel.Builder withName​(java.lang.String name)
        The name of the tunnel.
      • withoutInspect

        public CreateTunnel.Builder withoutInspect()
        Disable HTTP request inspection on tunnels.
      • withAuth

        public CreateTunnel.Builder withAuth​(java.lang.String auth)
        HTTP basic authentication credentials to enforce on tunneled requests
      • withHostHeader

        public CreateTunnel.Builder withHostHeader​(java.lang.String hostHeader)
        Rewrite the HTTP Host header to this value, or preserve to leave it unchanged.
      • withBindTls

        public CreateTunnel.Builder withBindTls​(java.lang.String bindTls)
        Bind an HTTPS ("true") or HTTP ("false") endpoint, defaults to "both".
      • withSubdomain

        public CreateTunnel.Builder withSubdomain​(java.lang.String subdomain)
        Subdomain name to request. If unspecified, uses the tunnel name.
      • withHostname

        public CreateTunnel.Builder withHostname​(java.lang.String hostname)
        Hostname to request (requires reserved name and DNS CNAME).
      • withCrt

        public CreateTunnel.Builder withCrt​(java.lang.String crt)
        PEM TLS certificate at this path to terminate TLS traffic before forwarding locally.
      • withKey

        public CreateTunnel.Builder withKey​(java.lang.String key)
        PEM TLS private key at this path to terminate TLS traffic before forwarding locally.
      • withClientCas

        public CreateTunnel.Builder withClientCas​(java.lang.String clientCas)
        PEM TLS certificate authority at this path will verify incoming TLS client connection certificates.
      • withRemoteAddr

        public CreateTunnel.Builder withRemoteAddr​(java.lang.String remoteAddr)
        Bind the remote TCP port on the given address.
      • withMetadata

        public CreateTunnel.Builder withMetadata​(java.lang.String metadata)
        Arbitrary user-defined metadata that will appear in the ngrok service API when listing tunnels.