Package com.ngrok.services
Class IpWhitelist.CreateCallBuilder
java.lang.Object
com.ngrok.services.IpWhitelist.CreateCallBuilder
- Enclosing class:
- IpWhitelist
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 the source IPs for this IP whitelist entry.description(Optional<String> description)human-readable description of the source IPs for this IP whitelist entry.an IP address or IP network range in CIDR notation (e.g.an IP address or IP network range in CIDR notation (e.g.arbitrary user-defined machine-readable data of this IP whitelist entry.arbitrary user-defined machine-readable data of this IP whitelist entry.
-
Method Details
-
description
human-readable description of the source IPs for this IP whitelist entry. optional, max 255 bytes.- Parameters:
description- the value of the description parameter as aString- Returns:
- the call builder instance
-
description
human-readable description of the source IPs for this IP whitelist entry. optional, max 255 bytes. -
metadata
arbitrary user-defined machine-readable data of this IP whitelist entry. optional, max 4096 bytes.- Parameters:
metadata- the value of the metadata parameter as aString- Returns:
- the call builder instance
-
metadata
arbitrary user-defined machine-readable data of this IP whitelist entry. optional, max 4096 bytes. -
ipNet
an IP address or IP network range in CIDR notation (e.g. 10.1.1.1 or 10.1.0.0/16) of addresses that will be whitelisted to communicate with your tunnel endpoints- Parameters:
ipNet- the value of the ip_net parameter as aString- Returns:
- the call builder instance
-
ipNet
an IP address or IP network range in CIDR notation (e.g. 10.1.1.1 or 10.1.0.0/16) of addresses that will be whitelisted to communicate with your tunnel endpoints -
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStageofIpWhitelistEntry
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
IpWhitelistEntry- Throws:
InterruptedException- if the thread was interrupted during the call
-