Package com.ngrok.definitions
Class EndpointConfiguration
java.lang.Object
com.ngrok.definitions.EndpointConfiguration
A class encapsulating the
EndpointConfiguration resource.-
Constructor Summary
ConstructorsConstructorDescriptionEndpointConfiguration(String id, String type, String description, String metadata, OffsetDateTime createdAt, URI uri, Optional<EndpointCircuitBreaker> circuitBreaker, Optional<EndpointCompression> compression, Optional<EndpointRequestHeaders> requestHeaders, Optional<EndpointResponseHeaders> responseHeaders, Optional<EndpointIpPolicy> ipPolicy, Optional<EndpointMutualTls> mutualTls, Optional<EndpointTlsTermination> tlsTermination, Optional<EndpointWebhookValidation> webhookValidation, Optional<EndpointOAuth> oauth, Optional<EndpointLogging> logging, Optional<EndpointSaml> saml, Optional<EndpointOidc> oidc)Creates a new instance ofEndpointConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionbooleancircuit breaker module configuration ornullcompression module configuration ornulltimestamp when the endpoint configuration was created, RFC 3339 formathuman-readable description of what this endpoint configuration will be do when applied or what traffic it will be applied to.getId()unique identifier of this endpoint configurationip policy module configuration ornulllogging module configuration ornullarbitrary user-defined machine-readable data of this endpoint configuration.mutual TLS module configuration ornullgetOauth()oauth module configuration ornullgetOidc()oidc module configuration ornullrequest headers module configuration ornullresponse headers module configuration ornullgetSaml()saml module configuration ornullTLS termination module configuration ornullgetType()they type of traffic this endpoint configuration can be applied to.getUri()URI of the endpoint configuration API resourcewebhook validation module configuration ornullinthashCode()toString()
-
Constructor Details
-
EndpointConfiguration
public EndpointConfiguration(String id, String type, String description, String metadata, OffsetDateTime createdAt, URI uri, Optional<EndpointCircuitBreaker> circuitBreaker, Optional<EndpointCompression> compression, Optional<EndpointRequestHeaders> requestHeaders, Optional<EndpointResponseHeaders> responseHeaders, Optional<EndpointIpPolicy> ipPolicy, Optional<EndpointMutualTls> mutualTls, Optional<EndpointTlsTermination> tlsTermination, Optional<EndpointWebhookValidation> webhookValidation, Optional<EndpointOAuth> oauth, Optional<EndpointLogging> logging, Optional<EndpointSaml> saml, Optional<EndpointOidc> oidc)Creates a new instance ofEndpointConfiguration.- Parameters:
id- unique identifier of this endpoint configurationtype- they type of traffic this endpoint configuration can be applied to. one of:http,https,tcpdescription- human-readable description of what this endpoint configuration will be do when applied or what traffic it will be applied to. Optional, max 255 bytesmetadata- arbitrary user-defined machine-readable data of this endpoint configuration. Optional, max 4096 bytes.createdAt- timestamp when the endpoint configuration was created, RFC 3339 formaturi- URI of the endpoint configuration API resourcecircuitBreaker- circuit breaker module configuration ornullcompression- compression module configuration ornullrequestHeaders- request headers module configuration ornullresponseHeaders- response headers module configuration ornullipPolicy- ip policy module configuration ornullmutualTls- mutual TLS module configuration ornulltlsTermination- TLS termination module configuration ornullwebhookValidation- webhook validation module configuration ornulloauth- oauth module configuration ornulllogging- logging module configuration ornullsaml- saml module configuration ornulloidc- oidc module configuration ornull
-
-
Method Details
-
getId
unique identifier of this endpoint configuration- Returns:
- the value of the property as a
String
-
getType
they type of traffic this endpoint configuration can be applied to. one of:http,https,tcp- Returns:
- the value of the property as a
String
-
getDescription
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- Returns:
- the value of the property as a
String
-
getMetadata
arbitrary user-defined machine-readable data of this endpoint configuration. Optional, max 4096 bytes.- Returns:
- the value of the property as a
String
-
getCreatedAt
timestamp when the endpoint configuration was created, RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getUri
URI of the endpoint configuration API resource- Returns:
- the value of the property as a
URI
-
getCircuitBreaker
circuit breaker module configuration ornull- Returns:
- the value of the property as a
EndpointCircuitBreakerwrapped in anOptional
-
getCompression
compression module configuration ornull- Returns:
- the value of the property as a
EndpointCompressionwrapped in anOptional
-
getRequestHeaders
request headers module configuration ornull- Returns:
- the value of the property as a
EndpointRequestHeaderswrapped in anOptional
-
getResponseHeaders
response headers module configuration ornull- Returns:
- the value of the property as a
EndpointResponseHeaderswrapped in anOptional
-
getIpPolicy
ip policy module configuration ornull- Returns:
- the value of the property as a
EndpointIpPolicywrapped in anOptional
-
getMutualTls
mutual TLS module configuration ornull- Returns:
- the value of the property as a
EndpointMutualTlswrapped in anOptional
-
getTlsTermination
TLS termination module configuration ornull- Returns:
- the value of the property as a
EndpointTlsTerminationwrapped in anOptional
-
getWebhookValidation
webhook validation module configuration ornull- Returns:
- the value of the property as a
EndpointWebhookValidationwrapped in anOptional
-
getOauth
oauth module configuration ornull- Returns:
- the value of the property as a
EndpointOAuthwrapped in anOptional
-
getLogging
logging module configuration ornull- Returns:
- the value of the property as a
EndpointLoggingwrapped in anOptional
-
getSaml
saml module configuration ornull- Returns:
- the value of the property as a
EndpointSamlwrapped in anOptional
-
getOidc
oidc module configuration ornull- Returns:
- the value of the property as a
EndpointOidcwrapped in anOptional
-
equals
-
hashCode
public int hashCode() -
toString
-