Package com.ngrok.services
Class TunnelGroupBackends.UpdateCallBuilder
java.lang.Object
com.ngrok.services.TunnelGroupBackends.UpdateCallBuilder
- Enclosing class:
- TunnelGroupBackends
A builder object encapsulating state for an unsent Update API call.
-
Method Summary
Modifier and TypeMethodDescriptionInitiates the API call and blocks until it returns.call()
Initiates the API call asynchronously.description
(String description) human-readable description of this backend.description
(Optional<String> description) human-readable description of this backend.labels to watch for tunnels on, e.g.labels to watch for tunnels on, e.g.arbitrary user-defined machine-readable data of this backend.arbitrary user-defined machine-readable data of this backend.
-
Method Details
-
description
human-readable description of this backend. Optional- Parameters:
description
- the value of the description parameter as aString
- Returns:
- the call builder instance
-
description
human-readable description of this backend. Optional -
metadata
arbitrary user-defined machine-readable data of this backend. Optional- Parameters:
metadata
- the value of the metadata parameter as aString
- Returns:
- the call builder instance
-
metadata
arbitrary user-defined machine-readable data of this backend. Optional -
labels
labels to watch for tunnels on, e.g. app->foo, dc->bar -
labels
labels to watch for tunnels on, e.g. app->foo, dc->bar -
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStage
ofTunnelGroupBackend
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
TunnelGroupBackend
- Throws:
InterruptedException
- if the thread was interrupted during the call
-