Package com.ngrok.services
Class EndpointConfigurations.UpdateCallBuilder
java.lang.Object
com.ngrok.services.EndpointConfigurations.UpdateCallBuilder
- Enclosing class:
- EndpointConfigurations
A builder object encapsulating state for an unsent Update API call.
-
Method Summary
Modifier and TypeMethodDescriptionInitiates 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 endpoint configuration will be do when applied or what traffic it will be applied to.description(Optional<String> description)human-readable description of what this endpoint configuration will be do when applied or what traffic it will be applied to.ipPolicy(EndpointIpPolicyMutate ipPolicy)ip policy module configuration ornullipPolicy(Optional<EndpointIpPolicyMutate> ipPolicy)ip policy module configuration ornulllogging(EndpointLoggingMutate logging)logging module configuration ornulllogging(Optional<EndpointLoggingMutate> logging)logging module configuration ornullarbitrary user-defined machine-readable data of this endpoint configuration.arbitrary user-defined machine-readable data of this endpoint configuration.mutualTls(EndpointMutualTlsMutate mutualTls)mutual TLS module configuration ornullmutualTls(Optional<EndpointMutualTlsMutate> mutualTls)mutual TLS module configuration ornulloauth(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 ornulltlsTermination(EndpointTlsTermination tlsTermination)TLS termination module configuration ornulltlsTermination(Optional<EndpointTlsTermination> tlsTermination)TLS termination module configuration ornullwebhookValidation(EndpointWebhookValidation webhookValidation)webhook validation module configuration ornullwebhookValidation(Optional<EndpointWebhookValidation> webhookValidation)webhook validation module configuration ornull
-
Method Details
-
description
human-readable description of what this endpoint configuration will be do when applied or what traffic it will be applied to. 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 endpoint configuration will be do when applied or what traffic it will be applied to. Optional, max 255 bytes -
metadata
arbitrary user-defined machine-readable data of this endpoint configuration. 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 endpoint configuration. Optional, max 4096 bytes. -
circuitBreaker
public EndpointConfigurations.UpdateCallBuilder circuitBreaker(EndpointCircuitBreaker circuitBreaker)circuit breaker module configuration ornull- Parameters:
circuitBreaker- the value of the circuit_breaker parameter as aEndpointCircuitBreaker- Returns:
- the call builder instance
-
circuitBreaker
public EndpointConfigurations.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
public EndpointConfigurations.UpdateCallBuilder compression(Optional<EndpointCompression> compression)compression module configuration ornull- Parameters:
compression- the value of the compression parameter as anOptionalofEndpointCompression- Returns:
- the call builder instance
-
requestHeaders
public EndpointConfigurations.UpdateCallBuilder requestHeaders(EndpointRequestHeaders requestHeaders)request headers module configuration ornull- Parameters:
requestHeaders- the value of the request_headers parameter as aEndpointRequestHeaders- Returns:
- the call builder instance
-
requestHeaders
public EndpointConfigurations.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
public EndpointConfigurations.UpdateCallBuilder responseHeaders(EndpointResponseHeaders responseHeaders)response headers module configuration ornull- Parameters:
responseHeaders- the value of the response_headers parameter as aEndpointResponseHeaders- Returns:
- the call builder instance
-
responseHeaders
public EndpointConfigurations.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
-
ipPolicy
ip policy module configuration ornull- Parameters:
ipPolicy- the value of the ip_policy parameter as aEndpointIpPolicyMutate- Returns:
- the call builder instance
-
ipPolicy
public EndpointConfigurations.UpdateCallBuilder ipPolicy(Optional<EndpointIpPolicyMutate> ipPolicy)ip policy module configuration ornull- Parameters:
ipPolicy- the value of the ip_policy parameter as anOptionalofEndpointIpPolicyMutate- Returns:
- the call builder instance
-
mutualTls
mutual TLS module configuration ornull- Parameters:
mutualTls- the value of the mutual_tls parameter as aEndpointMutualTlsMutate- Returns:
- the call builder instance
-
mutualTls
public EndpointConfigurations.UpdateCallBuilder mutualTls(Optional<EndpointMutualTlsMutate> mutualTls)mutual TLS module configuration ornull- Parameters:
mutualTls- the value of the mutual_tls parameter as anOptionalofEndpointMutualTlsMutate- Returns:
- the call builder instance
-
tlsTermination
public EndpointConfigurations.UpdateCallBuilder tlsTermination(EndpointTlsTermination tlsTermination)TLS termination module configuration ornull- Parameters:
tlsTermination- the value of the tls_termination parameter as aEndpointTlsTermination- Returns:
- the call builder instance
-
tlsTermination
public EndpointConfigurations.UpdateCallBuilder tlsTermination(Optional<EndpointTlsTermination> tlsTermination)TLS termination module configuration ornull- Parameters:
tlsTermination- the value of the tls_termination parameter as anOptionalofEndpointTlsTermination- Returns:
- the call builder instance
-
webhookValidation
public EndpointConfigurations.UpdateCallBuilder webhookValidation(EndpointWebhookValidation webhookValidation)webhook validation module configuration ornull- Parameters:
webhookValidation- the value of the webhook_validation parameter as aEndpointWebhookValidation- Returns:
- the call builder instance
-
webhookValidation
public EndpointConfigurations.UpdateCallBuilder webhookValidation(Optional<EndpointWebhookValidation> webhookValidation)webhook validation module configuration ornull- Parameters:
webhookValidation- the value of the webhook_validation 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
-
logging
logging module configuration ornull- Parameters:
logging- the value of the logging parameter as aEndpointLoggingMutate- Returns:
- the call builder instance
-
logging
logging module configuration ornull- Parameters:
logging- the value of the logging parameter as anOptionalofEndpointLoggingMutate- 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
-
call
Initiates the API call asynchronously.- Returns:
- a
CompletionStageofEndpointConfiguration
-
blockingCall
Initiates the API call and blocks until it returns.- Returns:
EndpointConfiguration- Throws:
InterruptedException- if the thread was interrupted during the call
-