Package software.amazon.awssdk.http.crt
Interface ProxyConfiguration.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ProxyConfiguration.Builder,ProxyConfiguration>
,CrtProxyConfiguration.Builder
,SdkBuilder<ProxyConfiguration.Builder,ProxyConfiguration>
- Enclosing class:
- ProxyConfiguration
public static interface ProxyConfiguration.Builder extends CrtProxyConfiguration.Builder, CopyableBuilder<ProxyConfiguration.Builder,ProxyConfiguration>
Builder forProxyConfiguration
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProxyConfiguration
build()
ProxyConfiguration.Builder
host(String host)
Set the hostname of the proxy.ProxyConfiguration.Builder
password(String password)
The password to use for basic proxy authenticationProxyConfiguration.Builder
port(int port)
Set the port that the proxy expects connections on.ProxyConfiguration.Builder
scheme(String scheme)
The HTTP scheme to use for connecting to the proxy.ProxyConfiguration.Builder
useEnvironmentVariableValues(Boolean useEnvironmentVariableValues)
ProxyConfiguration.Builder
username(String username)
The username to use for basic proxy authenticationProxyConfiguration.Builder
useSystemPropertyValues(Boolean useSystemPropertyValues)
The option whether to use system property values fromProxySystemSetting
if any of the config options are missing.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
-
-
-
Method Detail
-
host
ProxyConfiguration.Builder host(String host)
Set the hostname of the proxy.- Specified by:
host
in interfaceCrtProxyConfiguration.Builder
- Parameters:
host
- The proxy host.- Returns:
- This object for method chaining.
-
port
ProxyConfiguration.Builder port(int port)
Set the port that the proxy expects connections on.- Specified by:
port
in interfaceCrtProxyConfiguration.Builder
- Parameters:
port
- The proxy port.- Returns:
- This object for method chaining.
-
scheme
ProxyConfiguration.Builder scheme(String scheme)
The HTTP scheme to use for connecting to the proxy. Valid values arehttp
andhttps
.The client defaults to
http
if none is given.- Specified by:
scheme
in interfaceCrtProxyConfiguration.Builder
- Parameters:
scheme
- The proxy scheme.- Returns:
- This object for method chaining.
-
username
ProxyConfiguration.Builder username(String username)
The username to use for basic proxy authenticationIf not set, the client will not use basic authentication
- Specified by:
username
in interfaceCrtProxyConfiguration.Builder
- Parameters:
username
- The basic authentication username.- Returns:
- This object for method chaining.
-
password
ProxyConfiguration.Builder password(String password)
The password to use for basic proxy authenticationIf not set, the client will not use basic authentication
- Specified by:
password
in interfaceCrtProxyConfiguration.Builder
- Parameters:
password
- The basic authentication password.- Returns:
- This object for method chaining.
-
useSystemPropertyValues
ProxyConfiguration.Builder useSystemPropertyValues(Boolean useSystemPropertyValues)
The option whether to use system property values fromProxySystemSetting
if 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 theProxyConfiguration
object. To disable this behaviour, set this value to false.- Specified by:
useSystemPropertyValues
in interfaceCrtProxyConfiguration.Builder
- Parameters:
useSystemPropertyValues
- The option whether to use system property values- Returns:
- This object for method chaining.
-
useEnvironmentVariableValues
ProxyConfiguration.Builder useEnvironmentVariableValues(Boolean useEnvironmentVariableValues)
- Specified by:
useEnvironmentVariableValues
in interfaceCrtProxyConfiguration.Builder
-
build
ProxyConfiguration build()
- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceCrtProxyConfiguration.Builder
- Specified by:
build
in interfaceSdkBuilder<ProxyConfiguration.Builder,ProxyConfiguration>
-
-