Interface S3CrtHttpConfiguration.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<S3CrtHttpConfiguration.Builder,S3CrtHttpConfiguration>
,SdkBuilder<S3CrtHttpConfiguration.Builder,S3CrtHttpConfiguration>
- Enclosing class:
- S3CrtHttpConfiguration
public static interface S3CrtHttpConfiguration.Builder extends CopyableBuilder<S3CrtHttpConfiguration.Builder,S3CrtHttpConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description S3CrtHttpConfiguration
build()
S3CrtHttpConfiguration.Builder
connectionHealthConfiguration(Consumer<S3CrtConnectionHealthConfiguration.Builder> configurationBuilder)
A convenience method that creates an instance of theS3CrtConnectionHealthConfiguration
builder, avoiding the need to create one manually viaS3CrtConnectionHealthConfiguration.builder()
.S3CrtHttpConfiguration.Builder
connectionHealthConfiguration(S3CrtConnectionHealthConfiguration healthConfiguration)
Configure the health checks for all connections established by this client.S3CrtHttpConfiguration.Builder
connectionTimeout(Duration connectionTimeout)
The amount of time to wait when initially establishing a connection before giving up and timing out.S3CrtHttpConfiguration.Builder
proxyConfiguration(Consumer<S3CrtProxyConfiguration.Builder> configurationBuilder)
A convenience method that creates an instance of theS3CrtProxyConfiguration
builder, avoiding the need to create one manually viaS3CrtProxyConfiguration.builder()
.S3CrtHttpConfiguration.Builder
proxyConfiguration(S3CrtProxyConfiguration proxyConfiguration)
Sets the http proxy configuration to use for this client.S3CrtHttpConfiguration.Builder
trustAllCertificatesEnabled(Boolean trustAllCertificatesEnabled)
Option to disable SSL cert validation and SSL host name verification.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
-
-
-
Method Detail
-
connectionTimeout
S3CrtHttpConfiguration.Builder connectionTimeout(Duration connectionTimeout)
The amount of time to wait when initially establishing a connection before giving up and timing out.- Parameters:
connectionTimeout
- timeout- Returns:
- The builder of the method chaining.
-
trustAllCertificatesEnabled
S3CrtHttpConfiguration.Builder trustAllCertificatesEnabled(Boolean trustAllCertificatesEnabled)
Option to disable SSL cert validation and SSL host name verification. This turns off x.509 validation. By default, this option is off. Only enable this option for testing purposes.
- Parameters:
trustAllCertificatesEnabled
- True if SSL cert validation is disabled.- Returns:
- The builder of the method chaining.
-
proxyConfiguration
S3CrtHttpConfiguration.Builder proxyConfiguration(S3CrtProxyConfiguration proxyConfiguration)
Sets the http proxy configuration to use for this client.- Parameters:
proxyConfiguration
- The http proxy configuration to use- Returns:
- The builder of the method chaining.
-
proxyConfiguration
S3CrtHttpConfiguration.Builder proxyConfiguration(Consumer<S3CrtProxyConfiguration.Builder> configurationBuilder)
A convenience method that creates an instance of theS3CrtProxyConfiguration
builder, avoiding the need to create one manually viaS3CrtProxyConfiguration.builder()
.- Parameters:
configurationBuilder
- The config builder to use- Returns:
- The builder of the method chaining.
- See Also:
proxyConfiguration(S3CrtProxyConfiguration)
-
connectionHealthConfiguration
S3CrtHttpConfiguration.Builder connectionHealthConfiguration(S3CrtConnectionHealthConfiguration healthConfiguration)
Configure the health checks for all connections established by this client.You can set a throughput threshold for a connection to be considered healthy. If a connection falls below this threshold (
CrtConnectionHealthConfiguration.minimumThroughputInBps()
) for the configurable amount of time (CrtConnectionHealthConfiguration.minimumThroughputTimeout()
), then the connection is considered unhealthy and will be shut down.- Parameters:
healthConfiguration
- The health checks config to use- Returns:
- The builder of the method chaining.
-
connectionHealthConfiguration
S3CrtHttpConfiguration.Builder connectionHealthConfiguration(Consumer<S3CrtConnectionHealthConfiguration.Builder> configurationBuilder)
A convenience method that creates an instance of theS3CrtConnectionHealthConfiguration
builder, avoiding the need to create one manually viaS3CrtConnectionHealthConfiguration.builder()
.- Parameters:
configurationBuilder
- The health checks config builder to use- Returns:
- The builder of the method chaining.
- See Also:
connectionHealthConfiguration(S3CrtConnectionHealthConfiguration)
-
build
S3CrtHttpConfiguration build()
- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkBuilder<S3CrtHttpConfiguration.Builder,S3CrtHttpConfiguration>
-
-