Package com.ngrok.services
Class IpPolicyRules.CreateCallBuilder
java.lang.Object
com.ngrok.services.IpPolicyRules.CreateCallBuilder
- Enclosing class:
- IpPolicyRules
A builder object encapsulating state for an unsent Create API call.
-
Method Summary
Modifier and TypeMethodDescriptionthe action to apply to the policy rule, eitherallowordenythe action to apply to the policy rule, eitherallowordenyInitiates the API call and blocks until it returns.call()Initiates the API call asynchronously.description(String description) human-readable description of the source IPs of this IP rule.description(Optional<String> description) human-readable description of the source IPs of this IP rule.arbitrary user-defined machine-readable data of this IP policy rule.arbitrary user-defined machine-readable data of this IP policy rule.
-
Method Details
-
description
human-readable description of the source IPs of this IP rule. 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 of this IP rule. optional, max 255 bytes. -
metadata
arbitrary user-defined machine-readable data of this IP policy rule. 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 policy rule. optional, max 4096 bytes. -
action
the action to apply to the policy rule, eitherallowordeny- Parameters:
action- the value of the action parameter as aString- Returns:
- the call builder instance
-
action
the action to apply to the policy rule, eitherallowordeny -
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStageofIpPolicyRule
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
IpPolicyRule- Throws:
InterruptedException- if the thread was interrupted during the call
-