Package com.ngrok.services
Class EdgesHttpsRoutes.CreateCallBuilder
java.lang.Object
com.ngrok.services.EdgesHttpsRoutes.CreateCallBuilder
- Enclosing class:
- EdgesHttpsRoutes
A builder object encapsulating state for an unsent Create API call.
-
Method Summary
Modifier and TypeMethodDescriptionbackend
(EndpointBackendMutate backend) backend module configuration ornull
backend
(Optional<EndpointBackendMutate> backend) backend module configuration ornull
Initiates the API call and blocks until it returns.call()
Initiates the API call asynchronously.circuitBreaker
(EndpointCircuitBreaker circuitBreaker) circuit breaker module configuration ornull
circuitBreaker
(Optional<EndpointCircuitBreaker> circuitBreaker) circuit breaker module configuration ornull
compression
(EndpointCompression compression) compression module configuration ornull
compression
(Optional<EndpointCompression> compression) compression module configuration ornull
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.ipRestriction
(EndpointIpPolicyMutate ipRestriction) ip restriction module configuration ornull
ipRestriction
(Optional<EndpointIpPolicyMutate> ipRestriction) ip restriction module configuration ornull
arbitrary user-defined machine-readable data of this edge.arbitrary user-defined machine-readable data of this edge.oauth
(EndpointOAuth oauth) oauth module configuration ornull
oauth
(Optional<EndpointOAuth> oauth) oauth module configuration ornull
oidc
(EndpointOidc oidc) oidc module configuration ornull
oidc
(Optional<EndpointOidc> oidc) oidc module configuration ornull
requestHeaders
(EndpointRequestHeaders requestHeaders) request headers module configuration ornull
requestHeaders
(Optional<EndpointRequestHeaders> requestHeaders) request headers module configuration ornull
responseHeaders
(EndpointResponseHeaders responseHeaders) response headers module configuration ornull
responseHeaders
(Optional<EndpointResponseHeaders> responseHeaders) response headers module configuration ornull
saml
(EndpointSamlMutate saml) saml module configuration ornull
saml
(Optional<EndpointSamlMutate> saml) saml module configuration ornull
webhookVerification
(EndpointWebhookValidation webhookVerification) webhook verification module configuration ornull
webhookVerification
(Optional<EndpointWebhookValidation> webhookVerification) webhook verification module configuration ornull
websocketTcpConverter
(EndpointWebsocketTcpConverter websocketTcpConverter) websocket to tcp adapter configuration ornull
websocketTcpConverter
(Optional<EndpointWebsocketTcpConverter> websocketTcpConverter) websocket to tcp adapter configuration ornull
-
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. -
backend
backend module configuration ornull
- Parameters:
backend
- the value of the backend parameter as aEndpointBackendMutate
- Returns:
- the call builder instance
-
backend
backend module configuration ornull
- Parameters:
backend
- the value of the backend parameter as anOptional
ofEndpointBackendMutate
- Returns:
- the call builder instance
-
ipRestriction
ip restriction module configuration ornull
- Parameters:
ipRestriction
- the value of the ip_restriction parameter as aEndpointIpPolicyMutate
- Returns:
- the call builder instance
-
ipRestriction
public EdgesHttpsRoutes.CreateCallBuilder ipRestriction(Optional<EndpointIpPolicyMutate> ipRestriction) ip restriction module configuration ornull
- Parameters:
ipRestriction
- the value of the ip_restriction parameter as anOptional
ofEndpointIpPolicyMutate
- Returns:
- the call builder instance
-
circuitBreaker
circuit breaker module configuration ornull
- Parameters:
circuitBreaker
- the value of the circuit_breaker parameter as aEndpointCircuitBreaker
- Returns:
- the call builder instance
-
circuitBreaker
public EdgesHttpsRoutes.CreateCallBuilder circuitBreaker(Optional<EndpointCircuitBreaker> circuitBreaker) circuit breaker module configuration ornull
- Parameters:
circuitBreaker
- the value of the circuit_breaker parameter as anOptional
ofEndpointCircuitBreaker
- Returns:
- the call builder instance
-
compression
compression module configuration ornull
- Parameters:
compression
- the value of the compression parameter as aEndpointCompression
- Returns:
- the call builder instance
-
compression
compression module configuration ornull
- Parameters:
compression
- the value of the compression parameter as anOptional
ofEndpointCompression
- Returns:
- the call builder instance
-
requestHeaders
request headers module configuration ornull
- Parameters:
requestHeaders
- the value of the request_headers parameter as aEndpointRequestHeaders
- Returns:
- the call builder instance
-
requestHeaders
public EdgesHttpsRoutes.CreateCallBuilder requestHeaders(Optional<EndpointRequestHeaders> requestHeaders) request headers module configuration ornull
- Parameters:
requestHeaders
- the value of the request_headers parameter as anOptional
ofEndpointRequestHeaders
- Returns:
- the call builder instance
-
responseHeaders
response headers module configuration ornull
- Parameters:
responseHeaders
- the value of the response_headers parameter as aEndpointResponseHeaders
- Returns:
- the call builder instance
-
responseHeaders
public EdgesHttpsRoutes.CreateCallBuilder responseHeaders(Optional<EndpointResponseHeaders> responseHeaders) response headers module configuration ornull
- Parameters:
responseHeaders
- the value of the response_headers parameter as anOptional
ofEndpointResponseHeaders
- Returns:
- the call builder instance
-
webhookVerification
public EdgesHttpsRoutes.CreateCallBuilder webhookVerification(EndpointWebhookValidation webhookVerification) webhook verification module configuration ornull
- Parameters:
webhookVerification
- the value of the webhook_verification parameter as aEndpointWebhookValidation
- Returns:
- the call builder instance
-
webhookVerification
public EdgesHttpsRoutes.CreateCallBuilder webhookVerification(Optional<EndpointWebhookValidation> webhookVerification) webhook verification module configuration ornull
- Parameters:
webhookVerification
- the value of the webhook_verification parameter as anOptional
ofEndpointWebhookValidation
- Returns:
- the call builder instance
-
oauth
oauth module configuration ornull
- Parameters:
oauth
- the value of the oauth parameter as aEndpointOAuth
- Returns:
- the call builder instance
-
oauth
oauth module configuration ornull
- Parameters:
oauth
- the value of the oauth parameter as anOptional
ofEndpointOAuth
- Returns:
- the call builder instance
-
saml
saml module configuration ornull
- Parameters:
saml
- the value of the saml parameter as aEndpointSamlMutate
- Returns:
- the call builder instance
-
saml
saml module configuration ornull
- Parameters:
saml
- the value of the saml parameter as anOptional
ofEndpointSamlMutate
- Returns:
- the call builder instance
-
oidc
oidc module configuration ornull
- Parameters:
oidc
- the value of the oidc parameter as aEndpointOidc
- Returns:
- the call builder instance
-
oidc
oidc module configuration ornull
- Parameters:
oidc
- the value of the oidc parameter as anOptional
ofEndpointOidc
- Returns:
- the call builder instance
-
websocketTcpConverter
public EdgesHttpsRoutes.CreateCallBuilder websocketTcpConverter(EndpointWebsocketTcpConverter websocketTcpConverter) websocket to tcp adapter configuration ornull
- Parameters:
websocketTcpConverter
- the value of the websocket_tcp_converter parameter as aEndpointWebsocketTcpConverter
- Returns:
- the call builder instance
-
websocketTcpConverter
public EdgesHttpsRoutes.CreateCallBuilder websocketTcpConverter(Optional<EndpointWebsocketTcpConverter> websocketTcpConverter) websocket to tcp adapter configuration ornull
- Parameters:
websocketTcpConverter
- the value of the websocket_tcp_converter parameter as anOptional
ofEndpointWebsocketTcpConverter
- Returns:
- the call builder instance
-
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStage
ofHttpsEdgeRoute
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
HttpsEdgeRoute
- Throws:
InterruptedException
- if the thread was interrupted during the call
-