Package com.ngrok.services
Class EdgesTls.CreateCallBuilder
java.lang.Object
com.ngrok.services.EdgesTls.CreateCallBuilder
- Enclosing class:
- EdgesTls
A builder object encapsulating state for an unsent Create 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.mutualTls
(EndpointMutualTlsMutate mutualTls) Sets themutual_tls
parameter.mutualTls
(Optional<EndpointMutualTlsMutate> mutualTls) Sets (or unsets) themutual_tls
parameter.tlsTermination
(EndpointTlsTermination tlsTermination) Sets thetls_termination
parameter.tlsTermination
(Optional<EndpointTlsTermination> tlsTermination) Sets (or unsets) thetls_termination
parameter.
-
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
-
mutualTls
Sets themutual_tls
parameter.- Parameters:
mutualTls
- the value of the mutual_tls parameter as aEndpointMutualTlsMutate
- Returns:
- the call builder instance
-
mutualTls
Sets (or unsets) themutual_tls
parameter.- Parameters:
mutualTls
- the value of the mutual_tls parameter as anOptional
ofEndpointMutualTlsMutate
- Returns:
- the call builder instance
-
tlsTermination
Sets thetls_termination
parameter.- Parameters:
tlsTermination
- the value of the tls_termination parameter as aEndpointTlsTermination
- Returns:
- the call builder instance
-
tlsTermination
Sets (or unsets) thetls_termination
parameter.- Parameters:
tlsTermination
- the value of the tls_termination parameter as anOptional
ofEndpointTlsTermination
- Returns:
- the call builder instance
-
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStage
ofTlsEdge
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
TlsEdge
- Throws:
InterruptedException
- if the thread was interrupted during the call
-