Interface ProxyConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ProxyConfiguration.Builder,,ProxyConfiguration> SdkBuilder<ProxyConfiguration.Builder,ProxyConfiguration>
- Enclosing class:
ProxyConfiguration
ProxyConfiguration.-
Method Summary
Modifier and TypeMethodDescriptionSet the hostname of the proxy.nonProxyHosts(Set<String> nonProxyHosts) Set the set of hosts that should not be proxied.Set the password used to authenticate with the proxy password.port(int port) Set the port that the proxy expects connections on.The HTTP scheme to use for connecting to the proxy.useEnvironmentVariableValues(Boolean useEnvironmentVariablesValues) Set the option whether to use environment variable values forProxyEnvironmentSettingif any of the config options are missing.Set the username used to authenticate with the proxy username.useSystemPropertyValues(Boolean useSystemPropertyValues) Set the option whether to use system property values fromProxySystemSettingif any of the config options are missing.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Method Details
-
host
Set the hostname of the proxy.- Parameters:
host- The proxy host.- Returns:
- This object for method chaining.
-
port
Set the port that the proxy expects connections on.- Parameters:
port- The proxy port.- Returns:
- This object for method chaining.
-
scheme
The HTTP scheme to use for connecting to the proxy. Valid values arehttpandhttps.The client defaults to
httpif none is given.- Parameters:
scheme- The proxy scheme.- Returns:
- This object for method chaining.
-
nonProxyHosts
Set the set of hosts that should not be proxied. Any request whose host portion matches one of these entries will be sent to the remote host directly instead of through the proxy.Entries supplied here are treated as exact host names (e.g.
example.com) or CIDR ranges for IP addresses (e.g.10.0.0.0/8). Wildcard patterns such as*.example.comor a bare*are not supported for entries supplied here; to use wildcards, configure them through thehttp.nonProxyHostssystem property or theNO_PROXYenvironment variable instead.- Parameters:
nonProxyHosts- The set of hosts that should not be proxied.- Returns:
- This object for method chaining.
-
username
Set the username used to authenticate with the proxy username.- Parameters:
username- The proxy username.- Returns:
- This object for method chaining.
-
password
Set the password used to authenticate with the proxy password.- Parameters:
password- The proxy password.- Returns:
- This object for method chaining.
-
useSystemPropertyValues
Set the option whether to use system property values fromProxySystemSettingif any of the config options are missing. The value is set to "true" by default which means SDK will automatically use system property values if options are not provided during building theProxyConfigurationobject. To disable this behaviour, set this value to false.It is important to note that when this property is set to "true," all proxy settings will exclusively be obtained from System Property Values, and no partial settings will be obtained from Environment Variable Values.Pipe-separated host names in the
http.nonProxyHostssystem property indicate multiple hosts to exclude from proxy settings. Surrounding empty spaces around each host name are trimmed, so both"a.com|b.com"and"a.com | b.com"are accepted. Each entry may be an exact host name (e.g.example.com), a leading-wildcard suffix (e.g.*.example.com, which matchesexample.comand its subdomains), a single*(which matches all hosts), or a CIDR range for IP addresses (e.g.10.0.0.0/8).- Parameters:
useSystemPropertyValues- The option whether to use system property values- Returns:
- This object for method chaining.
-
useEnvironmentVariableValues
Set the option whether to use environment variable values forProxyEnvironmentSettingif any of the config options are missing. The value is set to "true" by default, enabling the SDK to automatically use environment variable values for proxy configuration options that are not provided during building theProxyConfigurationobject. To disable this behavior, set this value to "false".It is important to note that when this property is set to "true," all proxy settings will exclusively originate from Environment Variable Values, and no partial settings will be obtained from System Property Values.Comma-separated host names in the NO_PROXY environment variable indicate multiple hosts to exclude from proxy settings. Surrounding empty spaces around each host name are trimmed, so both
"a.com,b.com"and"a.com, b.com"are accepted. Each entry may be an exact host name (e.g.example.com), a leading-wildcard suffix (e.g.*.example.com, which matchesexample.comand its subdomains), a single*(which matches all hosts), or a CIDR range for IP addresses (e.g.10.0.0.0/8).- Parameters:
useEnvironmentVariablesValues- The option whether to use environment variable values- Returns:
- This object for method chaining.
-