Package com.ngrok.services
Class EdgeRouteWebhookVerificationModule.ReplaceCallBuilder
java.lang.Object
com.ngrok.services.EdgeRouteWebhookVerificationModule.ReplaceCallBuilder
- Enclosing class:
- EdgeRouteWebhookVerificationModule
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
(EndpointWebhookValidation module) Sets themodule
parameter.module
(Optional<EndpointWebhookValidation> module) Sets (or unsets) themodule
parameter.
-
Method Details
-
module
public EdgeRouteWebhookVerificationModule.ReplaceCallBuilder module(EndpointWebhookValidation module) Sets themodule
parameter.- Parameters:
module
- the value of the module parameter as aEndpointWebhookValidation
- Returns:
- the call builder instance
-
module
public EdgeRouteWebhookVerificationModule.ReplaceCallBuilder module(Optional<EndpointWebhookValidation> module) Sets (or unsets) themodule
parameter.- Parameters:
module
- the value of the module parameter as anOptional
ofEndpointWebhookValidation
- Returns:
- the call builder instance
-
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStage
ofEndpointWebhookValidation
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
EndpointWebhookValidation
- Throws:
InterruptedException
- if the thread was interrupted during the call
-