Package ai.chatur.cortex.spring
Record Class CortexProperties.S3.Proxy
java.lang.Object
java.lang.Record
ai.chatur.cortex.spring.CortexProperties.S3.Proxy
- Record Components:
endpoint- the proxy endpoint, for examplehttp://proxy.internal:3128; when unset, no proxy is used unless one of the discovery settings below is enabledusername- the proxy username, when it requires authenticationpassword- the proxy password, when it requires authenticationnonProxyHosts- hosts to reach directly, bypassing the proxy; when unset, everything goes through ituseSystemPropertyValues- whether to fall back to thehttp.proxyHost/https.proxyHostfamily of JVM system properties for anything not set hereuseEnvironmentVariableValues- whether to fall back to theHTTP_PROXY/HTTPS_PROXY/NO_PROXYenvironment variables for anything not set here
- Enclosing class:
CortexProperties.S3
public static record CortexProperties.S3.Proxy(String endpoint, String username, String password, Set<String> nonProxyHosts, boolean useSystemPropertyValues, boolean useEnvironmentVariableValues)
extends Record
HTTP proxy settings for the S3 client.
The proxy is applied when endpoint is set; there is deliberately no separate
enabling flag, so a configured proxy can never be silently ignored — and, by the same
reasoning, an unconfigured proxy is never silently applied. That second half is why
useSystemPropertyValues and useEnvironmentVariableValues both default to
false here, where the AWS SDK defaults them to true: left at the SDK's
defaults, an ambient https.proxyHost or HTTPS_PROXY in the deployment
environment would silently route backups through a proxy that appears nowhere in this
configuration. These settings determine the S3 client's proxy on their own.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenonProxyHostsrecord component.password()Returns the value of thepasswordrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseEnvironmentVariableValuesrecord component.username()Returns the value of theusernamerecord component.booleanReturns the value of theuseSystemPropertyValuesrecord component.
-
Constructor Details
-
Proxy
public Proxy(String endpoint, String username, String password, Set<String> nonProxyHosts, @DefaultValue("false") boolean useSystemPropertyValues, @DefaultValue("false") boolean useEnvironmentVariableValues) Creates an instance of aProxyrecord class.- Parameters:
endpoint- the value for theendpointrecord componentusername- the value for theusernamerecord componentpassword- the value for thepasswordrecord componentnonProxyHosts- the value for thenonProxyHostsrecord componentuseSystemPropertyValues- the value for theuseSystemPropertyValuesrecord componentuseEnvironmentVariableValues- the value for theuseEnvironmentVariableValuesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
nonProxyHosts
Returns the value of thenonProxyHostsrecord component.- Returns:
- the value of the
nonProxyHostsrecord component
-
useSystemPropertyValues
public boolean useSystemPropertyValues()Returns the value of theuseSystemPropertyValuesrecord component.- Returns:
- the value of the
useSystemPropertyValuesrecord component
-
useEnvironmentVariableValues
public boolean useEnvironmentVariableValues()Returns the value of theuseEnvironmentVariableValuesrecord component.- Returns:
- the value of the
useEnvironmentVariableValuesrecord component
-