Package software.amazon.awssdk.crtcore
Class CrtProxyConfiguration.DefaultBuilder<B extends CrtProxyConfiguration.Builder>
- java.lang.Object
-
- software.amazon.awssdk.crtcore.CrtProxyConfiguration.DefaultBuilder<B>
-
- All Implemented Interfaces:
CrtProxyConfiguration.Builder
- Enclosing class:
- CrtProxyConfiguration
protected abstract static class CrtProxyConfiguration.DefaultBuilder<B extends CrtProxyConfiguration.Builder> extends Object implements CrtProxyConfiguration.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultBuilder()protectedDefaultBuilder(CrtProxyConfiguration proxyConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaddNonProxyHost(String nonProxyHost)Add a host that the client is allowed to access without going through the proxy.Bhost(String host)Set the hostname of the proxy.BnonProxyHosts(Set<String> nonProxyHosts)Configure the hosts that the client is allowed to access without going through the proxy.Bpassword(String password)The password to use for basic proxy authenticationBport(int port)Set the port that the proxy expects connections on.Bscheme(String scheme)The HTTP scheme to use for connecting to the proxy.BsetuseEnvironmentVariableValues(Boolean useEnvironmentVariableValues)voidsetUseSystemPropertyValues(Boolean useSystemPropertyValues)BuseEnvironmentVariableValues(Boolean useEnvironmentVariableValues)The option whether to use environment variable values fromProxySystemSettingif any of the config options are missing.Busername(String username)The username to use for basic proxy authenticationBuseSystemPropertyValues(Boolean useSystemPropertyValues)The option whether to use system property values fromProxySystemSettingif any of the config options are missing.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.crtcore.CrtProxyConfiguration.Builder
build
-
-
-
-
Constructor Detail
-
DefaultBuilder
protected DefaultBuilder()
-
DefaultBuilder
protected DefaultBuilder(CrtProxyConfiguration proxyConfiguration)
-
-
Method Detail
-
scheme
public B scheme(String scheme)
Description copied from interface:CrtProxyConfiguration.BuilderThe HTTP scheme to use for connecting to the proxy. Valid values arehttpandhttps.The client defaults to
httpif none is given.- Specified by:
schemein interfaceCrtProxyConfiguration.Builder- Parameters:
scheme- The proxy scheme.- Returns:
- This object for method chaining.
-
host
public B host(String host)
Description copied from interface:CrtProxyConfiguration.BuilderSet the hostname of the proxy.- Specified by:
hostin interfaceCrtProxyConfiguration.Builder- Parameters:
host- The proxy host.- Returns:
- This object for method chaining.
-
port
public B port(int port)
Description copied from interface:CrtProxyConfiguration.BuilderSet the port that the proxy expects connections on.- Specified by:
portin interfaceCrtProxyConfiguration.Builder- Parameters:
port- The proxy port.- Returns:
- This object for method chaining.
-
username
public B username(String username)
Description copied from interface:CrtProxyConfiguration.BuilderThe username to use for basic proxy authenticationIf not set, the client will not use basic authentication
- Specified by:
usernamein interfaceCrtProxyConfiguration.Builder- Parameters:
username- The basic authentication username.- Returns:
- This object for method chaining.
-
password
public B password(String password)
Description copied from interface:CrtProxyConfiguration.BuilderThe password to use for basic proxy authenticationIf not set, the client will not use basic authentication
- Specified by:
passwordin interfaceCrtProxyConfiguration.Builder- Parameters:
password- The basic authentication password.- Returns:
- This object for method chaining.
-
useSystemPropertyValues
public B useSystemPropertyValues(Boolean useSystemPropertyValues)
Description copied from interface:CrtProxyConfiguration.BuilderThe 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 theCrtProxyConfigurationobject. 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 originate from system properties, and no partial settings will be obtained from EnvironmentVariableValues.- Specified by:
useSystemPropertyValuesin interfaceCrtProxyConfiguration.Builder- Parameters:
useSystemPropertyValues- The option whether to use system property values- Returns:
- This object for method chaining.
-
useEnvironmentVariableValues
public B useEnvironmentVariableValues(Boolean useEnvironmentVariableValues)
Description copied from interface:CrtProxyConfiguration.BuilderThe option whether to use environment variable values fromProxySystemSettingif any of the config options are missing. The value is set to "true" by default which means SDK will automatically use environment variable values if options are not provided during building theCrtProxyConfigurationobject. 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 variableValues, and no partial settings will be obtained from SystemPropertyValues.Comma-separated host names in the NO_PROXY environment variable indicate multiple hosts to exclude from proxy settings.
- Specified by:
useEnvironmentVariableValuesin interfaceCrtProxyConfiguration.Builder- Parameters:
useEnvironmentVariableValues- The option whether to use environment variable values- Returns:
- This object for method chaining.
-
nonProxyHosts
public B nonProxyHosts(Set<String> nonProxyHosts)
Description copied from interface:CrtProxyConfiguration.BuilderConfigure the hosts that the client is allowed to access without going through the proxy.- Specified by:
nonProxyHostsin interfaceCrtProxyConfiguration.Builder
-
addNonProxyHost
public B addNonProxyHost(String nonProxyHost)
Description copied from interface:CrtProxyConfiguration.BuilderAdd a host that the client is allowed to access without going through the proxy.- Specified by:
addNonProxyHostin interfaceCrtProxyConfiguration.Builder
-
setuseEnvironmentVariableValues
public B setuseEnvironmentVariableValues(Boolean useEnvironmentVariableValues)
-
setUseSystemPropertyValues
public void setUseSystemPropertyValues(Boolean useSystemPropertyValues)
-
-