Package com.ngrok.services
Class EdgesHttps.CreateCallBuilder
java.lang.Object
com.ngrok.services.EdgesHttps.CreateCallBuilder
- Enclosing class:
- EdgesHttps
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 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 edgearbitrary user-defined machine-readable data of this edge; optional, max 4096 bytes.arbitrary user-defined machine-readable data of this edge; optional, max 4096 bytes.mutualTls(EndpointMutualTlsMutate mutualTls) edge modulesmutualTls(Optional<EndpointMutualTlsMutate> mutualTls) edge modulestlsTermination(EndpointTlsTerminationAtEdge tlsTermination) Sets thetls_terminationparameter.tlsTermination(Optional<EndpointTlsTerminationAtEdge> tlsTermination) Sets (or unsets) thetls_terminationparameter.
-
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 -
mutualTls
edge modules- Parameters:
mutualTls- the value of the mutual_tls parameter as aEndpointMutualTlsMutate- Returns:
- the call builder instance
-
mutualTls
edge modules- Parameters:
mutualTls- the value of the mutual_tls parameter as anOptionalofEndpointMutualTlsMutate- Returns:
- the call builder instance
-
tlsTermination
Sets thetls_terminationparameter.- Parameters:
tlsTermination- the value of the tls_termination parameter as aEndpointTlsTerminationAtEdge- Returns:
- the call builder instance
-
tlsTermination
public EdgesHttps.CreateCallBuilder tlsTermination(Optional<EndpointTlsTerminationAtEdge> tlsTermination) Sets (or unsets) thetls_terminationparameter.- Parameters:
tlsTermination- the value of the tls_termination parameter as anOptionalofEndpointTlsTerminationAtEdge- Returns:
- the call builder instance
-
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStageofHttpsEdge
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
HttpsEdge- Throws:
InterruptedException- if the thread was interrupted during the call
-