Package com.ngrok.services
Class TlsEdgeTlsTerminationModule.ReplaceCallBuilder
java.lang.Object
com.ngrok.services.TlsEdgeTlsTerminationModule.ReplaceCallBuilder
- Enclosing class:
- TlsEdgeTlsTerminationModule
A builder object encapsulating state for an unsent Replace API call.
-
Method Summary
Modifier and TypeMethodDescriptionInitiates the API call and blocks until it returns.call()
Initiates the API call asynchronously.module
(EndpointTlsTermination module) Sets themodule
parameter.module
(Optional<EndpointTlsTermination> module) Sets (or unsets) themodule
parameter.
-
Method Details
-
module
Sets themodule
parameter.- Parameters:
module
- the value of the module parameter as aEndpointTlsTermination
- Returns:
- the call builder instance
-
module
public TlsEdgeTlsTerminationModule.ReplaceCallBuilder module(Optional<EndpointTlsTermination> module) Sets (or unsets) themodule
parameter.- Parameters:
module
- the value of the module parameter as anOptional
ofEndpointTlsTermination
- Returns:
- the call builder instance
-
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStage
ofEndpointTlsTermination
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
EndpointTlsTermination
- Throws:
InterruptedException
- if the thread was interrupted during the call
-