Package com.ngrok.services
Class IpRestrictions.ListCallBuilder
java.lang.Object
com.ngrok.services.IpRestrictions.ListCallBuilder
- Enclosing class:
- IpRestrictions
A builder object encapsulating state for an unsent List API call.
-
Method Summary
Modifier and TypeMethodDescriptionSets thebefore_idparameter.Sets (or unsets) thebefore_idparameter.Initiates the API call and blocks until it returns.call()Initiates the API call asynchronously.Sets thelimitparameter.Sets (or unsets) thelimitparameter.
-
Method Details
-
beforeId
Sets thebefore_idparameter.- Parameters:
beforeId- the value of the before_id parameter as aString- Returns:
- the call builder instance
-
beforeId
Sets (or unsets) thebefore_idparameter. -
limit
Sets thelimitparameter.- Parameters:
limit- the value of the limit parameter as aString- Returns:
- the call builder instance
-
limit
Sets (or unsets) thelimitparameter. -
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStageof aPageofIpRestrictionList
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
- a
PageofIpRestrictionList - Throws:
InterruptedException- if the thread was interrupted during the call
-