Package com.ngrok.services
Class IpRestrictions.UpdateCallBuilder
java.lang.Object
com.ngrok.services.IpRestrictions.UpdateCallBuilder
- Enclosing class:
- IpRestrictions
A builder object encapsulating state for an unsent Update 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 this IP restriction.description
(Optional<String> description) human-readable description of this IP restriction.enforced
(boolean enforced) true if the IP restriction will be enforced.true if the IP restriction will be enforced.ipPolicyIds
(List<String> ipPolicyIds) the set of IP policy identifiers that are used to enforce the restrictionipPolicyIds
(Optional<List<String>> ipPolicyIds) the set of IP policy identifiers that are used to enforce the restrictionarbitrary user-defined machine-readable data of this IP restriction.arbitrary user-defined machine-readable data of this IP restriction.
-
Method Details
-
description
human-readable description of this IP restriction. optional, max 255 bytes.- Parameters:
description
- the value of the description parameter as aString
- Returns:
- the call builder instance
-
description
human-readable description of this IP restriction. optional, max 255 bytes. -
metadata
arbitrary user-defined machine-readable data of this IP restriction. 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 restriction. optional, max 4096 bytes. -
enforced
true if the IP restriction will be enforced. if false, only warnings will be issued- Parameters:
enforced
- the value of the enforced parameter as aboolean
- Returns:
- the call builder instance
-
enforced
true if the IP restriction will be enforced. if false, only warnings will be issued- Parameters:
enforced
- the value of the enforced parameter as anOptional
ofboolean
- Returns:
- the call builder instance
-
ipPolicyIds
the set of IP policy identifiers that are used to enforce the restriction -
ipPolicyIds
the set of IP policy identifiers that are used to enforce the restriction -
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStage
ofIpRestriction
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
IpRestriction
- Throws:
InterruptedException
- if the thread was interrupted during the call
-