Package com.ngrok.services
Class ApiKeys.CreateCallBuilder
java.lang.Object
com.ngrok.services.ApiKeys.CreateCallBuilder
- Enclosing class:
- ApiKeys
A builder object encapsulating state for an unsent Create 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 what uses the API key to authenticate.description
(Optional<String> description) human-readable description of what uses the API key to authenticate.arbitrary user-defined data of this API key.arbitrary user-defined data of this API key.
-
Method Details
-
description
human-readable description of what uses the API key to authenticate. optional, max 255 bytes.- Parameters:
description
- the value of the description parameter as aString
- Returns:
- the call builder instance
-
description
human-readable description of what uses the API key to authenticate. optional, max 255 bytes. -
metadata
arbitrary user-defined data of this API key. optional, max 4096 bytes- Parameters:
metadata
- the value of the metadata parameter as aString
- Returns:
- the call builder instance
-
metadata
arbitrary user-defined data of this API key. optional, max 4096 bytes -
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStage
ofApiKey
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
ApiKey
- Throws:
InterruptedException
- if the thread was interrupted during the call
-