Package com.ngrok.services
Class EdgesHttpsRoutes.UpdateCallBuilder
java.lang.Object
com.ngrok.services.EdgesHttpsRoutes.UpdateCallBuilder
- Enclosing class:
- EdgesHttpsRoutes
A builder object encapsulating state for an unsent Update API call.
-
Method Summary
Modifier and TypeMethodDescriptionbackend(EndpointBackendMutate backend) backend module configuration ornullbackend(Optional<EndpointBackendMutate> backend) backend module configuration ornullInitiates the API call and blocks until it returns.call()Initiates the API call asynchronously.circuitBreaker(EndpointCircuitBreaker circuitBreaker) circuit breaker module configuration ornullcircuitBreaker(Optional<EndpointCircuitBreaker> circuitBreaker) circuit breaker module configuration ornullcompression(EndpointCompression compression) compression module configuration ornullcompression(Optional<EndpointCompression> compression) compression module configuration ornulldescription(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 ornullipRestriction(Optional<EndpointIpPolicyMutate> ipRestriction) ip restriction module configuration ornullRoute selector: "/blog" or "example.com" or "example.com/blog"Route selector: "/blog" or "example.com" or "example.com/blog"Type of match to use for this route.Type of match to use for this route.arbitrary user-defined machine-readable data of this edge.arbitrary user-defined machine-readable data of this edge.oauth(EndpointOAuth oauth) oauth module configuration ornulloauth(Optional<EndpointOAuth> oauth) oauth module configuration ornulloidc(EndpointOidc oidc) oidc module configuration ornulloidc(Optional<EndpointOidc> oidc) oidc module configuration ornullrequestHeaders(EndpointRequestHeaders requestHeaders) request headers module configuration ornullrequestHeaders(Optional<EndpointRequestHeaders> requestHeaders) request headers module configuration ornullresponseHeaders(EndpointResponseHeaders responseHeaders) response headers module configuration ornullresponseHeaders(Optional<EndpointResponseHeaders> responseHeaders) response headers module configuration ornullsaml(EndpointSamlMutate saml) saml module configuration ornullsaml(Optional<EndpointSamlMutate> saml) saml module configuration ornullwebhookVerification(EndpointWebhookValidation webhookVerification) webhook verification module configuration ornullwebhookVerification(Optional<EndpointWebhookValidation> webhookVerification) webhook verification module configuration ornullwebsocketTcpConverter(EndpointWebsocketTcpConverter websocketTcpConverter) websocket to tcp adapter configuration ornullwebsocketTcpConverter(Optional<EndpointWebsocketTcpConverter> websocketTcpConverter) websocket to tcp adapter configuration ornull
-
Method Details
-
matchType
Type of match to use for this route. Valid values are "exact_path" and "path_prefix".- Parameters:
matchType- the value of the match_type parameter as aString- Returns:
- the call builder instance
-
matchType
Type of match to use for this route. Valid values are "exact_path" and "path_prefix". -
match
Route selector: "/blog" or "example.com" or "example.com/blog"- Parameters:
match- the value of the match parameter as aString- Returns:
- the call builder instance
-
match
Route selector: "/blog" or "example.com" or "example.com/blog" -
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 anOptionalofEndpointBackendMutate- 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.UpdateCallBuilder ipRestriction(Optional<EndpointIpPolicyMutate> ipRestriction) ip restriction module configuration ornull- Parameters:
ipRestriction- the value of the ip_restriction parameter as anOptionalofEndpointIpPolicyMutate- 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.UpdateCallBuilder circuitBreaker(Optional<EndpointCircuitBreaker> circuitBreaker) circuit breaker module configuration ornull- Parameters:
circuitBreaker- the value of the circuit_breaker parameter as anOptionalofEndpointCircuitBreaker- 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 anOptionalofEndpointCompression- 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.UpdateCallBuilder requestHeaders(Optional<EndpointRequestHeaders> requestHeaders) request headers module configuration ornull- Parameters:
requestHeaders- the value of the request_headers parameter as anOptionalofEndpointRequestHeaders- 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.UpdateCallBuilder responseHeaders(Optional<EndpointResponseHeaders> responseHeaders) response headers module configuration ornull- Parameters:
responseHeaders- the value of the response_headers parameter as anOptionalofEndpointResponseHeaders- Returns:
- the call builder instance
-
webhookVerification
public EdgesHttpsRoutes.UpdateCallBuilder 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.UpdateCallBuilder webhookVerification(Optional<EndpointWebhookValidation> webhookVerification) webhook verification module configuration ornull- Parameters:
webhookVerification- the value of the webhook_verification parameter as anOptionalofEndpointWebhookValidation- 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 anOptionalofEndpointOAuth- 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 anOptionalofEndpointSamlMutate- 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 anOptionalofEndpointOidc- Returns:
- the call builder instance
-
websocketTcpConverter
public EdgesHttpsRoutes.UpdateCallBuilder 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.UpdateCallBuilder websocketTcpConverter(Optional<EndpointWebsocketTcpConverter> websocketTcpConverter) websocket to tcp adapter configuration ornull- Parameters:
websocketTcpConverter- the value of the websocket_tcp_converter parameter as anOptionalofEndpointWebsocketTcpConverter- Returns:
- the call builder instance
-
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStageofHttpsEdgeRoute
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
HttpsEdgeRoute- Throws:
InterruptedException- if the thread was interrupted during the call
-