Package com.ngrok.services
Class EdgesTcp.UpdateCallBuilder
java.lang.Object
com.ngrok.services.EdgesTcp.UpdateCallBuilder
- Enclosing class:
- EdgesTcp
A builder object encapsulating state for an unsent Update API call.
-
Method Summary
Modifier and TypeMethodDescriptionbackend
(EndpointBackendMutate backend) edge modulesbackend
(Optional<EndpointBackendMutate> backend) edge modulesInitiates the API call and blocks until it returns.call()
Initiates the API call asynchronously.description
(String description) human-readable description of what this edge will be used for; optional, max 255 bytes.description
(Optional<String> description) human-readable description of what this edge will be used for; optional, max 255 bytes.hostports served by this edgehostports served by this edgeipRestriction
(EndpointIpPolicyMutate ipRestriction) Sets theip_restriction
parameter.ipRestriction
(Optional<EndpointIpPolicyMutate> ipRestriction) Sets (or unsets) theip_restriction
parameter.arbitrary user-defined machine-readable data of this edge.arbitrary user-defined machine-readable data of this edge.
-
Method Details
-
description
human-readable description of what this edge will be used for; 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 this edge will be used for; optional, max 255 bytes. -
metadata
arbitrary user-defined machine-readable data of this edge. 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 edge. Optional, max 4096 bytes. -
hostports
hostports served by this edge -
hostports
hostports served by this edge -
backend
edge modules- Parameters:
backend
- the value of the backend parameter as aEndpointBackendMutate
- Returns:
- the call builder instance
-
backend
edge modules- Parameters:
backend
- the value of the backend parameter as anOptional
ofEndpointBackendMutate
- Returns:
- the call builder instance
-
ipRestriction
Sets theip_restriction
parameter.- Parameters:
ipRestriction
- the value of the ip_restriction parameter as aEndpointIpPolicyMutate
- Returns:
- the call builder instance
-
ipRestriction
Sets (or unsets) theip_restriction
parameter.- Parameters:
ipRestriction
- the value of the ip_restriction parameter as anOptional
ofEndpointIpPolicyMutate
- Returns:
- the call builder instance
-
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStage
ofTcpEdge
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
TcpEdge
- Throws:
InterruptedException
- if the thread was interrupted during the call
-